Jesper Nilsson | 2d33d56 | 2008-02-04 22:30:31 -0800 | [diff] [blame] | 1 | if ETRAX_ARCH_V10 |
| 2 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | # ETRAX 100LX v1 has a MMU "feature" requiring a low mapping |
| 4 | config CRIS_LOW_MAP |
| 5 | bool |
| 6 | depends on ETRAX_ARCH_V10 && ETRAX100LX |
| 7 | default y |
| 8 | |
| 9 | config ETRAX_DRAM_VIRTUAL_BASE |
| 10 | hex |
| 11 | depends on ETRAX_ARCH_V10 |
| 12 | default "c0000000" if !ETRAX100LX |
| 13 | default "60000000" if ETRAX100LX |
| 14 | |
| 15 | choice |
| 16 | prompt "Product LED port" |
| 17 | depends on ETRAX_ARCH_V10 |
| 18 | default ETRAX_PA_LEDS |
| 19 | |
| 20 | config ETRAX_PA_LEDS |
| 21 | bool "Port-PA-LEDs" |
| 22 | help |
| 23 | The ETRAX network driver is responsible for flashing LED's when |
| 24 | packets arrive and are sent. It uses macros defined in |
| 25 | <file:include/asm-cris/io.h>, and those macros are defined after what |
| 26 | YOU choose in this option. The actual bits used are configured |
| 27 | separately. Select this if the LEDs are on port PA. Some products |
| 28 | put the leds on PB or a memory-mapped latch (CSP0) instead. |
| 29 | |
| 30 | config ETRAX_PB_LEDS |
| 31 | bool "Port-PB-LEDs" |
| 32 | help |
| 33 | The ETRAX network driver is responsible for flashing LED's when |
| 34 | packets arrive and are sent. It uses macros defined in |
| 35 | <file:include/asm-cris/io.h>, and those macros are defined after what |
| 36 | YOU choose in this option. The actual bits used are configured |
| 37 | separately. Select this if the LEDs are on port PB. Some products |
| 38 | put the leds on PA or a memory-mapped latch (CSP0) instead. |
| 39 | |
| 40 | config ETRAX_CSP0_LEDS |
| 41 | bool "Port-CSP0-LEDs" |
| 42 | help |
| 43 | The ETRAX network driver is responsible for flashing LED's when |
| 44 | packets arrive and are sent. It uses macros defined in |
| 45 | <file:include/asm-cris/io.h>, and those macros are defined after what |
| 46 | YOU choose in this option. The actual bits used are configured |
| 47 | separately. Select this if the LEDs are on a memory-mapped latch |
| 48 | using chip select CSP0, this is mapped at 0x90000000. |
| 49 | Some products put the leds on PA or PB instead. |
| 50 | |
| 51 | config ETRAX_NO_LEDS |
| 52 | bool "None" |
| 53 | help |
| 54 | Select this option if you don't have any LED at all. |
| 55 | |
| 56 | endchoice |
| 57 | |
| 58 | config ETRAX_LED1G |
| 59 | int "First green LED bit" |
| 60 | depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS |
| 61 | default "2" |
| 62 | help |
| 63 | Bit to use for the first green LED. |
| 64 | Most Axis products use bit 2 here. |
| 65 | |
| 66 | config ETRAX_LED1R |
| 67 | int "First red LED bit" |
| 68 | depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS |
| 69 | default "3" |
| 70 | help |
| 71 | Bit to use for the first red LED. |
| 72 | Most Axis products use bit 3 here. |
| 73 | For products with only one controllable LED, |
| 74 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 75 | |
| 76 | config ETRAX_LED2G |
| 77 | int "Second green LED bit" |
| 78 | depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS |
| 79 | default "4" |
| 80 | help |
| 81 | Bit to use for the second green LED. The "Active" LED. |
| 82 | Most Axis products use bit 4 here. |
| 83 | For products with only one controllable LED, |
| 84 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 85 | |
| 86 | config ETRAX_LED2R |
| 87 | int "Second red LED bit" |
| 88 | depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS |
| 89 | default "5" |
| 90 | help |
| 91 | Bit to use for the second red LED. |
| 92 | Most Axis products use bit 5 here. |
| 93 | For products with only one controllable LED, |
| 94 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 95 | |
| 96 | config ETRAX_LED3G |
| 97 | int "Third green LED bit" |
| 98 | depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS |
| 99 | default "2" |
| 100 | help |
| 101 | Bit to use for the third green LED. The "Drive" LED. |
| 102 | For products with only one or two controllable LEDs, |
| 103 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 104 | |
| 105 | config ETRAX_LED3R |
| 106 | int "Third red LED bit" |
| 107 | depends on ETRAX_ARCH_V10 && !ETRAX_NO_LEDS |
| 108 | default "2" |
| 109 | help |
| 110 | Bit to use for the third red LED. |
| 111 | For products with only one or two controllable LEDs, |
| 112 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 113 | |
| 114 | config ETRAX_LED4R |
| 115 | int "Fourth red LED bit" |
| 116 | depends on ETRAX_CSP0_LEDS |
| 117 | default "2" |
| 118 | help |
| 119 | Bit to use for the fourth red LED. |
| 120 | For products with only one or two controllable LEDs, |
| 121 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 122 | |
| 123 | config ETRAX_LED4G |
| 124 | int "Fourth green LED bit" |
| 125 | depends on ETRAX_CSP0_LEDS |
| 126 | default "2" |
| 127 | help |
| 128 | Bit to use for the fourth green LED. |
| 129 | For products with only one or two controllable LEDs, |
| 130 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 131 | |
| 132 | config ETRAX_LED5R |
| 133 | int "Fifth red LED bit" |
| 134 | depends on ETRAX_CSP0_LEDS |
| 135 | default "2" |
| 136 | help |
| 137 | Bit to use for the fifth red LED. |
| 138 | For products with only one or two controllable LEDs, |
| 139 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 140 | |
| 141 | config ETRAX_LED5G |
| 142 | int "Fifth green LED bit" |
| 143 | depends on ETRAX_CSP0_LEDS |
| 144 | default "2" |
| 145 | help |
| 146 | Bit to use for the fifth green LED. |
| 147 | For products with only one or two controllable LEDs, |
| 148 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 149 | |
| 150 | config ETRAX_LED6R |
| 151 | int "Sixth red LED bit" |
| 152 | depends on ETRAX_CSP0_LEDS |
| 153 | default "2" |
| 154 | help |
| 155 | Bit to use for the sixth red LED. |
| 156 | For products with only one or two controllable LEDs, |
| 157 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 158 | |
| 159 | config ETRAX_LED6G |
| 160 | int "Sixth green LED bit" |
| 161 | depends on ETRAX_CSP0_LEDS |
| 162 | default "2" |
| 163 | help |
| 164 | Bit to use for the sixth green LED. The "Drive" LED. |
| 165 | For products with only one or two controllable LEDs, |
| 166 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 167 | |
| 168 | config ETRAX_LED7R |
| 169 | int "Seventh red LED bit" |
| 170 | depends on ETRAX_CSP0_LEDS |
| 171 | default "2" |
| 172 | help |
| 173 | Bit to use for the seventh red LED. |
| 174 | For products with only one or two controllable LEDs, |
| 175 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 176 | |
| 177 | config ETRAX_LED7G |
| 178 | int "Seventh green LED bit" |
| 179 | depends on ETRAX_CSP0_LEDS |
| 180 | default "2" |
| 181 | help |
| 182 | Bit to use for the seventh green LED. |
| 183 | For products with only one or two controllable LEDs, |
| 184 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 185 | |
| 186 | config ETRAX_LED8Y |
Matt LaPlante | 01dd2fb | 2007-10-20 01:34:40 +0200 | [diff] [blame] | 187 | int "Eighth yellow LED bit" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | depends on ETRAX_CSP0_LEDS |
| 189 | default "2" |
| 190 | help |
| 191 | Bit to use for the eighth yellow LED. The "Drive" LED. |
| 192 | For products with only one or two controllable LEDs, |
| 193 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 194 | |
| 195 | config ETRAX_LED9Y |
| 196 | int "Ninth yellow LED bit" |
| 197 | depends on ETRAX_CSP0_LEDS |
| 198 | default "2" |
| 199 | help |
| 200 | Bit to use for the ninth yellow LED. |
| 201 | For products with only one or two controllable LEDs, |
| 202 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 203 | |
| 204 | config ETRAX_LED10Y |
| 205 | int "Tenth yellow LED bit" |
| 206 | depends on ETRAX_CSP0_LEDS |
| 207 | default "2" |
| 208 | help |
| 209 | Bit to use for the tenth yellow LED. |
| 210 | For products with only one or two controllable LEDs, |
| 211 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 212 | |
| 213 | config ETRAX_LED11Y |
| 214 | int "Eleventh yellow LED bit" |
| 215 | depends on ETRAX_CSP0_LEDS |
| 216 | default "2" |
| 217 | help |
| 218 | Bit to use for the eleventh yellow LED. |
| 219 | For products with only one or two controllable LEDs, |
| 220 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 221 | |
| 222 | config ETRAX_LED12R |
| 223 | int "Twelfth red LED bit" |
| 224 | depends on ETRAX_CSP0_LEDS |
| 225 | default "2" |
| 226 | help |
| 227 | Bit to use for the twelfth red LED. |
| 228 | For products with only one or two controllable LEDs, |
| 229 | set this to same as CONFIG_ETRAX_LED1G (normally 2). |
| 230 | |
| 231 | choice |
| 232 | prompt "Product debug-port" |
| 233 | depends on ETRAX_ARCH_V10 |
| 234 | default ETRAX_DEBUG_PORT0 |
| 235 | |
| 236 | config ETRAX_DEBUG_PORT0 |
| 237 | bool "Serial-0" |
| 238 | help |
| 239 | Choose a serial port for the ETRAX debug console. Default to |
| 240 | port 0. |
| 241 | |
| 242 | config ETRAX_DEBUG_PORT1 |
| 243 | bool "Serial-1" |
| 244 | help |
| 245 | Use serial port 1 for the console. |
| 246 | |
| 247 | config ETRAX_DEBUG_PORT2 |
| 248 | bool "Serial-2" |
| 249 | help |
| 250 | Use serial port 2 for the console. |
| 251 | |
| 252 | config ETRAX_DEBUG_PORT3 |
| 253 | bool "Serial-3" |
| 254 | help |
| 255 | Use serial port 3 for the console. |
| 256 | |
| 257 | config ETRAX_DEBUG_PORT_NULL |
| 258 | bool "disabled" |
| 259 | help |
| 260 | Disable serial-port debugging. |
| 261 | |
| 262 | endchoice |
| 263 | |
| 264 | choice |
Mikael Starvik | 3e41d65 | 2005-07-27 11:44:30 -0700 | [diff] [blame] | 265 | prompt "Kernel GDB port" |
| 266 | depends on ETRAX_KGDB |
| 267 | default ETRAX_KGDB_PORT0 |
| 268 | help |
| 269 | Choose a serial port for kernel debugging. NOTE: This port should |
| 270 | not be enabled under Drivers for built-in interfaces (as it has its |
| 271 | own initialization code) and should not be the same as the debug port. |
| 272 | |
| 273 | config ETRAX_KGDB_PORT0 |
| 274 | bool "Serial-0" |
| 275 | help |
| 276 | Use serial port 0 for kernel debugging. |
| 277 | |
| 278 | config ETRAX_KGDB_PORT1 |
| 279 | bool "Serial-1" |
| 280 | help |
| 281 | Use serial port 1 for kernel debugging. |
| 282 | |
| 283 | config ETRAX_KGDB_PORT2 |
| 284 | bool "Serial-2" |
| 285 | help |
| 286 | Use serial port 2 for kernel debugging. |
| 287 | |
| 288 | config ETRAX_KGDB_PORT3 |
| 289 | bool "Serial-3" |
| 290 | help |
| 291 | Use serial port 3 for kernel debugging. |
| 292 | |
| 293 | endchoice |
| 294 | |
| 295 | choice |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 296 | prompt "Product rescue-port" |
| 297 | depends on ETRAX_ARCH_V10 |
| 298 | default ETRAX_RESCUE_SER0 |
| 299 | |
| 300 | config ETRAX_RESCUE_SER0 |
| 301 | bool "Serial-0" |
| 302 | help |
| 303 | Select one of the four serial ports as a rescue port. The default |
| 304 | is port 0. |
| 305 | |
| 306 | config ETRAX_RESCUE_SER1 |
| 307 | bool "Serial-1" |
| 308 | help |
| 309 | Use serial port 1 as the rescue port. |
| 310 | |
| 311 | config ETRAX_RESCUE_SER2 |
| 312 | bool "Serial-2" |
| 313 | help |
| 314 | Use serial port 2 as the rescue port. |
| 315 | |
| 316 | config ETRAX_RESCUE_SER3 |
| 317 | bool "Serial-3" |
| 318 | help |
| 319 | Use serial port 3 as the rescue port. |
| 320 | |
| 321 | endchoice |
| 322 | |
| 323 | config ETRAX_DEF_R_WAITSTATES |
| 324 | hex "R_WAITSTATES" |
| 325 | depends on ETRAX_ARCH_V10 |
| 326 | default "95a6" |
| 327 | help |
Matt LaPlante | 3cb2fcc | 2006-11-30 05:22:59 +0100 | [diff] [blame] | 328 | Waitstates for SRAM, Flash and peripherals (not DRAM). 95f8 is a |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 329 | good choice for most Axis products... |
| 330 | |
| 331 | config ETRAX_DEF_R_BUS_CONFIG |
| 332 | hex "R_BUS_CONFIG" |
| 333 | depends on ETRAX_ARCH_V10 |
| 334 | default "104" |
| 335 | help |
| 336 | Assorted bits controlling write mode, DMA burst length etc. 104 is |
| 337 | a good choice for most Axis products... |
| 338 | |
| 339 | config ETRAX_SDRAM |
| 340 | bool "SDRAM support" |
| 341 | depends on ETRAX_ARCH_V10 |
| 342 | help |
| 343 | Enable this if you use SDRAM chips and configure |
| 344 | R_SDRAM_CONFIG and R_SDRAM_TIMING as well. |
| 345 | |
| 346 | config ETRAX_DEF_R_DRAM_CONFIG |
| 347 | hex "R_DRAM_CONFIG" |
| 348 | depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM |
| 349 | default "1a200040" |
| 350 | help |
| 351 | The R_DRAM_CONFIG register specifies everything on how the DRAM |
| 352 | chips in the system are connected to the ETRAX CPU. This is |
| 353 | different depending on the manufacturer, chip type and number of |
| 354 | chips. So this value often needs to be different for each Axis |
| 355 | product. |
| 356 | |
| 357 | config ETRAX_DEF_R_DRAM_TIMING |
| 358 | hex "R_DRAM_TIMING" |
| 359 | depends on ETRAX_ARCH_V10 && !ETRAX_SDRAM |
| 360 | default "5611" |
| 361 | help |
| 362 | Different DRAM chips have different speeds. Current Axis products |
| 363 | use 50ns DRAM chips which can use the timing: 5611. |
| 364 | |
| 365 | config ETRAX_DEF_R_SDRAM_CONFIG |
| 366 | hex "R_SDRAM_CONFIG" |
| 367 | depends on ETRAX_ARCH_V10 && ETRAX_SDRAM |
| 368 | default "d2fa7878" |
| 369 | help |
| 370 | The R_SDRAM_CONFIG register specifies everything on how the SDRAM |
| 371 | chips in the system are connected to the ETRAX CPU. This is |
| 372 | different depending on the manufacturer, chip type and number of |
| 373 | chips. So this value often needs to be different for each Axis |
| 374 | product. |
| 375 | |
| 376 | config ETRAX_DEF_R_SDRAM_TIMING |
| 377 | hex "R_SDRAM_TIMING" |
| 378 | depends on ETRAX_ARCH_V10 && ETRAX_SDRAM |
| 379 | default "80004801" |
| 380 | help |
| 381 | Different SDRAM chips have different timing. |
| 382 | |
| 383 | config ETRAX_DEF_R_PORT_PA_DIR |
| 384 | hex "R_PORT_PA_DIR" |
| 385 | depends on ETRAX_ARCH_V10 |
| 386 | default "1c" |
| 387 | help |
| 388 | Configures the direction of general port A bits. 1 is out, 0 is in. |
| 389 | This is often totally different depending on the product used. |
| 390 | There are some guidelines though - if you know that only LED's are |
| 391 | connected to port PA, then they are usually connected to bits 2-4 |
| 392 | and you can therefore use 1c. On other boards which don't have the |
| 393 | LED's at the general ports, these bits are used for all kinds of |
| 394 | stuff. If you don't know what to use, it is always safe to put all |
| 395 | as inputs, although floating inputs isn't good. |
| 396 | |
| 397 | config ETRAX_DEF_R_PORT_PA_DATA |
| 398 | hex "R_PORT_PA_DATA" |
| 399 | depends on ETRAX_ARCH_V10 |
| 400 | default "00" |
| 401 | help |
| 402 | Configures the initial data for the general port A bits. Most |
| 403 | products should use 00 here. |
| 404 | |
| 405 | config ETRAX_DEF_R_PORT_PB_CONFIG |
| 406 | hex "R_PORT_PB_CONFIG" |
| 407 | depends on ETRAX_ARCH_V10 |
| 408 | default "00" |
| 409 | help |
| 410 | Configures the type of the general port B bits. 1 is chip select, |
| 411 | 0 is port. Most products should use 00 here. |
| 412 | |
| 413 | config ETRAX_DEF_R_PORT_PB_DIR |
| 414 | hex "R_PORT_PB_DIR" |
| 415 | depends on ETRAX_ARCH_V10 |
| 416 | default "00" |
| 417 | help |
| 418 | Configures the direction of general port B bits. 1 is out, 0 is in. |
| 419 | This is often totally different depending on the product used. Bits |
| 420 | 0 and 1 on port PB are usually used for I2C communication, but the |
| 421 | kernel I2C driver sets the appropriate directions itself so you |
| 422 | don't need to take that into consideration when setting this option. |
| 423 | If you don't know what to use, it is always safe to put all as |
| 424 | inputs. |
| 425 | |
| 426 | config ETRAX_DEF_R_PORT_PB_DATA |
| 427 | hex "R_PORT_PB_DATA" |
| 428 | depends on ETRAX_ARCH_V10 |
| 429 | default "ff" |
| 430 | help |
| 431 | Configures the initial data for the general port A bits. Most |
| 432 | products should use FF here. |
| 433 | |
| 434 | config ETRAX_SOFT_SHUTDOWN |
| 435 | bool "Software Shutdown Support" |
| 436 | depends on ETRAX_ARCH_V10 |
| 437 | help |
| 438 | Enable this if ETRAX is used with a power-supply that can be turned |
| 439 | off and on with PS_ON signal. Gives the possibility to detect |
| 440 | powerbutton and then do a power off after unmounting disks. |
| 441 | |
| 442 | config ETRAX_SHUTDOWN_BIT |
| 443 | int "Shutdown bit on port CSP0" |
| 444 | depends on ETRAX_SOFT_SHUTDOWN |
| 445 | default "12" |
| 446 | help |
| 447 | Configure what pin on CSPO-port that is used for controlling power |
| 448 | supply. |
| 449 | |
| 450 | config ETRAX_POWERBUTTON_BIT |
| 451 | int "Power button bit on port G" |
| 452 | depends on ETRAX_SOFT_SHUTDOWN |
| 453 | default "25" |
| 454 | help |
| 455 | Configure where power button is connected. |
Jesper Nilsson | 2d33d56 | 2008-02-04 22:30:31 -0800 | [diff] [blame] | 456 | |
| 457 | endif |