OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [or32/] [config.in] - Rev 1275

Go to most recent revision | Compare with Previous | Blame | View Log

#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/config-language.txt.
#
mainmenu_name "Linux/or32 Kernel Configuration"

define_bool CONFIG_OR32 y

define_bool CONFIG_UID16 y
define_bool CONFIG_RWSEM_GENERIC_SPINLOCK y
define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM n

mainmenu_option next_comment
comment 'Code maturity level options'
bool 'Prompt for development and/or incomplete code/drivers' CONFIG_EXPERIMENTAL
endmenu

mainmenu_option next_comment
comment 'Loadable module support'
bool 'Enable loadable module support' CONFIG_MODULES
if [ "$CONFIG_MODULES" = "y" ]; then
   bool '  Set version information on all module symbols' CONFIG_MODVERSIONS
   bool '  Kernel module loader' CONFIG_KMOD
fi
endmenu

mainmenu_option next_comment
comment 'Processor type and features'
choice 'SoC type' \
        "or1200/Marvin          CONFIG_OR32_MARVIN \
         or1200/Highland        CONFIG_OR32_HIGHLAND \
         or1200/Generic         CONFIG_OR32_GENERIC" or1200/Marvin

#
# Define implied options for the selected SoC
#

if [ "$CONFIG_OR32_MARVIN" = "y" ]; then
   define_bool CONFIG_OR32_CPU_OR1200 y
   define_int  CONFIG_OR32_MC_VERSION 1
   define_bool CONFIG_OR32_MC_INIT y
   define_bool CONFIG_OR32_ICACHE_ENABLED y
   define_int  CONFIG_OR32_IC_SIZE 8192
   define_int  CONFIG_OR32_IC_LINE 16
   define_bool CONFIG_OR32_DCACHE_ENABLED y
   define_int  CONFIG_OR32_DC_SIZE 8192
   define_int  CONFIG_OR32_DC_LINE 16
   define_int  CONFIG_OR32_ITLB_ENTRIES 64
   define_int  CONFIG_OR32_DTLB_ENTRIES 64
   define_int  CONFIG_OR32_NO_SPR_SR_DSX y
   defint_bool CONFIG_OR32_GUARD_PROTECTED_CORE y
elif [ "$CONFIG_OR32_HIGHLAND" = "y"  ]; then
   define_bool CONFIG_OR32_CPU_OR1200 y
   define_int  CONFIG_OR32_MC_VERSION 2
   define_bool CONFIG_OR32_MC_INIT y
   define_bool CONFIG_OR32_ICACHE_ENABLED y
   define_int  CONFIG_OR32_IC_SIZE 8192
   define_int  CONFIG_OR32_IC_LINE 16
   define_bool CONFIG_OR32_DCACHE_ENABLED y
   define_int  CONFIG_OR32_DC_SIZE 8192
   define_int  CONFIG_OR32_DC_LINE 16
   define_int  CONFIG_OR32_ITLB_ENTRIES 64
   define_int  CONFIG_OR32_DTLB_ENTRIES 64
   define_int  CONFIG_OR32_NO_SPR_SR_DSX y
   defint_bool CONFIG_OR32_GUARD_PROTECTED_CORE y

   # default memory timings
   # 
   bool "Use default Highland memory timings" CONFIG_OR32_HIGHLAND_DEFAULT_MEMORY_TIMINGS y
   if [ "$CONFIG_OR32_HIGHLAND_DEFAULT_MEMORY_TIMINGS" = "n" ]; then
      define_bool CONFIG_OR32_GENERIC_MEMORY_TIMINGS y
      #
      # FLASH timings: worst cases in ns, from data sheets
      int 'Flash Write Access Time [ns]'     CONFIG_OR32_FLASH_WA_TIME  50
      int 'Flash Write Enable Delay [ns]'    CONFIG_OR32_FLASH_WE_DELAY 0
      int 'Flash Write Hold Time [ns]'       CONFIG_OR32_FLASH_WH_TIME  0
      int 'Flash Read Access Time [ns]'      CONFIG_OR32_FLASH_RA_TIME  95
      int 'Flash Page Read Access Time [ns]' CONFIG_OR32_FLASH_PRA_TIME 25
      int 'Flash Read Turnaround Time [ns]'  CONFIG_OR32_FLASH_RT_TIME  24
      #
      # SDRAM timings: worst cases in ns, from data sheets
      int 'SDRAM tRCD [ns]'                  CONFIG_OR32_SDRAM_tRCD     23
      int 'SDRAM tWR [ns]'                   CONFIG_OR32_SDRAM_tWR      20
      int 'SDRAM tRC [ns]'                   CONFIG_OR32_SDRAM_tRC      60
      int 'SDRAM tRFC (sometimes the same as tRC) [ns]' \
                                             CONFIG_OR32_SDRAM_tRFC     60
      int 'SDRAM tRAS (use the worst case minimal value) [ns]' \
                                             CONFIG_OR32_SDRAM_tRAS     50
      int 'SDRAM tRP [ns]'                   CONFIG_OR32_SDRAM_tRP      23
      int 'SDRAM tRRD [ns]'                  CONFIG_OR32_SDRAM_tRRD     15
      # 64000000 / 8192 = 7812.5
      int 'SDRAM tREF (round it up) [ns]'    CONFIG_OR32_SDRAM_tREF     7813
   fi

