Kconfig 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. # arch/arm/plat-samsung/Kconfig
  2. #
  3. # Copyright 2009 Simtec Electronics
  4. #
  5. # Licensed under GPLv2
  6. config PLAT_SAMSUNG
  7. bool
  8. depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_EXYNOS || ARCH_S5PV210
  9. default y
  10. select GENERIC_IRQ_CHIP
  11. select NO_IOPORT_MAP
  12. help
  13. Base platform code for all Samsung SoC based systems
  14. config SAMSUNG_PM
  15. bool
  16. depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX)
  17. default y
  18. help
  19. Base platform power management code for samsung code
  20. if PLAT_SAMSUNG
  21. menu "Samsung Common options"
  22. # boot configurations
  23. comment "Boot options"
  24. config S3C_LOWLEVEL_UART_PORT
  25. int "S3C UART to use for low-level messages"
  26. depends on ARCH_S3C64XX
  27. default 0
  28. help
  29. Choice of which UART port to use for the low-level messages,
  30. such as the `Uncompressing...` at start time. The value of
  31. this configuration should be between zero and two. The port
  32. must have been initialised by the boot-loader before use.
  33. config SAMSUNG_ATAGS
  34. def_bool n
  35. depends on ATAGS
  36. help
  37. This option enables ATAGS based boot support code for
  38. Samsung platforms, including static platform devices, legacy
  39. clock, timer and interrupt initialization, etc.
  40. Platforms that support only DT based boot need not to select
  41. this option.
  42. if SAMSUNG_ATAGS
  43. config S3C_GPIO_SPACE
  44. int "Space between gpio banks"
  45. default 0
  46. help
  47. Add a number of spare GPIO entries between each bank for debugging
  48. purposes. This allows any problems where an counter overflows from
  49. one bank to another to be caught, at the expense of using a little
  50. more memory.
  51. config S3C_GPIO_TRACK
  52. bool
  53. help
  54. Internal configuration option to enable the s3c specific gpio
  55. chip tracking if the platform requires it.
  56. # ADC driver
  57. config S3C_ADC
  58. bool "ADC common driver support"
  59. depends on !ARCH_MULTIPLATFORM
  60. help
  61. Core support for the ADC block found in the Samsung SoC systems
  62. for drivers such as the touchscreen and hwmon to use to share
  63. this resource.
  64. # device definitions to compile in
  65. config S3C_DEV_HSMMC
  66. bool
  67. help
  68. Compile in platform device definitions for HSMMC code
  69. config S3C_DEV_HSMMC1
  70. bool
  71. help
  72. Compile in platform device definitions for HSMMC channel 1
  73. config S3C_DEV_HSMMC2
  74. bool
  75. help
  76. Compile in platform device definitions for HSMMC channel 2
  77. config S3C_DEV_HSMMC3
  78. bool
  79. help
  80. Compile in platform device definitions for HSMMC channel 3
  81. config S3C_DEV_HWMON
  82. bool
  83. help
  84. Compile in platform device definitions for HWMON
  85. config S3C_DEV_I2C1
  86. bool
  87. help
  88. Compile in platform device definitions for I2C channel 1
  89. config S3C_DEV_I2C2
  90. bool
  91. help
  92. Compile in platform device definitions for I2C channel 2
  93. config S3C_DEV_I2C3
  94. bool
  95. help
  96. Compile in platform device definition for I2C controller 3
  97. config S3C_DEV_I2C4
  98. bool
  99. help
  100. Compile in platform device definition for I2C controller 4
  101. config S3C_DEV_I2C5
  102. bool
  103. help
  104. Compile in platform device definition for I2C controller 5
  105. config S3C_DEV_I2C6
  106. bool
  107. help
  108. Compile in platform device definition for I2C controller 6
  109. config S3C_DEV_I2C7
  110. bool
  111. help
  112. Compile in platform device definition for I2C controller 7
  113. config S3C_DEV_FB
  114. bool
  115. help
  116. Compile in platform device definition for framebuffer
  117. config S3C_DEV_USB_HOST
  118. bool
  119. help
  120. Compile in platform device definition for USB host.
  121. config S3C_DEV_USB_HSOTG
  122. bool
  123. help
  124. Compile in platform device definition for USB high-speed OtG
  125. config S3C_DEV_WDT
  126. bool
  127. default y if ARCH_S3C24XX
  128. help
  129. Complie in platform device definition for Watchdog Timer
  130. config S3C_DEV_NAND
  131. bool
  132. help
  133. Compile in platform device definition for NAND controller
  134. config S3C_DEV_ONENAND
  135. bool
  136. help
  137. Compile in platform device definition for OneNAND controller
  138. config S3C_DEV_RTC
  139. bool
  140. help
  141. Complie in platform device definition for RTC
  142. config SAMSUNG_DEV_ADC
  143. bool
  144. help
  145. Compile in platform device definition for ADC controller
  146. config SAMSUNG_DEV_IDE
  147. bool
  148. help
  149. Compile in platform device definitions for IDE
  150. config S3C64XX_DEV_SPI0
  151. bool
  152. help
  153. Compile in platform device definitions for S3C64XX's type
  154. SPI controller 0
  155. config S3C64XX_DEV_SPI1
  156. bool
  157. help
  158. Compile in platform device definitions for S3C64XX's type
  159. SPI controller 1
  160. config S3C64XX_DEV_SPI2
  161. bool
  162. help
  163. Compile in platform device definitions for S3C64XX's type
  164. SPI controller 2
  165. config SAMSUNG_DEV_TS
  166. bool
  167. help
  168. Common in platform device definitions for touchscreen device
  169. config SAMSUNG_DEV_KEYPAD
  170. bool
  171. help
  172. Compile in platform device definitions for keypad
  173. config SAMSUNG_DEV_PWM
  174. bool
  175. default y if ARCH_S3C24XX
  176. help
  177. Compile in platform device definition for PWM Timer
  178. config S3C24XX_PWM
  179. bool "PWM device support"
  180. select PWM
  181. select PWM_SAMSUNG
  182. help
  183. Support for exporting the PWM timer blocks via the pwm device
  184. system
  185. config GPIO_SAMSUNG
  186. def_bool y
  187. config SAMSUNG_PM_GPIO
  188. bool
  189. default y if GPIO_SAMSUNG && PM
  190. help
  191. Include legacy GPIO power management code for platforms not using
  192. pinctrl-samsung driver.
  193. endif
  194. comment "Power management"
  195. config SAMSUNG_PM_DEBUG
  196. bool "Samsung PM Suspend debug"
  197. depends on PM && DEBUG_KERNEL
  198. depends on DEBUG_EXYNOS_UART || DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART
  199. help
  200. Say Y here if you want verbose debugging from the PM Suspend and
  201. Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  202. for more information.
  203. config S3C_PM_DEBUG_LED_SMDK
  204. bool "SMDK LED suspend/resume debugging"
  205. depends on PM && (MACH_SMDK6410)
  206. help
  207. Say Y here to enable the use of the SMDK LEDs on the baseboard
  208. for debugging of the state of the suspend and resume process.
  209. Note, this currently only works for S3C64XX based SMDK boards.
  210. config SAMSUNG_PM_CHECK
  211. bool "S3C2410 PM Suspend Memory CRC"
  212. depends on PM
  213. select CRC32
  214. help
  215. Enable the PM code's memory area checksum over sleep. This option
  216. will generate CRCs of all blocks of memory, and store them before
  217. going to sleep. The blocks are then checked on resume for any
  218. errors.
  219. Note, this can take several seconds depending on memory size
  220. and CPU speed.
  221. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  222. config SAMSUNG_PM_CHECK_CHUNKSIZE
  223. int "S3C2410 PM Suspend CRC Chunksize (KiB)"
  224. depends on PM && SAMSUNG_PM_CHECK
  225. default 64
  226. help
  227. Set the chunksize in Kilobytes of the CRC for checking memory
  228. corruption over suspend and resume. A smaller value will mean that
  229. the CRC data block will take more memory, but wil identify any
  230. faults with better precision.
  231. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  232. config SAMSUNG_WAKEMASK
  233. bool
  234. depends on PM
  235. help
  236. Compile support for wakeup-mask controls found on the S3C6400
  237. and above. This code allows a set of interrupt to wakeup-mask
  238. mappings. See <plat/wakeup-mask.h>
  239. config SAMSUNG_WDT_RESET
  240. bool
  241. help
  242. Compile support for system restart by triggering watchdog reset.
  243. Used on SoCs that do not provide dedicated reset control.
  244. config DEBUG_S3C_UART
  245. depends on PLAT_SAMSUNG
  246. int
  247. default "0" if DEBUG_S3C_UART0
  248. default "1" if DEBUG_S3C_UART1
  249. default "2" if DEBUG_S3C_UART2
  250. default "3" if DEBUG_S3C_UART3
  251. endmenu
  252. endif