Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. if ARCH_SHMOBILE
  2. comment "SH-Mobile System Type"
  3. config ARCH_SH7367
  4. bool "SH-Mobile G3 (SH7367)"
  5. select CPU_V6
  6. select SH_CLK_CPG
  7. select ARCH_WANT_OPTIONAL_GPIOLIB
  8. config ARCH_SH7377
  9. bool "SH-Mobile G4 (SH7377)"
  10. select CPU_V7
  11. select SH_CLK_CPG
  12. select ARCH_WANT_OPTIONAL_GPIOLIB
  13. config ARCH_SH7372
  14. bool "SH-Mobile AP4 (SH7372)"
  15. select CPU_V7
  16. select SH_CLK_CPG
  17. select ARCH_WANT_OPTIONAL_GPIOLIB
  18. select ARM_CPU_SUSPEND if PM || CPU_IDLE
  19. config ARCH_SH73A0
  20. bool "SH-Mobile AG5 (R8A73A00)"
  21. select CPU_V7
  22. select SH_CLK_CPG
  23. select ARCH_WANT_OPTIONAL_GPIOLIB
  24. select ARM_GIC
  25. select I2C
  26. config ARCH_R8A7740
  27. bool "R-Mobile A1 (R8A77400)"
  28. select CPU_V7
  29. select SH_CLK_CPG
  30. select ARCH_WANT_OPTIONAL_GPIOLIB
  31. config ARCH_R8A7779
  32. bool "R-Car H1 (R8A77790)"
  33. select CPU_V7
  34. select SH_CLK_CPG
  35. select ARM_GIC
  36. select ARCH_WANT_OPTIONAL_GPIOLIB
  37. config ARCH_EMEV2
  38. bool "Emma Mobile EV2"
  39. select CPU_V7
  40. select ARM_GIC
  41. select ARCH_WANT_OPTIONAL_GPIOLIB
  42. comment "SH-Mobile Board Type"
  43. config MACH_G3EVM
  44. bool "G3EVM board"
  45. depends on ARCH_SH7367
  46. select ARCH_REQUIRE_GPIOLIB
  47. config MACH_G4EVM
  48. bool "G4EVM board"
  49. depends on ARCH_SH7377
  50. select ARCH_REQUIRE_GPIOLIB
  51. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  52. config MACH_AP4EVB
  53. bool "AP4EVB board"
  54. depends on ARCH_SH7372
  55. select ARCH_REQUIRE_GPIOLIB
  56. select SH_LCD_MIPI_DSI
  57. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  58. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  59. choice
  60. prompt "AP4EVB LCD panel selection"
  61. default AP4EVB_QHD
  62. depends on MACH_AP4EVB
  63. config AP4EVB_QHD
  64. bool "MIPI-DSI QHD (960x540)"
  65. config AP4EVB_WVGA
  66. bool "Parallel WVGA (800x480)"
  67. endchoice
  68. config MACH_AG5EVM
  69. bool "AG5EVM board"
  70. select ARCH_REQUIRE_GPIOLIB
  71. select SH_LCD_MIPI_DSI
  72. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  73. depends on ARCH_SH73A0
  74. config MACH_MACKEREL
  75. bool "mackerel board"
  76. depends on ARCH_SH7372
  77. select ARCH_REQUIRE_GPIOLIB
  78. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  79. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  80. config MACH_KOTA2
  81. bool "KOTA2 board"
  82. select ARCH_REQUIRE_GPIOLIB
  83. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  84. depends on ARCH_SH73A0
  85. config MACH_BONITO
  86. bool "bonito board"
  87. select ARCH_REQUIRE_GPIOLIB
  88. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  89. depends on ARCH_R8A7740
  90. config MACH_ARMADILLO800EVA
  91. bool "Armadillo-800 EVA board"
  92. depends on ARCH_R8A7740
  93. select ARCH_REQUIRE_GPIOLIB
  94. select USE_OF
  95. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  96. select SND_SOC_WM8978 if SND_SIMPLE_CARD
  97. config MACH_MARZEN
  98. bool "MARZEN board"
  99. depends on ARCH_R8A7779
  100. select ARCH_REQUIRE_GPIOLIB
  101. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  102. config MACH_KZM9D
  103. bool "KZM9D board"
  104. depends on ARCH_EMEV2
  105. select USE_OF
  106. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  107. config MACH_KZM9G
  108. bool "KZM-A9-GT board"
  109. depends on ARCH_SH73A0
  110. select ARCH_REQUIRE_GPIOLIB
  111. select USE_OF
  112. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  113. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  114. comment "SH-Mobile System Configuration"
  115. config CPU_HAS_INTEVT
  116. bool
  117. default y
  118. menu "Memory configuration"
  119. config MEMORY_START
  120. hex "Physical memory start address"
  121. default "0x50000000" if MACH_G3EVM
  122. default "0x40000000" if MACH_G4EVM || MACH_AP4EVB || MACH_AG5EVM || \
  123. MACH_MACKEREL || MACH_BONITO || \
  124. MACH_ARMADILLO800EVA
  125. default "0x41000000" if MACH_KOTA2
  126. default "0x00000000"
  127. ---help---
  128. Tweak this only when porting to a new machine which does not
  129. already have a defconfig. Changing it from the known correct
  130. value on any of the known systems will only lead to disaster.
  131. config MEMORY_SIZE
  132. hex "Physical memory size"
  133. default "0x08000000" if MACH_G3EVM
  134. default "0x08000000" if MACH_G4EVM
  135. default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \
  136. MACH_ARMADILLO800EVA
  137. default "0x1e000000" if MACH_KOTA2
  138. default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
  139. default "0x04000000"
  140. help
  141. This sets the default memory size assumed by your kernel. It can
  142. be overridden as normal by the 'mem=' argument on the kernel command
  143. line.
  144. endmenu
  145. menu "Timer and clock configuration"
  146. config SHMOBILE_TIMER_HZ
  147. int "Kernel HZ (jiffies per second)"
  148. range 32 1024
  149. default "128"
  150. help
  151. Allows the configuration of the timer frequency. It is customary
  152. to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
  153. case of low timer frequencies other values may be more suitable.
  154. SH-Mobile systems using a 32768 Hz RCLK for clock events may want
  155. to select a HZ value such as 128 that can evenly divide RCLK.
  156. A HZ value that does not divide evenly may cause timer drift.
  157. config SH_TIMER_CMT
  158. bool "CMT timer driver"
  159. default y
  160. help
  161. This enables build of the CMT timer driver.
  162. config SH_TIMER_TMU
  163. bool "TMU timer driver"
  164. default y
  165. help
  166. This enables build of the TMU timer driver.
  167. config EM_TIMER_STI
  168. bool "STI timer driver"
  169. default y
  170. help
  171. This enables build of the STI timer driver.
  172. endmenu
  173. config SH_CLK_CPG
  174. bool
  175. source "drivers/sh/Kconfig"
  176. endif