Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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 ARM_GIC
  49. select CPU_V7
  50. select ARM_ARCH_TIMER
  51. select SH_CLK_CPG
  52. config ARCH_EMEV2
  53. bool "Emma Mobile EV2"
  54. select ARCH_WANT_OPTIONAL_GPIOLIB
  55. select ARM_GIC
  56. select CPU_V7
  57. comment "SH-Mobile Board Type"
  58. config MACH_AP4EVB
  59. bool "AP4EVB board"
  60. depends on ARCH_SH7372
  61. select ARCH_REQUIRE_GPIOLIB
  62. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  63. select SH_LCD_MIPI_DSI
  64. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  65. choice
  66. prompt "AP4EVB LCD panel selection"
  67. default AP4EVB_QHD
  68. depends on MACH_AP4EVB
  69. config AP4EVB_QHD
  70. bool "MIPI-DSI QHD (960x540)"
  71. config AP4EVB_WVGA
  72. bool "Parallel WVGA (800x480)"
  73. endchoice
  74. config MACH_AG5EVM
  75. bool "AG5EVM board"
  76. depends on ARCH_SH73A0
  77. select ARCH_REQUIRE_GPIOLIB
  78. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  79. select SH_LCD_MIPI_DSI
  80. config MACH_MACKEREL
  81. bool "mackerel board"
  82. depends on ARCH_SH7372
  83. select ARCH_REQUIRE_GPIOLIB
  84. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  85. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  86. select USE_OF
  87. config MACH_KOTA2
  88. bool "KOTA2 board"
  89. depends on ARCH_SH73A0
  90. select ARCH_REQUIRE_GPIOLIB
  91. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  92. config MACH_BONITO
  93. bool "bonito board"
  94. depends on ARCH_R8A7740
  95. select ARCH_REQUIRE_GPIOLIB
  96. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  97. config MACH_ARMADILLO800EVA
  98. bool "Armadillo-800 EVA board"
  99. depends on ARCH_R8A7740
  100. select ARCH_REQUIRE_GPIOLIB
  101. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  102. select SND_SOC_WM8978 if SND_SIMPLE_CARD
  103. select USE_OF
  104. config MACH_MARZEN
  105. bool "MARZEN board"
  106. depends on ARCH_R8A7779
  107. select ARCH_REQUIRE_GPIOLIB
  108. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  109. config MACH_KZM9D
  110. bool "KZM9D board"
  111. depends on ARCH_EMEV2
  112. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  113. select USE_OF
  114. config MACH_KZM9G
  115. bool "KZM-A9-GT board"
  116. depends on ARCH_SH73A0
  117. select ARCH_REQUIRE_GPIOLIB
  118. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  119. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  120. select USE_OF
  121. comment "SH-Mobile System Configuration"
  122. config CPU_HAS_INTEVT
  123. bool
  124. default y
  125. menu "Memory configuration"
  126. config MEMORY_START
  127. hex "Physical memory start address"
  128. default "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \
  129. MACH_MACKEREL || MACH_BONITO || \
  130. MACH_ARMADILLO800EVA
  131. default "0x41000000" if MACH_KOTA2
  132. default "0x00000000"
  133. ---help---
  134. Tweak this only when porting to a new machine which does not
  135. already have a defconfig. Changing it from the known correct
  136. value on any of the known systems will only lead to disaster.
  137. config MEMORY_SIZE
  138. hex "Physical memory size"
  139. default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \
  140. MACH_ARMADILLO800EVA
  141. default "0x1e000000" if MACH_KOTA2
  142. default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
  143. default "0x04000000"
  144. help
  145. This sets the default memory size assumed by your kernel. It can
  146. be overridden as normal by the 'mem=' argument on the kernel command
  147. line.
  148. endmenu
  149. menu "Timer and clock configuration"
  150. config SHMOBILE_TIMER_HZ
  151. int "Kernel HZ (jiffies per second)"
  152. range 32 1024
  153. default "128"
  154. help
  155. Allows the configuration of the timer frequency. It is customary
  156. to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
  157. case of low timer frequencies other values may be more suitable.
  158. SH-Mobile systems using a 32768 Hz RCLK for clock events may want
  159. to select a HZ value such as 128 that can evenly divide RCLK.
  160. A HZ value that does not divide evenly may cause timer drift.
  161. config SH_TIMER_CMT
  162. bool "CMT timer driver"
  163. default y
  164. help
  165. This enables build of the CMT timer driver.
  166. config SH_TIMER_TMU
  167. bool "TMU timer driver"
  168. default y
  169. help
  170. This enables build of the TMU timer driver.
  171. config EM_TIMER_STI
  172. bool "STI timer driver"
  173. default y
  174. help
  175. This enables build of the STI timer driver.
  176. endmenu
  177. config SH_CLK_CPG
  178. bool
  179. source "drivers/sh/Kconfig"
  180. endif