Kconfig 4.6 KB

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