Kconfig 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # STK1000 customization
  2. if BOARD_ATSTK1000
  3. choice
  4. prompt "ATSTK1000 CPU daughterboard type"
  5. default BOARD_ATSTK1002
  6. config BOARD_ATSTK1002
  7. bool "ATSTK1002"
  8. select CPU_AT32AP7000
  9. config BOARD_ATSTK1003
  10. bool "ATSTK1003"
  11. select CPU_AT32AP7001
  12. config BOARD_ATSTK1004
  13. bool "ATSTK1004"
  14. select CPU_AT32AP7002
  15. endchoice
  16. config BOARD_ATSTK100X_CUSTOM
  17. bool "Non-default STK1002/STK1003/STK1004 jumper settings"
  18. help
  19. You will normally leave the jumpers on the CPU card at their
  20. default settings. If you need to use certain peripherals,
  21. you will need to change some of those jumpers.
  22. if BOARD_ATSTK100X_CUSTOM
  23. config BOARD_ATSTK100X_SW1_CUSTOM
  24. bool "SW1: use SSC1 (not SPI0)"
  25. help
  26. This also prevents using the external DAC as an audio interface,
  27. and means you can't initialize the on-board QVGA display.
  28. config BOARD_ATSTK100X_SW2_CUSTOM
  29. bool "SW2: use IRDA or TIMER0 (not UART-A, MMC/SD, and PS2-A)"
  30. help
  31. If you change this you'll want an updated boot loader putting
  32. the console on UART-C not UART-A.
  33. config BOARD_ATSTK100X_SW3_CUSTOM
  34. bool "SW3: use TIMER1 (not SSC0 and GCLK)"
  35. help
  36. This also prevents using the external DAC as an audio interface.
  37. config BOARD_ATSTK100X_SW4_CUSTOM
  38. bool "SW4: use ISI/Camera (not GPIOs, SPI1, and PS2-B)"
  39. help
  40. To use the camera interface you'll need a custom card (on the
  41. PCI-format connector) connect a video sensor.
  42. config BOARD_ATSTK1002_SW5_CUSTOM
  43. bool "SW5: use MACB1 (not LCDC)"
  44. depends on BOARD_ATSTK1002
  45. config BOARD_ATSTK1002_SW6_CUSTOM
  46. bool "SW6: more GPIOs (not MACB0)"
  47. depends on BOARD_ATSTK1002
  48. endif # custom
  49. config BOARD_ATSTK100X_SPI1
  50. bool "Configure SPI1 controller"
  51. depends on !BOARD_ATSTK100X_SW4_CUSTOM
  52. help
  53. All the signals for the second SPI controller are available on
  54. GPIO lines and accessed through the J1 jumper block. Say "y"
  55. here to configure that SPI controller.
  56. config BOARD_ATSTK1000_J2_LED
  57. bool
  58. default BOARD_ATSTK1000_J2_LED8 || BOARD_ATSTK1000_J2_RGB
  59. choice
  60. prompt "LEDs connected to J2:"
  61. depends on LEDS_GPIO && !BOARD_ATSTK100X_SW4_CUSTOM
  62. optional
  63. help
  64. Select this if you have jumpered the J2 jumper block to the
  65. LED0..LED7 amber leds, or to the RGB leds, using a ten-pin
  66. IDC cable. A default "heartbeat" trigger is provided, but
  67. you can of course override this.
  68. config BOARD_ATSTK1000_J2_LED8
  69. bool "LED0..LED7"
  70. help
  71. Select this if J2 is jumpered to LED0..LED7 amber leds.
  72. config BOARD_ATSTK1000_J2_RGB
  73. bool "RGB leds"
  74. help
  75. Select this if J2 is jumpered to the RGB leds.
  76. endchoice
  77. config BOARD_ATSTK1000_EXTDAC
  78. bool
  79. depends on !BOARD_ATSTK100X_SW1_CUSTOM && !BOARD_ATSTK100X_SW3_CUSTOM
  80. default y
  81. endif # stk 1000