Kconfig 2.7 KB

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