Kconfig 9.2 KB

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