else
   define_bool CONFIG_OR32_CPU_OR1200 y
fi


int 'System clock frequency (MHz)' CONFIG_OR32_SYS_CLK 25
hex 'System memory size (hex)' CONFIG_OR32_MEMORY_SIZE 01000000
bool 'Boot from flash (copy the image to RAM)' CONFIG_OR32_FLASH_BOOT
if [ "$CONFIG_OR32_GENERIC" = "y" ]; then

   # memory controler settings
   #
   bool 'Enable memory controler initialization' CONFIG_OR32_MC_INIT
   int 'Memory controler version (1 or 2)' CONFIG_OR32_MC_VERSION 1

   # memory timings
   #
   if [ "$CONFIG_OR32_MC_VERSION" = "2" ]; then
      bool 'Specify memory timings (only for MC ver. 2)' CONFIG_OR32_GENERIC_TIMINGS y
      if [ "$CONFIG_OR32_GENERIC_TIMINGS" = "n" ]; then
         define_bool CONFIG_OR32_HIGHLAND_DEFAULT_MEMORY_TIMINGS y
      else
         #
         # FLASH timings: worst cases in ns, from data sheets
         int 'Flash Write Access Time [ns]'     CONFIG_OR32_FLASH_WA_TIME  50
         int 'Flash Write Enable Delay [ns]'    CONFIG_OR32_FLASH_WE_DELAY 0
         int 'Flash Write Hold Time [ns]'       CONFIG_OR32_FLASH_WH_TIME  0
         int 'Flash Read Access Time [ns]'      CONFIG_OR32_FLASH_RA_TIME  95
         int 'Flash Page Read Access Time [ns]' CONFIG_OR32_FLASH_PRA_TIME 25
         int 'Flash Read Turnaround Time [ns]'  CONFIG_OR32_FLASH_RT_TIME  24
         #
         # SDRAM timings: worst cases in ns, from data sheets
         int 'SDRAM tRCD [ns]'                  CONFIG_OR32_SDRAM_tRCD     23
         int 'SDRAM tWR [ns]'                   CONFIG_OR32_SDRAM_tWR      20
         int 'SDRAM tRC [ns]'                   CONFIG_OR32_SDRAM_tRC      60
         int 'SDRAM tRFC (sometimes the same as tRC) [ns]' \
                                                CONFIG_OR32_SDRAM_tRFC     60
         int 'SDRAM tRAS (use the worst case minimal value) [ns]' \
                                                CONFIG_OR32_SDRAM_tRAS     50
         int 'SDRAM tRP [ns]'                   CONFIG_OR32_SDRAM_tRP      23
         int 'SDRAM tRRD [ns]'                  CONFIG_OR32_SDRAM_tRRD     15
         # 64000000 / 8192 = 7812.5
         int 'SDRAM tREF (round it up) [ns]'    CONFIG_OR32_SDRAM_tREF     7813
      fi
   fi

   bool 'Enable instruction cache' CONFIG_OR32_ICACHE_ENABLED
   if [ "$CONFIG_OR32_ICACHE_ENABLED" = "y" ]; then
      int 'Size of instruction cache' CONFIG_OR32_IC_SIZE 8192
      int 'Size of instruction cache line' CONFIG_OR32_IC_LINE 16
   else
      # define some sane default values
      define_int CONFIG_OR32_IC_SIZE 8192
      define_int CONFIG_OR32_IC_LINE 16
   fi

   bool 'Enable data cache' CONFIG_OR32_DCACHE_ENABLED
   if [ "$CONFIG_OR32_DCACHE_ENABLED" = "y" ]; then
      int 'Size of data cache' CONFIG_OR32_DC_SIZE 8192
      int 'Size of data cache line' CONFIG_OR32_DC_LINE 16
   else
      # define some sane default values
      define_int CONFIG_OR32_DC_SIZE 8192
      define_int CONFIG_OR32_DC_LINE 16
   fi

   int 'Number of iTLB sets' CONFIG_OR32_ITLB_ENTRIES 64
   int 'Number of dTLB sets' CONFIG_OR32_DTLB_ENTRIES 64
   
   bool 'Workaround for SPR_SR_DSX bit not beeing set at exception in delay slot' CONFIG_OR32_NO_SPR_SR_DSX n
