Kconfig 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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 !ARCH_MULTIPLATFORM
  36. depends on ATAGS
  37. help
  38. This option enables ATAGS based boot support code for
  39. Samsung platforms, including static platform devices, legacy
  40. clock, timer and interrupt initialization, etc.
  41. Platforms that support only DT based boot need not to select
  42. this option.
  43. if SAMSUNG_ATAGS
  44. config S3C_GPIO_SPACE
  45. int "Space between gpio banks"
  46. default 0
  47. help
  48. Add a number of spare GPIO entries between each bank for debugging
  49. purposes. This allows any problems where an counter overflows from
  50. one bank to another to be caught, at the expense of using a little
  51. more memory.
  52. config S3C_GPIO_TRACK
  53. bool
  54. help
  55. Internal configuration option to enable the s3c specific gpio
  56. chip tracking if the platform requires it.
  57. # ADC driver
  58. config S3C_ADC
  59. bool "ADC common driver support"
  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 SAMSUNG_DEV_BACKLIGHT
  179. bool
  180. depends on SAMSUNG_DEV_PWM
  181. help
  182. Compile in platform device definition LCD backlight with PWM Timer
  183. config S3C24XX_PWM
  184. bool "PWM device support"
  185. select PWM
  186. select PWM_SAMSUNG
  187. help
  188. Support for exporting the PWM timer blocks via the pwm device
  189. system
  190. config S3C_SETUP_CAMIF
  191. bool
  192. help
  193. Compile in common setup code for S3C CAMIF devices
  194. # DMA
  195. config S3C_DMA
  196. bool
  197. help
  198. Internal configuration for S3C DMA core
  199. config SAMSUNG_PM_GPIO
  200. bool
  201. default y if GPIO_SAMSUNG && PM
  202. help
  203. Include legacy GPIO power management code for platforms not using
  204. pinctrl-samsung driver.
  205. config SAMSUNG_DMADEV
  206. bool "Use legacy Samsung DMA abstraction"
  207. depends on CPU_S5PV210 || ARCH_S3C64XX
  208. select DMADEVICES
  209. default y
  210. help
  211. Use DMA device engine for PL330 DMAC.
  212. endif
  213. config S5P_DEV_MFC
  214. bool
  215. help
  216. Compile in setup memory (init) code for MFC
  217. comment "Power management"
  218. config SAMSUNG_PM_DEBUG
  219. bool "Samsung PM Suspend debug"
  220. depends on PM && DEBUG_KERNEL
  221. depends on DEBUG_EXYNOS_UART || DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART
  222. help
  223. Say Y here if you want verbose debugging from the PM Suspend and
  224. Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  225. for more information.
  226. config S3C_PM_DEBUG_LED_SMDK
  227. bool "SMDK LED suspend/resume debugging"
  228. depends on PM && (MACH_SMDK6410)
  229. help
  230. Say Y here to enable the use of the SMDK LEDs on the baseboard
  231. for debugging of the state of the suspend and resume process.
  232. Note, this currently only works for S3C64XX based SMDK boards.
  233. config SAMSUNG_PM_CHECK
  234. bool "S3C2410 PM Suspend Memory CRC"
  235. depends on PM
  236. select CRC32
  237. help
  238. Enable the PM code's memory area checksum over sleep. This option
  239. will generate CRCs of all blocks of memory, and store them before
  240. going to sleep. The blocks are then checked on resume for any
  241. errors.
  242. Note, this can take several seconds depending on memory size
  243. and CPU speed.
  244. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  245. config SAMSUNG_PM_CHECK_CHUNKSIZE
  246. int "S3C2410 PM Suspend CRC Chunksize (KiB)"
  247. depends on PM && SAMSUNG_PM_CHECK
  248. default 64
  249. help
  250. Set the chunksize in Kilobytes of the CRC for checking memory
  251. corruption over suspend and resume. A smaller value will mean that
  252. the CRC data block will take more memory, but wil identify any
  253. faults with better precision.
  254. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  255. config SAMSUNG_WAKEMASK
  256. bool
  257. depends on PM
  258. help
  259. Compile support for wakeup-mask controls found on the S3C6400
  260. and above. This code allows a set of interrupt to wakeup-mask
  261. mappings. See <plat/wakeup-mask.h>
  262. config SAMSUNG_WDT_RESET
  263. bool
  264. help
  265. Compile support for system restart by triggering watchdog reset.
  266. Used on SoCs that do not provide dedicated reset control.
  267. config DEBUG_S3C_UART
  268. depends on PLAT_SAMSUNG
  269. int
  270. default "0" if DEBUG_S3C_UART0
  271. default "1" if DEBUG_S3C_UART1
  272. default "2" if DEBUG_S3C_UART2
  273. default "3" if DEBUG_S3C_UART3
  274. endmenu
  275. endif