1 # SPDX-License-Identifier: GPL-2.0
4 menu "CRIS v10 options"
6 # ETRAX 100LX v1 has a MMU "feature" requiring a low mapping
9 depends on ETRAX_ARCH_V10 && ETRAX100LX
12 config ETRAX_DRAM_VIRTUAL_BASE
14 depends on ETRAX_ARCH_V10
15 default "c0000000" if !ETRAX100LX
16 default "60000000" if ETRAX100LX
19 prompt "Product LED port"
20 depends on ETRAX_ARCH_V10
26 The ETRAX network driver is responsible for flashing LED's when
27 packets arrive and are sent. It uses macros defined in
28 <file:arch/cris/include/asm/io.h>, and those macros are defined after
29 what YOU choose in this option. The actual bits used are configured
30 separately. Select this if the LEDs are on port PA. Some products
31 put the leds on PB or a memory-mapped latch (CSP0) instead.
36 The ETRAX network driver is responsible for flashing LED's when
37 packets arrive and are sent. It uses macros defined in
38 <file:arch/cris/include/asm/io.h>, and those macros are defined after
39 what YOU choose in this option. The actual bits used are configured
40 separately. Select this if the LEDs are on port PB. Some products
41 put the leds on PA or a memory-mapped latch (CSP0) instead.
43 config ETRAX_CSP0_LEDS
46 The ETRAX network driver is responsible for flashing LED's when
47 packets arrive and are sent. It uses macros defined in
48 <file:arch/cris/include/asm/io.h>, and those macros are defined after
49 what YOU choose in this option. The actual bits used are configured
50 separately. Select this if the LEDs are on a memory-mapped latch
51 using chip select CSP0, this is mapped at 0x90000000.
52 Some products put the leds on PA or PB instead.
57 Select this option if you don't have any LED at all.
62 int "First green LED bit"
63 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
66 Bit to use for the first green LED.
67 Most Axis products use bit 2 here.
70 int "First red LED bit"
71 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
74 Bit to use for the first red LED.
75 Most Axis products use bit 3 here.
76 For products with only one controllable LED,
77 set this to same as CONFIG_ETRAX_LED1G (normally 2).
80 int "Second green LED bit"
81 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
84 Bit to use for the second green LED. The "Active" LED.
85 Most Axis products use bit 4 here.
86 For products with only one controllable LED,
87 set this to same as CONFIG_ETRAX_LED1G (normally 2).
90 int "Second red LED bit"
91 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
94 Bit to use for the second red LED.
95 Most Axis products use bit 5 here.
96 For products with only one controllable LED,
97 set this to same as CONFIG_ETRAX_LED1G (normally 2).
100 int "Third green LED bit"
101 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
104 Bit to use for the third green LED. The "Drive" LED.
105 For products with only one or two controllable LEDs,
106 set this to same as CONFIG_ETRAX_LED1G (normally 2).
109 int "Third red LED bit"
110 depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS
113 Bit to use for the third red LED.
114 For products with only one or two controllable LEDs,
115 set this to same as CONFIG_ETRAX_LED1G (normally 2).
118 int "Fourth red LED bit"
119 depends on ETRAX_CSP0_LEDS
122 Bit to use for the fourth red LED.
123 For products with only one or two controllable LEDs,
124 set this to same as CONFIG_ETRAX_LED1G (normally 2).
127 int "Fourth green LED bit"
128 depends on ETRAX_CSP0_LEDS
131 Bit to use for the fourth green LED.
132 For products with only one or two controllable LEDs,
133 set this to same as CONFIG_ETRAX_LED1G (normally 2).
136 int "Fifth red LED bit"
137 depends on ETRAX_CSP0_LEDS
140 Bit to use for the fifth red LED.
141 For products with only one or two controllable LEDs,
142 set this to same as CONFIG_ETRAX_LED1G (normally 2).
145 int "Fifth green LED bit"
146 depends on ETRAX_CSP0_LEDS
149 Bit to use for the fifth green LED.
150 For products with only one or two controllable LEDs,
151 set this to same as CONFIG_ETRAX_LED1G (normally 2).
154 int "Sixth red LED bit"
155 depends on ETRAX_CSP0_LEDS
158 Bit to use for the sixth red LED.
159 For products with only one or two controllable LEDs,
160 set this to same as CONFIG_ETRAX_LED1G (normally 2).
163 int "Sixth green LED bit"
164 depends on ETRAX_CSP0_LEDS
167 Bit to use for the sixth green LED. The "Drive" LED.
168 For products with only one or two controllable LEDs,
169 set this to same as CONFIG_ETRAX_LED1G (normally 2).
172 int "Seventh red LED bit"
173 depends on ETRAX_CSP0_LEDS
176 Bit to use for the seventh red LED.
177 For products with only one or two controllable LEDs,
178 set this to same as CONFIG_ETRAX_LED1G (normally 2).
181 int "Seventh green LED bit"
182 depends on ETRAX_CSP0_LEDS
185 Bit to use for the seventh green LED.
186 For products with only one or two controllable LEDs,
187 set this to same as CONFIG_ETRAX_LED1G (normally 2).
190 int "Eighth yellow LED bit"
191 depends on ETRAX_CSP0_LEDS
194 Bit to use for the eighth yellow LED. The "Drive" LED.
195 For products with only one or two controllable LEDs,
196 set this to same as CONFIG_ETRAX_LED1G (normally 2).
199 int "Ninth yellow LED bit"
200 depends on ETRAX_CSP0_LEDS
203 Bit to use for the ninth yellow LED.
204 For products with only one or two controllable LEDs,
205 set this to same as CONFIG_ETRAX_LED1G (normally 2).
208 int "Tenth yellow LED bit"
209 depends on ETRAX_CSP0_LEDS
212 Bit to use for the tenth yellow LED.
213 For products with only one or two controllable LEDs,
214 set this to same as CONFIG_ETRAX_LED1G (normally 2).
217 int "Eleventh yellow LED bit"
218 depends on ETRAX_CSP0_LEDS
221 Bit to use for the eleventh yellow LED.
222 For products with only one or two controllable LEDs,
223 set this to same as CONFIG_ETRAX_LED1G (normally 2).
226 int "Twelfth red LED bit"
227 depends on ETRAX_CSP0_LEDS
230 Bit to use for the twelfth red LED.
231 For products with only one or two controllable LEDs,
232 set this to same as CONFIG_ETRAX_LED1G (normally 2).
236 prompt "Product rescue-port"
237 depends on ETRAX_ARCH_V10
238 default ETRAX_RESCUE_SER0
240 config ETRAX_RESCUE_SER0
243 Select one of the four serial ports as a rescue port. The default
246 config ETRAX_RESCUE_SER1
249 Use serial port 1 as the rescue port.
251 config ETRAX_RESCUE_SER2
254 Use serial port 2 as the rescue port.
256 config ETRAX_RESCUE_SER3
259 Use serial port 3 as the rescue port.
263 config ETRAX_DEF_R_WAITSTATES
265 depends on ETRAX_ARCH_V10
268 Waitstates for SRAM, Flash and peripherals (not DRAM). 95f8 is a
269 good choice for most Axis products...
271 config ETRAX_DEF_R_BUS_CONFIG
273 depends on ETRAX_ARCH_V10
276 Assorted bits controlling write mode, DMA burst length etc. 104 is
277 a good choice for most Axis products...
281 depends on ETRAX_ARCH_V10
283 Enable this if you use SDRAM chips and configure
284 R_SDRAM_CONFIG and R_SDRAM_TIMING as well.
286 config ETRAX_DEF_R_DRAM_CONFIG
288 depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
291 The R_DRAM_CONFIG register specifies everything on how the DRAM
292 chips in the system are connected to the ETRAX CPU. This is
293 different depending on the manufacturer, chip type and number of
294 chips. So this value often needs to be different for each Axis
297 config ETRAX_DEF_R_DRAM_TIMING
299 depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM
302 Different DRAM chips have different speeds. Current Axis products
303 use 50ns DRAM chips which can use the timing: 5611.
305 config ETRAX_DEF_R_SDRAM_CONFIG
307 depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
310 The R_SDRAM_CONFIG register specifies everything on how the SDRAM
311 chips in the system are connected to the ETRAX CPU. This is
312 different depending on the manufacturer, chip type and number of
313 chips. So this value often needs to be different for each Axis
316 config ETRAX_DEF_R_SDRAM_TIMING
318 depends on ETRAX_ARCH_V10 && ETRAX_SDRAM
321 Different SDRAM chips have different timing.
323 config ETRAX_DEF_R_PORT_PA_DIR
325 depends on ETRAX_ARCH_V10
328 Configures the direction of general port A bits. 1 is out, 0 is in.
329 This is often totally different depending on the product used.
330 There are some guidelines though - if you know that only LED's are
331 connected to port PA, then they are usually connected to bits 2-4
332 and you can therefore use 1c. On other boards which don't have the
333 LED's at the general ports, these bits are used for all kinds of
334 stuff. If you don't know what to use, it is always safe to put all
335 as inputs, although floating inputs isn't good.
337 config ETRAX_DEF_R_PORT_PA_DATA
339 depends on ETRAX_ARCH_V10
342 Configures the initial data for the general port A bits. Most
343 products should use 00 here.
345 config ETRAX_DEF_R_PORT_PB_CONFIG
346 hex "R_PORT_PB_CONFIG"
347 depends on ETRAX_ARCH_V10
350 Configures the type of the general port B bits. 1 is chip select,
351 0 is port. Most products should use 00 here.
353 config ETRAX_DEF_R_PORT_PB_DIR
355 depends on ETRAX_ARCH_V10
358 Configures the direction of general port B bits. 1 is out, 0 is in.
359 This is often totally different depending on the product used. Bits
360 0 and 1 on port PB are usually used for I2C communication, but the
361 kernel I2C driver sets the appropriate directions itself so you
362 don't need to take that into consideration when setting this option.
363 If you don't know what to use, it is always safe to put all as
366 config ETRAX_DEF_R_PORT_PB_DATA
368 depends on ETRAX_ARCH_V10
371 Configures the initial data for the general port A bits. Most
372 products should use FF here.
374 config ETRAX_SOFT_SHUTDOWN
375 bool "Software Shutdown Support"
376 depends on ETRAX_ARCH_V10
378 Enable this if ETRAX is used with a power-supply that can be turned
379 off and on with PS_ON signal. Gives the possibility to detect
380 powerbutton and then do a power off after unmounting disks.
382 config ETRAX_SHUTDOWN_BIT
383 int "Shutdown bit on port CSP0"
384 depends on ETRAX_SOFT_SHUTDOWN
387 Configure what pin on CSPO-port that is used for controlling power
390 config ETRAX_POWERBUTTON_BIT
391 int "Power button bit on port G"
392 depends on ETRAX_SOFT_SHUTDOWN
395 Configure where power button is connected.