Kconfig 6.2 KB

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