Kconfig 4.5 KB

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