Kconfig 6.3 KB

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