blob: af90b00100fd0d96f58df404411e00affce02bcd [file] [log] [blame]
David Brownella8e93ed2007-06-12 14:34:47 +02001# STK1000 customization
2
Haavard Skinnemoen78693e42007-10-29 17:03:26 +01003if BOARD_ATSTK1000
David Brownella8e93ed2007-06-12 14:34:47 +02004
Haavard Skinnemoene8897bf2007-11-29 11:15:15 +01005choice
6 prompt "ATSTK1000 CPU daughterboard type"
7 default BOARD_ATSTK1002
8
9config BOARD_ATSTK1002
10 bool "ATSTK1002"
11 select CPU_AT32AP7000
12
13config BOARD_ATSTK1003
14 bool "ATSTK1003"
15 select CPU_AT32AP7001
16
17config BOARD_ATSTK1004
18 bool "ATSTK1004"
19 select CPU_AT32AP7002
20
21endchoice
22
23
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010024config BOARD_ATSTK100X_CUSTOM
25 bool "Non-default STK1002/STK1003/STK1004 jumper settings"
David Brownella8e93ed2007-06-12 14:34:47 +020026 help
27 You will normally leave the jumpers on the CPU card at their
28 default settings. If you need to use certain peripherals,
29 you will need to change some of those jumpers.
30
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010031if BOARD_ATSTK100X_CUSTOM
David Brownella8e93ed2007-06-12 14:34:47 +020032
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010033config BOARD_ATSTK100X_SW1_CUSTOM
David Brownella8e93ed2007-06-12 14:34:47 +020034 bool "SW1: use SSC1 (not SPI0)"
35 help
36 This also prevents using the external DAC as an audio interface,
37 and means you can't initialize the on-board QVGA display.
38
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010039config BOARD_ATSTK100X_SW2_CUSTOM
David Brownella8e93ed2007-06-12 14:34:47 +020040 bool "SW2: use IRDA or TIMER0 (not UART-A, MMC/SD, and PS2-A)"
41 help
42 If you change this you'll want an updated boot loader putting
43 the console on UART-C not UART-A.
44
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010045config BOARD_ATSTK100X_SW3_CUSTOM
David Brownella8e93ed2007-06-12 14:34:47 +020046 bool "SW3: use TIMER1 (not SSC0 and GCLK)"
47 help
48 This also prevents using the external DAC as an audio interface.
49
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010050config BOARD_ATSTK100X_SW4_CUSTOM
David Brownella8e93ed2007-06-12 14:34:47 +020051 bool "SW4: use ISI/Camera (not GPIOs, SPI1, and PS2-B)"
52 help
53 To use the camera interface you'll need a custom card (on the
54 PCI-format connector) connect a video sensor.
55
56config BOARD_ATSTK1002_SW5_CUSTOM
57 bool "SW5: use MACB1 (not LCDC)"
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010058 depends on BOARD_ATSTK1002
David Brownella8e93ed2007-06-12 14:34:47 +020059
60config BOARD_ATSTK1002_SW6_CUSTOM
61 bool "SW6: more GPIOs (not MACB0)"
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010062 depends on BOARD_ATSTK1002
David Brownella8e93ed2007-06-12 14:34:47 +020063
64endif # custom
65
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010066config BOARD_ATSTK100X_SPI1
David Brownella8e93ed2007-06-12 14:34:47 +020067 bool "Configure SPI1 controller"
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010068 depends on !BOARD_ATSTK100X_SW4_CUSTOM
David Brownella8e93ed2007-06-12 14:34:47 +020069 help
70 All the signals for the second SPI controller are available on
71 GPIO lines and accessed through the J1 jumper block. Say "y"
72 here to configure that SPI controller.
73
Haavard Skinnemoenf4c41b22007-10-29 16:02:51 +010074config BOARD_ATSTK1000_J2_LED
David Brownellad93ab02007-07-09 10:29:44 +020075 bool
Haavard Skinnemoenf4c41b22007-10-29 16:02:51 +010076 default BOARD_ATSTK1000_J2_LED8 || BOARD_ATSTK1000_J2_RGB
David Brownellad93ab02007-07-09 10:29:44 +020077
78choice
79 prompt "LEDs connected to J2:"
Haavard Skinnemoen78693e42007-10-29 17:03:26 +010080 depends on LEDS_GPIO && !BOARD_ATSTK100X_SW4_CUSTOM
David Brownellad93ab02007-07-09 10:29:44 +020081 optional
82 help
83 Select this if you have jumpered the J2 jumper block to the
84 LED0..LED7 amber leds, or to the RGB leds, using a ten-pin
85 IDC cable. A default "heartbeat" trigger is provided, but
86 you can of course override this.
87
Haavard Skinnemoenf4c41b22007-10-29 16:02:51 +010088config BOARD_ATSTK1000_J2_LED8
David Brownellad93ab02007-07-09 10:29:44 +020089 bool "LED0..LED7"
90 help
91 Select this if J2 is jumpered to LED0..LED7 amber leds.
92
Haavard Skinnemoenf4c41b22007-10-29 16:02:51 +010093config BOARD_ATSTK1000_J2_RGB
David Brownellad93ab02007-07-09 10:29:44 +020094 bool "RGB leds"
95 help
96 Select this if J2 is jumpered to the RGB leds.
97
98endchoice
99
Haavard Skinnemoen64d81052007-10-29 16:24:09 +0100100config BOARD_ATSTK1000_EXTDAC
101 bool
Haavard Skinnemoen78693e42007-10-29 17:03:26 +0100102 depends on !BOARD_ATSTK100X_SW1_CUSTOM && !BOARD_ATSTK100X_SW3_CUSTOM
Haavard Skinnemoen64d81052007-10-29 16:24:09 +0100103 default y
104
Haavard Skinnemoen78693e42007-10-29 17:03:26 +0100105endif # stk 1000