User:ZyMOS/Howto configure the linux kernel/arch/cris/arch-v10

User:ZyMOS/Howto configure the linux kernel / arch / cris / arch-v10


 * ETRAX 100LX v1 has a MMU "feature" requiring a low mapping


 * Option: CRIS_LOW_MAP
 * Kernel Versions: 2.6.15.6 ...
 * (on/off)
 * depends on ETRAX_ARCH_V10 && ETRAX100LX
 * default y


 * Option: ETRAX_DRAM_VIRTUAL_BASE
 * Kernel Versions: 2.6.15.6 ...


 * depends on ETRAX_ARCH_V10
 * default "c0000000" if !ETRAX100LX
 * default "60000000" if ETRAX100LX

"Product LED port"
 * depends on ETRAX_ARCH_V10
 * default ETRAX_PA_LEDS


 * Option: ETRAX_PA_LEDS
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Port-PA-LEDs"
 * The ETRAX network driver is responsible for flashing LED's when packets arrive and are sent. It uses macros defined in , and those macros are defined after what YOU choose in this option.  The actual bits used are configured separately.  Select this if the LEDs are on port PA.  Some products put the leds on PB or a memory-mapped latch (CSP0) instead.


 * Option: ETRAX_PB_LEDS
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Port-PB-LEDs"
 * The ETRAX network driver is responsible for flashing LED's when packets arrive and are sent. It uses macros defined in , and those macros are defined after what YOU choose in this option.  The actual bits used are configured separately.  Select this if the LEDs are on port PB.  Some products put the leds on PA or a memory-mapped latch (CSP0) instead.


 * Option: ETRAX_CSP0_LEDS
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Port-CSP0-LEDs"
 * The ETRAX network driver is responsible for flashing LED's when packets arrive and are sent. It uses macros defined in , and those macros are defined after what YOU choose in this option. The actual bits used are configured separately.  Select this if the LEDs are on a memory-mapped latch using chip select CSP0, this is mapped at 0x90000000. Some products put the leds on PA or PB instead.


 * Option: ETRAX_NO_LEDS
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "None"
 * Select this option if you don't have any LED at all.

"First green LED bit"
 * Option: ETRAX_LED1G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
 * default "2"
 * Bit to use for the first green LED. Most Axis products use bit 2 here.

"First red LED bit"
 * Option: ETRAX_LED1R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
 * default "3"
 * Bit to use for the first red LED. Most Axis products use bit 3 here. For products with only one controllable LED, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Second green LED bit"
 * Option: ETRAX_LED2G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
 * default "4"
 * Bit to use for the second green LED. The "Active" LED. Most Axis products use bit 4 here. For products with only one controllable LED, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Second red LED bit"
 * Option: ETRAX_LED2R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
 * default "5"
 * Bit to use for the second red LED. Most Axis products use bit 5 here. For products with only one controllable LED, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Third green LED bit"
 * Option: ETRAX_LED3G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
 * default "2"
 * Bit to use for the third green LED. The "Drive" LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Third red LED bit"
 * Option: ETRAX_LED3R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
 * default "2"
 * Bit to use for the third red LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Fourth red LED bit"
 * Option: ETRAX_LED4R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the fourth red LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Fourth green LED bit"
 * Option: ETRAX_LED4G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the fourth green LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Fifth red LED bit"
 * Option: ETRAX_LED5R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the fifth red LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Fifth green LED bit"
 * Option: ETRAX_LED5G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the fifth green LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Sixth red LED bit"
 * Option: ETRAX_LED6R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the sixth red LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Sixth green LED bit"
 * Option: ETRAX_LED6G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the sixth green LED. The "Drive" LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Seventh red LED bit"
 * Option: ETRAX_LED7R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the seventh red LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Seventh green LED bit"
 * Option: ETRAX_LED7G
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the seventh green LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Eigth yellow LED bit"
 * Option: ETRAX_LED8Y
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the eighth yellow LED. The "Drive" LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Ninth yellow LED bit"
 * Option: ETRAX_LED9Y
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the ninth yellow LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Tenth yellow LED bit"
 * Option: ETRAX_LED10Y
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the tenth yellow LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Eleventh yellow LED bit"
 * Option: ETRAX_LED11Y
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the eleventh yellow LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Twelfth red LED bit"
 * Option: ETRAX_LED12R
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_CSP0_LEDS
 * default "2"
 * Bit to use for the twelfth red LED. For products with only one or two controllable LEDs, set this to same as CONFIG_ETRAX_LED1G (normally 2).

"Product debug-port"
 * depends on ETRAX_ARCH_V10
 * default ETRAX_DEBUG_PORT0


 * Option: ETRAX_DEBUG_PORT0
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-0"
 * Choose a serial port for the ETRAX debug console. Default to port 0.


 * Option: ETRAX_DEBUG_PORT1
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-1"
 * Use serial port 1 for the console.


 * Option: ETRAX_DEBUG_PORT2
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-2"
 * Use serial port 2 for the console.


 * Option: ETRAX_DEBUG_PORT3
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-3"
 * Use serial port 3 for the console.


 * Option: ETRAX_DEBUG_PORT_NULL
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "disabled"
 * Disable serial-port debugging.

