Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Copyright 2009 Simtec Electronics
  4. source "arch/arm/mach-s3c/Kconfig.s3c24xx"
  5. source "arch/arm/mach-s3c/Kconfig.s3c64xx"
  6. config PLAT_SAMSUNG
  7. bool
  8. depends on PLAT_S3C24XX || ARCH_S3C64XX
  9. default y
  10. select GENERIC_IRQ_CHIP
  11. select NO_IOPORT_MAP
  12. select SOC_SAMSUNG
  13. help
  14. Base platform code for all Samsung SoC based systems
  15. config SAMSUNG_PM
  16. bool
  17. depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX)
  18. default y
  19. help
  20. Base platform power management code for samsung code
  21. if PLAT_SAMSUNG
  22. menu "Samsung Common options"
  23. # boot configurations
  24. comment "Boot options"
  25. config S3C_LOWLEVEL_UART_PORT
  26. int "S3C UART to use for low-level messages"
  27. depends on ARCH_S3C64XX
  28. default 0
  29. help
  30. Choice of which UART port to use for the low-level messages,
  31. such as the `Uncompressing...` at start time. The value of
  32. this configuration should be between zero and two. The port
  33. must have been initialised by the boot-loader before use.
  34. config SAMSUNG_ATAGS
  35. def_bool n
  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. depends on !ARCH_MULTIPLATFORM
  61. help
  62. Core support for the ADC block found in the Samsung SoC systems
  63. for drivers such as the touchscreen and hwmon to use to share
  64. this resource.
  65. # device definitions to compile in
  66. config S3C_DEV_HSMMC
  67. bool
  68. help
  69. Compile in platform device definitions for HSMMC code
  70. config S3C_DEV_HSMMC1
  71. bool
  72. help
  73. Compile in platform device definitions for HSMMC channel 1
  74. config S3C_DEV_HSMMC2
  75. bool
  76. help
  77. Compile in platform device definitions for HSMMC channel 2
  78. config S3C_DEV_HSMMC3
  79. bool
  80. help
  81. Compile in platform device definitions for HSMMC channel 3
  82. config S3C_DEV_HWMON
  83. bool
  84. help
  85. Compile in platform device definitions for HWMON
  86. config S3C_DEV_I2C1
  87. bool
  88. help
  89. Compile in platform device definitions for I2C channel 1
  90. config S3C_DEV_I2C2
  91. bool
  92. help
  93. Compile in platform device definitions for I2C channel 2
  94. config S3C_DEV_I2C3
  95. bool
  96. help
  97. Compile in platform device definition for I2C controller 3
  98. config S3C_DEV_I2C4
  99. bool
  100. help
  101. Compile in platform device definition for I2C controller 4
  102. config S3C_DEV_I2C5
  103. bool
  104. help
  105. Compile in platform device definition for I2C controller 5
  106. config S3C_DEV_I2C6
  107. bool
  108. help
  109. Compile in platform device definition for I2C controller 6
  110. config S3C_DEV_I2C7
  111. bool
  112. help
  113. Compile in platform device definition for I2C controller 7
  114. config S3C_DEV_FB
  115. bool
  116. help
  117. Compile in platform device definition for framebuffer
  118. config S3C_DEV_USB_HOST
  119. bool
  120. help
  121. Compile in platform device definition for USB host.
  122. config S3C_DEV_USB_HSOTG
  123. bool
  124. help
  125. Compile in platform device definition for USB high-speed OtG
  126. config S3C_DEV_WDT
  127. bool
  128. default y if ARCH_S3C24XX
  129. help
  130. Compile in platform device definition for Watchdog Timer
  131. config S3C_DEV_NAND
  132. bool
  133. help
  134. Compile in platform device definition for NAND controller
  135. config S3C_DEV_ONENAND
  136. bool
  137. help
  138. Compile in platform device definition for OneNAND controller
  139. config S3C_DEV_RTC
  140. bool
  141. help
  142. Compile in platform device definition for RTC
  143. config SAMSUNG_DEV_ADC
  144. bool
  145. help
  146. Compile in platform device definition for ADC controller
  147. config SAMSUNG_DEV_IDE
  148. bool
  149. help
  150. Compile in platform device definitions for IDE
  151. config S3C64XX_DEV_SPI0
  152. bool
  153. help
  154. Compile in platform device definitions for S3C64XX's type
  155. SPI controller 0
  156. config SAMSUNG_DEV_TS
  157. bool
  158. help
  159. Common in platform device definitions for touchscreen device
  160. config SAMSUNG_DEV_KEYPAD
  161. bool
  162. help
  163. Compile in platform device definitions for keypad
  164. config SAMSUNG_DEV_PWM
  165. bool
  166. default y if ARCH_S3C24XX
  167. help
  168. Compile in platform device definition for PWM Timer
  169. config GPIO_SAMSUNG
  170. def_bool y
  171. config SAMSUNG_PM_GPIO
  172. bool
  173. default y if GPIO_SAMSUNG && PM
  174. help
  175. Include legacy GPIO power management code for platforms not using
  176. pinctrl-samsung driver.
  177. endif
  178. config SAMSUNG_WAKEMASK
  179. bool
  180. depends on PM
  181. help
  182. Compile support for wakeup-mask controls found on the S3C6400
  183. and above. This code allows a set of interrupt to wakeup-mask
  184. mappings. See <plat/wakeup-mask.h>
  185. endmenu
  186. endif