fi

bool 'Upon unhandled exception jump to start of flash (0xf0000100)' CONFIG_JUMP_UPON_UNHANDLED_EXCEPTION y
bool 'Check for kernel stack overflow' CONFIG_DEBUG_STACKOVERFLOW y
bool 'Protect .text and .rodata sections' CONFIG_OR32_GUARD_PROTECTED_CORE y
bool 'Print status at each exception (for debugging purposes)' CONFIG_OR32_EXCEPTION_DEBUG n

endmenu

# OpenRISC specific drivers

source arch/or32/drivers/Config.in

mainmenu_option next_comment
comment 'General setup'

define_bool CONFIG_ISA n
define_bool CONFIG_EISA n
define_bool CONFIG_MCA n
define_bool CONFIG_SBUS n

bool 'Networking support' CONFIG_NET

bool 'PCI support' CONFIG_PCI

source drivers/pci/Config.in

bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG

if [ "$CONFIG_HOTPLUG" = "y" ] ; then
   source drivers/pcmcia/Config.in
else
   define_bool CONFIG_PCMCIA n
fi

bool 'System V IPC' CONFIG_SYSVIPC
bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
bool 'Sysctl support' CONFIG_SYSCTL
if [ "$CONFIG_PROC_FS" = "y" ]; then
   choice 'Kernel core (/proc/kcore) format' \
        "ELF            CONFIG_KCORE_ELF        \
         A.OUT          CONFIG_KCORE_AOUT" ELF
fi
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC

source drivers/parport/Config.in

endmenu

source drivers/mtd/Config.in

source drivers/block/Config.in

source drivers/md/Config.in

if [ "$CONFIG_NET" = "y" ]; then
   source net/Config.in
fi

mainmenu_option next_comment
comment 'ATA/IDE/MFM/RLL support'

tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE

if [ "$CONFIG_IDE" != "n" ]; then
  source drivers/ide/Config.in
else
  define_bool CONFIG_BLK_DEV_IDE_MODES n
  define_bool CONFIG_BLK_DEV_HD n
