Kconfig 4.7 KB

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