diff options
Diffstat (limited to 'arch/avr32/boards/atstk1000/Kconfig')
-rw-r--r-- | arch/avr32/boards/atstk1000/Kconfig | 58 |
1 files changed, 42 insertions, 16 deletions
diff --git a/arch/avr32/boards/atstk1000/Kconfig b/arch/avr32/boards/atstk1000/Kconfig index 718578f64069..af90b00100fd 100644 --- a/arch/avr32/boards/atstk1000/Kconfig +++ b/arch/avr32/boards/atstk1000/Kconfig | |||
@@ -1,34 +1,53 @@ | |||
1 | # STK1000 customization | 1 | # STK1000 customization |
2 | 2 | ||
3 | if BOARD_ATSTK1002 | 3 | if BOARD_ATSTK1000 |
4 | 4 | ||
5 | config BOARD_ATSTK1002_CUSTOM | 5 | choice |
6 | bool "Non-default STK-1002 jumper settings" | 6 | prompt "ATSTK1000 CPU daughterboard type" |
7 | default BOARD_ATSTK1002 | ||
8 | |||
9 | config BOARD_ATSTK1002 | ||
10 | bool "ATSTK1002" | ||
11 | select CPU_AT32AP7000 | ||
12 | |||
13 | config BOARD_ATSTK1003 | ||
14 | bool "ATSTK1003" | ||
15 | select CPU_AT32AP7001 | ||
16 | |||
17 | config BOARD_ATSTK1004 | ||
18 | bool "ATSTK1004" | ||
19 | select CPU_AT32AP7002 | ||
20 | |||
21 | endchoice | ||
22 | |||
23 | |||
24 | config BOARD_ATSTK100X_CUSTOM | ||
25 | bool "Non-default STK1002/STK1003/STK1004 jumper settings" | ||
7 | help | 26 | help |
8 | You will normally leave the jumpers on the CPU card at their | 27 | You will normally leave the jumpers on the CPU card at their |
9 | default settings. If you need to use certain peripherals, | 28 | default settings. If you need to use certain peripherals, |
10 | you will need to change some of those jumpers. | 29 | you will need to change some of those jumpers. |
11 | 30 | ||
12 | if BOARD_ATSTK1002_CUSTOM | 31 | if BOARD_ATSTK100X_CUSTOM |
13 | 32 | ||
14 | config BOARD_ATSTK1002_SW1_CUSTOM | 33 | config BOARD_ATSTK100X_SW1_CUSTOM |
15 | bool "SW1: use SSC1 (not SPI0)" | 34 | bool "SW1: use SSC1 (not SPI0)" |
16 | help | 35 | help |
17 | This also prevents using the external DAC as an audio interface, | 36 | This also prevents using the external DAC as an audio interface, |
18 | and means you can't initialize the on-board QVGA display. | 37 | and means you can't initialize the on-board QVGA display. |
19 | 38 | ||
20 | config BOARD_ATSTK1002_SW2_CUSTOM | 39 | config BOARD_ATSTK100X_SW2_CUSTOM |
21 | bool "SW2: use IRDA or TIMER0 (not UART-A, MMC/SD, and PS2-A)" | 40 | bool "SW2: use IRDA or TIMER0 (not UART-A, MMC/SD, and PS2-A)" |
22 | help | 41 | help |
23 | If you change this you'll want an updated boot loader putting | 42 | If you change this you'll want an updated boot loader putting |
24 | the console on UART-C not UART-A. | 43 | the console on UART-C not UART-A. |
25 | 44 | ||
26 | config BOARD_ATSTK1002_SW3_CUSTOM | 45 | config BOARD_ATSTK100X_SW3_CUSTOM |
27 | bool "SW3: use TIMER1 (not SSC0 and GCLK)" | 46 | bool "SW3: use TIMER1 (not SSC0 and GCLK)" |
28 | help | 47 | help |
29 | This also prevents using the external DAC as an audio interface. | 48 | This also prevents using the external DAC as an audio interface. |
30 | 49 | ||
31 | config BOARD_ATSTK1002_SW4_CUSTOM | 50 | config BOARD_ATSTK100X_SW4_CUSTOM |
32 | bool "SW4: use ISI/Camera (not GPIOs, SPI1, and PS2-B)" | 51 | bool "SW4: use ISI/Camera (not GPIOs, SPI1, and PS2-B)" |
33 | help | 52 | help |
34 | To use the camera interface you'll need a custom card (on the | 53 | To use the camera interface you'll need a custom card (on the |
@@ -36,27 +55,29 @@ config BOARD_ATSTK1002_SW4_CUSTOM | |||
36 | 55 | ||
37 | config BOARD_ATSTK1002_SW5_CUSTOM | 56 | config BOARD_ATSTK1002_SW5_CUSTOM |
38 | bool "SW5: use MACB1 (not LCDC)" | 57 | bool "SW5: use MACB1 (not LCDC)" |
58 | depends on BOARD_ATSTK1002 | ||
39 | 59 | ||
40 | config BOARD_ATSTK1002_SW6_CUSTOM | 60 | config BOARD_ATSTK1002_SW6_CUSTOM |
41 | bool "SW6: more GPIOs (not MACB0)" | 61 | bool "SW6: more GPIOs (not MACB0)" |
62 | depends on BOARD_ATSTK1002 | ||
42 | 63 | ||
43 | endif # custom | 64 | endif # custom |
44 | 65 | ||
45 | config BOARD_ATSTK1002_SPI1 | 66 | config BOARD_ATSTK100X_SPI1 |
46 | bool "Configure SPI1 controller" | 67 | bool "Configure SPI1 controller" |
47 | depends on !BOARD_ATSTK1002_SW4_CUSTOM | 68 | depends on !BOARD_ATSTK100X_SW4_CUSTOM |
48 | help | 69 | help |
49 | All the signals for the second SPI controller are available on | 70 | All the signals for the second SPI controller are available on |
50 | GPIO lines and accessed through the J1 jumper block. Say "y" | 71 | GPIO lines and accessed through the J1 jumper block. Say "y" |
51 | here to configure that SPI controller. | 72 | here to configure that SPI controller. |
52 | 73 | ||
53 | config BOARD_ATSTK1002_J2_LED | 74 | config BOARD_ATSTK1000_J2_LED |
54 | bool | 75 | bool |
55 | default BOARD_ATSTK1002_J2_LED8 || BOARD_ATSTK1002_J2_RGB | 76 | default BOARD_ATSTK1000_J2_LED8 || BOARD_ATSTK1000_J2_RGB |
56 | 77 | ||
57 | choice | 78 | choice |
58 | prompt "LEDs connected to J2:" | 79 | prompt "LEDs connected to J2:" |
59 | depends on LEDS_GPIO && !BOARD_ATSTK1002_SW4_CUSTOM | 80 | depends on LEDS_GPIO && !BOARD_ATSTK100X_SW4_CUSTOM |
60 | optional | 81 | optional |
61 | help | 82 | help |
62 | Select this if you have jumpered the J2 jumper block to the | 83 | Select this if you have jumpered the J2 jumper block to the |
@@ -64,16 +85,21 @@ choice | |||
64 | IDC cable. A default "heartbeat" trigger is provided, but | 85 | IDC cable. A default "heartbeat" trigger is provided, but |
65 | you can of course override this. | 86 | you can of course override this. |
66 | 87 | ||
67 | config BOARD_ATSTK1002_J2_LED8 | 88 | config BOARD_ATSTK1000_J2_LED8 |
68 | bool "LED0..LED7" | 89 | bool "LED0..LED7" |
69 | help | 90 | help |
70 | Select this if J2 is jumpered to LED0..LED7 amber leds. | 91 | Select this if J2 is jumpered to LED0..LED7 amber leds. |
71 | 92 | ||
72 | config BOARD_ATSTK1002_J2_RGB | 93 | config BOARD_ATSTK1000_J2_RGB |
73 | bool "RGB leds" | 94 | bool "RGB leds" |
74 | help | 95 | help |
75 | Select this if J2 is jumpered to the RGB leds. | 96 | Select this if J2 is jumpered to the RGB leds. |
76 | 97 | ||
77 | endchoice | 98 | endchoice |
78 | 99 | ||
79 | endif # stk 1002 | 100 | config BOARD_ATSTK1000_EXTDAC |
101 | bool | ||
102 | depends on !BOARD_ATSTK100X_SW1_CUSTOM && !BOARD_ATSTK100X_SW3_CUSTOM | ||
103 | default y | ||
104 | |||
105 | endif # stk 1000 | ||