Kconfig 7.9 KB

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