fi
endmenu

mainmenu_option next_comment
comment 'SCSI support'

tristate 'SCSI support' CONFIG_SCSI

if [ "$CONFIG_SCSI" != "n" ]; then
   source drivers/scsi/Config.in
fi
endmenu

source drivers/ieee1394/Config.in

if [ "$CONFIG_NET" = "y" ]; then
   mainmenu_option next_comment
   comment 'Network device support'

   bool 'Network device support' CONFIG_NETDEVICES
   if [ "$CONFIG_NETDEVICES" = "y" ]; then
      source drivers/net/Config.in
      if [ "$CONFIG_ATM" = "y" ]; then
         source drivers/atm/Config.in
      fi
   fi
   endmenu
fi

mainmenu_option next_comment
comment 'Old CD-ROM drivers (not SCSI, not IDE)'

bool 'Support non-SCSI/IDE/ATAPI CDROM drives' CONFIG_CD_NO_IDESCSI
if [ "$CONFIG_CD_NO_IDESCSI" != "n" ]; then
   source drivers/cdrom/Config.in
fi
endmenu

#
# input before char - char/joystick depends on it. As does USB.
#
source drivers/input/Config.in

mainmenu_option next_comment
comment 'Character devices'

bool 'Virtual terminal' CONFIG_VT
if [ "$CONFIG_VT" = "y" ]; then
   bool '  Support for console on virtual terminal' CONFIG_VT_CONSOLE
fi

tristate 'Serial (8250, 16450, 16550 or compatible) support' CONFIG_SERIAL
if [ "$CONFIG_SERIAL" = "y" ]; then
   bool '  Support for console on serial port' CONFIG_SERIAL_CONSOLE
fi
comment 'Unix 98 PTY support'
bool 'Unix98 PTY support' CONFIG_UNIX98_PTYS
if [ "$CONFIG_UNIX98_PTYS" = "y" ]; then
   int 'Maximum number of Unix98 PTYs in use (0-2048)' CONFIG_UNIX98_PTY_COUNT 256
fi

source drivers/char/joystick/Config.in

if [ "$CONFIG_PARPORT" != "n" ]; then
   dep_tristate 'Parallel printer support' CONFIG_PRINTER $CONFIG_PARPORT
   if [ "$CONFIG_PRINTER" != "n" ]; then
      bool '  Support for console on line printer' CONFIG_LP_CONSOLE
   fi
   dep_tristate 'Support for user-space parallel port device drivers' CONFIG_PPDEV $CONFIG_PARPORT
fi
bool 'PS/2 mouse (aka "auxiliary device") support' CONFIG_PSMOUSE

tristate 'Enhanced Real Time Clock Support' CONFIG_RTC
if [ "$CONFIG_HOTPLUG" = "y" -a "$CONFIG_PCMCIA" != "n" ]; then
   source drivers/char/pcmcia/Config.in
fi
endmenu

source fs/Config.in

source drivers/media/Config.in

if [ "$CONFIG_VT" = "y" ]; then
   mainmenu_option next_comment
   comment 'Console drivers'
   bool 'VGA text console' CONFIG_VGA_CONSOLE
   bool 'Video mode selection support' CONFIG_VIDEO_SELECT
   if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
      tristate 'MDA text console (dual-headed) (EXPERIMENTAL)' CONFIG_MDA_CONSOLE
      source drivers/video/Config.in
   fi
   endmenu
fi


mainmenu_option next_comment
comment 'Sound'

tristate 'Sound card support' CONFIG_SOUND
if [ "$CONFIG_SOUND" != "n" ]; then
   source drivers/sound/Config.in
fi
endmenu

mainmenu_option next_comment
comment 'Kernel hacking'

bool 'Magic SysRq key' CONFIG_MAGIC_SYSRQ
endmenu

source lib/Config.in

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.