Kconfig 8.5 KB

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