Kconfig 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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 || PLAT_S5P
  9. select NO_IOPORT
  10. select GENERIC_IRQ_CHIP
  11. default y
  12. help
  13. Base platform code for all Samsung SoC based systems
  14. if PLAT_SAMSUNG
  15. # boot configurations
  16. comment "Boot options"
  17. config S3C_BOOT_WATCHDOG
  18. bool "S3C Initialisation watchdog"
  19. depends on S3C2410_WATCHDOG
  20. help
  21. Say y to enable the watchdog during the kernel decompression
  22. stage. If the kernel fails to uncompress, then the watchdog
  23. will trigger a reset and the system should restart.
  24. config S3C_BOOT_ERROR_RESET
  25. bool "S3C Reboot on decompression error"
  26. help
  27. Say y here to use the watchdog to reset the system if the
  28. kernel decompressor detects an error during decompression.
  29. config S3C_BOOT_UART_FORCE_FIFO
  30. bool "Force UART FIFO on during boot process"
  31. default y
  32. help
  33. Say Y here to force the UART FIFOs on during the kernel
  34. uncompressor
  35. config S3C_LOWLEVEL_UART_PORT
  36. int "S3C UART to use for low-level messages"
  37. default 0
  38. help
  39. Choice of which UART port to use for the low-level messages,
  40. such as the `Uncompressing...` at start time. The value of
  41. this configuration should be between zero and two. The port
  42. must have been initialised by the boot-loader before use.
  43. # timer options
  44. config S5P_HRT
  45. bool
  46. select SAMSUNG_DEV_PWM
  47. help
  48. Use the High Resolution timer support
  49. # clock options
  50. config SAMSUNG_CLKSRC
  51. bool
  52. help
  53. Select the clock code for the clksrc implementation
  54. used by newer systems such as the S3C64XX.
  55. config S5P_CLOCK
  56. def_bool (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS)
  57. help
  58. Support common clock part for ARCH_S5P and ARCH_EXYNOS SoCs
  59. # options for IRQ support
  60. config SAMSUNG_IRQ_VIC_TIMER
  61. bool
  62. help
  63. Internal configuration to build the VIC timer interrupt code.
  64. config S5P_IRQ
  65. def_bool (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS)
  66. help
  67. Support common interrup part for ARCH_S5P and ARCH_EXYNOS SoCs
  68. config S5P_EXT_INT
  69. bool
  70. help
  71. Use the external interrupts (other than GPIO interrupts.)
  72. Note: Do not choose this for S5P6440 and S5P6450.
  73. config S5P_GPIO_INT
  74. bool
  75. help
  76. Common code for the GPIO interrupts (other than external interrupts.)
  77. # options for gpio configuration support
  78. config SAMSUNG_GPIOLIB_4BIT
  79. bool
  80. help
  81. GPIOlib file contains the 4 bit modification functions for gpio
  82. configuration. GPIOlib shall be compiled only for S3C64XX and S5P
  83. series of processors.
  84. config S3C_GPIO_CFG_S3C64XX
  85. bool
  86. help
  87. Internal configuration to enable S3C64XX style GPIO configuration
  88. functions.
  89. config S5P_GPIO_DRVSTR
  90. bool
  91. help
  92. Internal configuration to get and set correct GPIO driver strength
  93. helper
  94. config SAMSUNG_GPIO_EXTRA
  95. int "Number of additional GPIO pins"
  96. default 128 if SAMSUNG_GPIO_EXTRA128
  97. default 64 if SAMSUNG_GPIO_EXTRA64
  98. default 0
  99. help
  100. Use additional GPIO space in addition to the GPIO's the SOC
  101. provides. This allows expanding the GPIO space for use with
  102. GPIO expanders.
  103. config SAMSUNG_GPIO_EXTRA64
  104. bool
  105. config SAMSUNG_GPIO_EXTRA128
  106. bool
  107. config S3C_GPIO_SPACE
  108. int "Space between gpio banks"
  109. default 0
  110. help
  111. Add a number of spare GPIO entries between each bank for debugging
  112. purposes. This allows any problems where an counter overflows from
  113. one bank to another to be caught, at the expense of using a little
  114. more memory.
  115. config S3C_GPIO_TRACK
  116. bool
  117. help
  118. Internal configuration option to enable the s3c specific gpio
  119. chip tracking if the platform requires it.
  120. # ADC driver
  121. config S3C_ADC
  122. bool "ADC common driver support"
  123. help
  124. Core support for the ADC block found in the Samsung SoC systems
  125. for drivers such as the touchscreen and hwmon to use to share
  126. this resource.
  127. # device definitions to compile in
  128. config S3C_DEV_HSMMC
  129. bool
  130. help
  131. Compile in platform device definitions for HSMMC code
  132. config S3C_DEV_HSMMC1
  133. bool
  134. help
  135. Compile in platform device definitions for HSMMC channel 1
  136. config S3C_DEV_HSMMC2
  137. bool
  138. help
  139. Compile in platform device definitions for HSMMC channel 2
  140. config S3C_DEV_HSMMC3
  141. bool
  142. help
  143. Compile in platform device definitions for HSMMC channel 3
  144. config S3C_DEV_HWMON
  145. bool
  146. help
  147. Compile in platform device definitions for HWMON
  148. config S3C_DEV_I2C1
  149. bool
  150. help
  151. Compile in platform device definitions for I2C channel 1
  152. config S3C_DEV_I2C2
  153. bool
  154. help
  155. Compile in platform device definitions for I2C channel 2
  156. config S3C_DEV_I2C3
  157. bool
  158. help
  159. Compile in platform device definition for I2C controller 3
  160. config S3C_DEV_I2C4
  161. bool
  162. help
  163. Compile in platform device definition for I2C controller 4
  164. config S3C_DEV_I2C5
  165. bool
  166. help
  167. Compile in platform device definition for I2C controller 5
  168. config S3C_DEV_I2C6
  169. bool
  170. help
  171. Compile in platform device definition for I2C controller 6
  172. config S3C_DEV_I2C7
  173. bool
  174. help
  175. Compile in platform device definition for I2C controller 7
  176. config S3C_DEV_FB
  177. bool
  178. help
  179. Compile in platform device definition for framebuffer
  180. config S3C_DEV_USB_HOST
  181. bool
  182. help
  183. Compile in platform device definition for USB host.
  184. config S3C_DEV_USB_HSOTG
  185. bool
  186. help
  187. Compile in platform device definition for USB high-speed OtG
  188. config S3C_DEV_WDT
  189. bool
  190. default y if ARCH_S3C24XX
  191. help
  192. Complie in platform device definition for Watchdog Timer
  193. config S3C_DEV_NAND
  194. bool
  195. help
  196. Compile in platform device definition for NAND controller
  197. config S3C_DEV_ONENAND
  198. bool
  199. help
  200. Compile in platform device definition for OneNAND controller
  201. config S3C_DEV_RTC
  202. bool
  203. help
  204. Complie in platform device definition for RTC
  205. config SAMSUNG_DEV_ADC
  206. bool
  207. help
  208. Compile in platform device definition for ADC controller
  209. config SAMSUNG_DEV_IDE
  210. bool
  211. help
  212. Compile in platform device definitions for IDE
  213. config S3C64XX_DEV_SPI0
  214. bool
  215. help
  216. Compile in platform device definitions for S3C64XX's type
  217. SPI controller 0
  218. config S3C64XX_DEV_SPI1
  219. bool
  220. help
  221. Compile in platform device definitions for S3C64XX's type
  222. SPI controller 1
  223. config S3C64XX_DEV_SPI2
  224. bool
  225. help
  226. Compile in platform device definitions for S3C64XX's type
  227. SPI controller 2
  228. config SAMSUNG_DEV_TS
  229. bool
  230. help
  231. Common in platform device definitions for touchscreen device
  232. config SAMSUNG_DEV_KEYPAD
  233. bool
  234. help
  235. Compile in platform device definitions for keypad
  236. config SAMSUNG_DEV_PWM
  237. bool
  238. default y if ARCH_S3C24XX
  239. help
  240. Compile in platform device definition for PWM Timer
  241. config SAMSUNG_DEV_BACKLIGHT
  242. bool
  243. depends on SAMSUNG_DEV_PWM
  244. help
  245. Compile in platform device definition LCD backlight with PWM Timer
  246. config S3C24XX_PWM
  247. bool "PWM device support"
  248. select HAVE_PWM
  249. help
  250. Support for exporting the PWM timer blocks via the pwm device
  251. system
  252. # DMA
  253. config S3C_DMA
  254. bool
  255. help
  256. Internal configuration for S3C DMA core
  257. config SAMSUNG_DMADEV
  258. bool
  259. select DMADEVICES
  260. select PL330_DMA if (CPU_EXYNOS4210 || CPU_S5PV210 || CPU_S5PC100 || \
  261. CPU_S5P6450 || CPU_S5P6440)
  262. select ARM_AMBA
  263. help
  264. Use DMA device engine for PL330 DMAC.
  265. comment "Power management"
  266. config SAMSUNG_PM_DEBUG
  267. bool "S3C2410 PM Suspend debug"
  268. depends on PM
  269. help
  270. Say Y here if you want verbose debugging from the PM Suspend and
  271. Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  272. for more information.
  273. config S3C_PM_DEBUG_LED_SMDK
  274. bool "SMDK LED suspend/resume debugging"
  275. depends on PM && (MACH_SMDK6410)
  276. help
  277. Say Y here to enable the use of the SMDK LEDs on the baseboard
  278. for debugging of the state of the suspend and resume process.
  279. Note, this currently only works for S3C64XX based SMDK boards.
  280. config SAMSUNG_PM_CHECK
  281. bool "S3C2410 PM Suspend Memory CRC"
  282. depends on PM && CRC32
  283. help
  284. Enable the PM code's memory area checksum over sleep. This option
  285. will generate CRCs of all blocks of memory, and store them before
  286. going to sleep. The blocks are then checked on resume for any
  287. errors.
  288. Note, this can take several seconds depending on memory size
  289. and CPU speed.
  290. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  291. config SAMSUNG_PM_CHECK_CHUNKSIZE
  292. int "S3C2410 PM Suspend CRC Chunksize (KiB)"
  293. depends on PM && SAMSUNG_PM_CHECK
  294. default 64
  295. help
  296. Set the chunksize in Kilobytes of the CRC for checking memory
  297. corruption over suspend and resume. A smaller value will mean that
  298. the CRC data block will take more memory, but wil identify any
  299. faults with better precision.
  300. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
  301. config SAMSUNG_WAKEMASK
  302. bool
  303. depends on PM
  304. help
  305. Compile support for wakeup-mask controls found on the S3C6400
  306. and above. This code allows a set of interrupt to wakeup-mask
  307. mappings. See <plat/wakeup-mask.h>
  308. config S5P_PM
  309. bool
  310. help
  311. Common code for power management support on S5P and newer SoCs
  312. Note: Do not select this for S5P6440 and S5P6450.
  313. config S5P_SLEEP
  314. bool
  315. help
  316. Internal config node to apply common S5P sleep management code.
  317. Can be selected by S5P and newer SoCs with similar sleep procedure.
  318. comment "Power Domain"
  319. config SAMSUNG_PD
  320. bool "Samsung Power Domain"
  321. depends on PM_RUNTIME
  322. help
  323. Say Y here if you want to control Power Domain by Runtime PM.
  324. config DEBUG_S3C_UART
  325. depends on PLAT_SAMSUNG
  326. int
  327. default "0" if DEBUG_S3C_UART0
  328. default "1" if DEBUG_S3C_UART1
  329. default "2" if DEBUG_S3C_UART2
  330. endif