Kconfig 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. if ARCH_SHMOBILE
  2. comment "SH-Mobile System Type"
  3. config ARCH_SH7372
  4. bool "SH-Mobile AP4 (SH7372)"
  5. select ARCH_WANT_OPTIONAL_GPIOLIB
  6. select ARM_CPU_SUSPEND if PM || CPU_IDLE
  7. select CPU_V7
  8. select SH_CLK_CPG
  9. config ARCH_SH73A0
  10. bool "SH-Mobile AG5 (R8A73A00)"
  11. select ARCH_WANT_OPTIONAL_GPIOLIB
  12. select ARM_GIC
  13. select CPU_V7
  14. select I2C
  15. select SH_CLK_CPG
  16. select RENESAS_INTC_IRQPIN
  17. config ARCH_R8A73A4
  18. bool "R-Mobile APE6 (R8A73A40)"
  19. select ARCH_WANT_OPTIONAL_GPIOLIB
  20. select ARM_GIC
  21. select CPU_V7
  22. select ARM_ARCH_TIMER
  23. select SH_CLK_CPG
  24. select RENESAS_IRQC
  25. config ARCH_R8A7740
  26. bool "R-Mobile A1 (R8A77400)"
  27. select ARCH_WANT_OPTIONAL_GPIOLIB
  28. select ARM_GIC
  29. select CPU_V7
  30. select SH_CLK_CPG
  31. select RENESAS_INTC_IRQPIN
  32. config ARCH_R8A7778
  33. bool "R-Car M1 (R8A77780)"
  34. select CPU_V7
  35. select SH_CLK_CPG
  36. select ARM_GIC
  37. config ARCH_R8A7779
  38. bool "R-Car H1 (R8A77790)"
  39. select ARCH_WANT_OPTIONAL_GPIOLIB
  40. select ARM_GIC
  41. select CPU_V7
  42. select SH_CLK_CPG
  43. select USB_ARCH_HAS_EHCI
  44. select USB_ARCH_HAS_OHCI
  45. select RENESAS_INTC_IRQPIN
  46. config ARCH_R8A7790
  47. bool "R-Car H2 (R8A77900)"
  48. select ARCH_WANT_OPTIONAL_GPIOLIB
  49. select ARM_GIC
  50. select CPU_V7
  51. select ARM_ARCH_TIMER
  52. select SH_CLK_CPG
  53. select RENESAS_IRQC
  54. config ARCH_EMEV2
  55. bool "Emma Mobile EV2"
  56. select ARCH_WANT_OPTIONAL_GPIOLIB
  57. select ARM_GIC
  58. select CPU_V7
  59. comment "SH-Mobile Board Type"
  60. config MACH_AP4EVB
  61. bool "AP4EVB board"
  62. depends on ARCH_SH7372
  63. select ARCH_REQUIRE_GPIOLIB
  64. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  65. select SH_LCD_MIPI_DSI
  66. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  67. choice
  68. prompt "AP4EVB LCD panel selection"
  69. default AP4EVB_QHD
  70. depends on MACH_AP4EVB
  71. config AP4EVB_QHD
  72. bool "MIPI-DSI QHD (960x540)"
  73. config AP4EVB_WVGA
  74. bool "Parallel WVGA (800x480)"
  75. endchoice
  76. config MACH_AG5EVM
  77. bool "AG5EVM board"
  78. depends on ARCH_SH73A0
  79. select ARCH_REQUIRE_GPIOLIB
  80. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  81. select SH_LCD_MIPI_DSI
  82. config MACH_APE6EVM
  83. bool "APE6EVM board"
  84. depends on ARCH_R8A73A4
  85. select USE_OF
  86. config MACH_MACKEREL
  87. bool "mackerel board"
  88. depends on ARCH_SH7372
  89. select ARCH_REQUIRE_GPIOLIB
  90. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  91. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  92. select USE_OF
  93. config MACH_KOTA2
  94. bool "KOTA2 board"
  95. depends on ARCH_SH73A0
  96. select ARCH_REQUIRE_GPIOLIB
  97. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  98. config MACH_BONITO
  99. bool "bonito board"
  100. depends on ARCH_R8A7740
  101. select ARCH_REQUIRE_GPIOLIB
  102. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  103. config MACH_ARMADILLO800EVA
  104. bool "Armadillo-800 EVA board"
  105. depends on ARCH_R8A7740
  106. select ARCH_REQUIRE_GPIOLIB
  107. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  108. select SND_SOC_WM8978 if SND_SIMPLE_CARD
  109. select USE_OF
  110. config MACH_ARMADILLO800EVA_REFERENCE
  111. bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
  112. depends on ARCH_R8A7740
  113. select ARCH_REQUIRE_GPIOLIB
  114. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  115. select SND_SOC_WM8978 if SND_SIMPLE_CARD
  116. select USE_OF
  117. ---help---
  118. Use reference implementation of Aramdillo800 EVA board support
  119. which makes a greater use of device tree at the expense
  120. of not supporting a number of devices.
  121. This is intended to aid developers
  122. config MACH_BOCKW
  123. bool "BOCK-W platform"
  124. depends on ARCH_R8A7778
  125. select ARCH_REQUIRE_GPIOLIB
  126. select RENESAS_INTC_IRQPIN
  127. select USE_OF
  128. config MACH_MARZEN
  129. bool "MARZEN board"
  130. depends on ARCH_R8A7779
  131. select ARCH_REQUIRE_GPIOLIB
  132. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  133. config MACH_MARZEN_REFERENCE
  134. bool "MARZEN board - Reference Device Tree Implementation"
  135. depends on ARCH_R8A7779
  136. select ARCH_REQUIRE_GPIOLIB
  137. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  138. select USE_OF
  139. ---help---
  140. Use reference implementation of Marzen board support
  141. which makes use of device tree at the expense
  142. of not supporting a number of devices.
  143. This is intended to aid developers
  144. config MACH_LAGER
  145. bool "Lager board"
  146. depends on ARCH_R8A7790
  147. select USE_OF
  148. config MACH_KZM9D
  149. bool "KZM9D board"
  150. depends on ARCH_EMEV2
  151. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  152. select USE_OF
  153. config MACH_KZM9G
  154. bool "KZM-A9-GT board"
  155. depends on ARCH_SH73A0
  156. select ARCH_REQUIRE_GPIOLIB
  157. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  158. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  159. select USE_OF
  160. config MACH_KZM9G_REFERENCE
  161. bool "KZM-A9-GT board - Reference Device Tree Implementation"
  162. depends on ARCH_SH73A0
  163. select ARCH_REQUIRE_GPIOLIB
  164. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  165. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  166. select USE_OF
  167. ---help---
  168. Use reference implementation of KZM-A9-GT board support
  169. which makes as greater use of device tree at the expense
  170. of not supporting a number of devices.
  171. This is intended to aid developers
  172. comment "SH-Mobile System Configuration"
  173. config CPU_HAS_INTEVT
  174. bool
  175. default y
  176. menu "Memory configuration"
  177. config MEMORY_START
  178. hex "Physical memory start address"
  179. default "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \
  180. MACH_MACKEREL || MACH_BONITO || \
  181. MACH_ARMADILLO800EVA || MACH_APE6EVM || \
  182. MACH_LAGER
  183. default "0x41000000" if MACH_KOTA2
  184. default "0x00000000"
  185. ---help---
  186. Tweak this only when porting to a new machine which does not
  187. already have a defconfig. Changing it from the known correct
  188. value on any of the known systems will only lead to disaster.
  189. config MEMORY_SIZE
  190. hex "Physical memory size"
  191. default "0x80000000" if MACH_LAGER
  192. default "0x40000000" if MACH_APE6EVM
  193. default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \
  194. MACH_ARMADILLO800EVA
  195. default "0x1e000000" if MACH_KOTA2
  196. default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
  197. default "0x04000000"
  198. help
  199. This sets the default memory size assumed by your kernel. It can
  200. be overridden as normal by the 'mem=' argument on the kernel command
  201. line.
  202. endmenu
  203. menu "Timer and clock configuration"
  204. config SHMOBILE_TIMER_HZ
  205. int "Kernel HZ (jiffies per second)"
  206. range 32 1024
  207. default "128"
  208. help
  209. Allows the configuration of the timer frequency. It is customary
  210. to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
  211. case of low timer frequencies other values may be more suitable.
  212. SH-Mobile systems using a 32768 Hz RCLK for clock events may want
  213. to select a HZ value such as 128 that can evenly divide RCLK.
  214. A HZ value that does not divide evenly may cause timer drift.
  215. config SH_TIMER_CMT
  216. bool "CMT timer driver"
  217. default y
  218. help
  219. This enables build of the CMT timer driver.
  220. config SH_TIMER_TMU
  221. bool "TMU timer driver"
  222. default y
  223. help
  224. This enables build of the TMU timer driver.
  225. config EM_TIMER_STI
  226. bool "STI timer driver"
  227. default y
  228. help
  229. This enables build of the STI timer driver.
  230. endmenu
  231. config SH_CLK_CPG
  232. bool
  233. source "drivers/sh/Kconfig"
  234. endif