"Kernel GDB port"
 * depends on ETRAX_KGDB
 * default ETRAX_KGDB_PORT0
 * Choose a serial port for kernel debugging. NOTE: This port should not be enabled under Drivers for built-in interfaces (as it has its own initialization code) and should not be the same as the debug port.


 * Option: ETRAX_KGDB_PORT0
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-0"
 * Use serial port 0 for kernel debugging.


 * Option: ETRAX_KGDB_PORT1
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-1"
 * Use serial port 1 for kernel debugging.


 * Option: ETRAX_KGDB_PORT2
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-2"
 * Use serial port 2 for kernel debugging.


 * Option: ETRAX_KGDB_PORT3
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-3"
 * Use serial port 3 for kernel debugging.

"Product rescue-port"
 * depends on ETRAX_ARCH_V10
 * default ETRAX_RESCUE_SER0


 * Option: ETRAX_RESCUE_SER0
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-0"
 * Select one of the four serial ports as a rescue port. The default is port 0.


 * Option: ETRAX_RESCUE_SER1
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-1"
 * Use serial port 1 as the rescue port.


 * Option: ETRAX_RESCUE_SER2
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-2"
 * Use serial port 2 as the rescue port.


 * Option: ETRAX_RESCUE_SER3
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Serial-3"
 * Use serial port 3 as the rescue port.

"R_WAITSTATES"
 * Option: ETRAX_DEF_R_WAITSTATES
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "95a6"
 * Waitstates for SRAM, Flash and peripherials (not DRAM). 95f8 is a good choice for most Axis products...

"R_BUS_CONFIG"
 * Option: ETRAX_DEF_R_BUS_CONFIG
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "104"
 * Assorted bits controlling write mode, DMA burst length etc. 104 is a good choice for most Axis products...


 * Option: ETRAX_SDRAM
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "SDRAM support"
 * depends on ETRAX_ARCH_V10
 * Enable this if you use SDRAM chips and configure R_SDRAM_CONFIG and R_SDRAM_TIMING as well.

"R_DRAM_CONFIG"
 * Option: ETRAX_DEF_R_DRAM_CONFIG
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
 * default "1a200040"
 * The R_DRAM_CONFIG register specifies everything on how the DRAM chips in the system are connected to the ETRAX CPU. This is different depending on the manufacturer, chip type and number of chips.  So this value often needs to be different for each Axis product.

"R_DRAM_TIMING"
 * Option: ETRAX_DEF_R_DRAM_TIMING
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
 * default "5611"
 * Different DRAM chips have different speeds. Current Axis products use 50ns DRAM chips which can use the timing: 5611.

"R_SDRAM_CONFIG"
 * Option: ETRAX_DEF_R_SDRAM_CONFIG
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
 * default "d2fa7878"
 * The R_SDRAM_CONFIG register specifies everything on how the SDRAM chips in the system are connected to the ETRAX CPU. This is different depending on the manufacturer, chip type and number of chips.  So this value often needs to be different for each Axis product.

"R_SDRAM_TIMING"
 * Option: ETRAX_DEF_R_SDRAM_TIMING
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
 * default "80004801"
 * Different SDRAM chips have different timing.

"R_PORT_PA_DIR"
 * Option: ETRAX_DEF_R_PORT_PA_DIR
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "1c"
 * Configures the direction of general port A bits. 1 is out, 0 is in. This is often totally different depending on the product used. There are some guidelines though - if you know that only LED's are connected to port PA, then they are usually connected to bits 2-4 and you can therefore use 1c.  On other boards which don't have the LED's at the general ports, these bits are used for all kinds of stuff.  If you don't know what to use, it is always safe to put all as inputs, although floating inputs isn't good.

"R_PORT_PA_DATA"
 * Option: ETRAX_DEF_R_PORT_PA_DATA
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "00"
 * Configures the initial data for the general port A bits. Most products should use 00 here.

"R_PORT_PB_CONFIG"
 * Option: ETRAX_DEF_R_PORT_PB_CONFIG
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "00"
 * Configures the type of the general port B bits. 1 is chip select, 0 is port.  Most products should use 00 here.

"R_PORT_PB_DIR"
 * Option: ETRAX_DEF_R_PORT_PB_DIR
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "00"
 * Configures the direction of general port B bits. 1 is out, 0 is in. This is often totally different depending on the product used. Bits 0 and 1 on port PB are usually used for I2C communication, but the kernel I2C driver sets the appropriate directions itself so you don't need to take that into consideration when setting this option. If you don't know what to use, it is always safe to put all as inputs.

"R_PORT_PB_DATA"
 * Option: ETRAX_DEF_R_PORT_PB_DATA
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_ARCH_V10
 * default "ff"
 * Configures the initial data for the general port A bits. Most products should use FF here.


 * Option: ETRAX_SOFT_SHUTDOWN
 * Kernel Versions: 2.6.15.6 ...
 * (on/off) "Software Shutdown Support"
 * depends on ETRAX_ARCH_V10
 * Enable this if ETRAX is used with a power-supply that can be turned off and on with PS_ON signal. Gives the possibility to detect powerbutton and then do a power off after unmounting disks.

"Shutdown bit on port CSP0"
 * Option: ETRAX_SHUTDOWN_BIT
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_SOFT_SHUTDOWN
 * default "12"
 * Configure what pin on CSPO-port that is used for controlling power supply.

"Power button bit on port G"
 * Option: ETRAX_POWERBUTTON_BIT
 * Kernel Versions: 2.6.15.6 ...
 * depends on ETRAX_SOFT_SHUTDOWN
 * default "25"
 * Configure where power button is connected.