Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. select USB_ARCH_HAS_EHCI
  28. select USB_ARCH_HAS_OHCI
  29. config ARCH_EMEV2
  30. bool "Emma Mobile EV2"
  31. select ARCH_WANT_OPTIONAL_GPIOLIB
  32. select ARM_GIC
  33. select CPU_V7
  34. comment "SH-Mobile Board Type"
  35. config MACH_AP4EVB
  36. bool "AP4EVB board"
  37. depends on ARCH_SH7372
  38. select ARCH_REQUIRE_GPIOLIB
  39. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  40. select SH_LCD_MIPI_DSI
  41. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  42. choice
  43. prompt "AP4EVB LCD panel selection"
  44. default AP4EVB_QHD
  45. depends on MACH_AP4EVB
  46. config AP4EVB_QHD
  47. bool "MIPI-DSI QHD (960x540)"
  48. config AP4EVB_WVGA
  49. bool "Parallel WVGA (800x480)"
  50. endchoice
  51. config MACH_AG5EVM
  52. bool "AG5EVM board"
  53. depends on ARCH_SH73A0
  54. select ARCH_REQUIRE_GPIOLIB
  55. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  56. select SH_LCD_MIPI_DSI
  57. config MACH_MACKEREL
  58. bool "mackerel board"
  59. depends on ARCH_SH7372
  60. select ARCH_REQUIRE_GPIOLIB
  61. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  62. select SND_SOC_AK4642 if SND_SIMPLE_CARD
  63. select USE_OF
  64. config MACH_KOTA2
  65. bool "KOTA2 board"
  66. depends on ARCH_SH73A0
  67. select ARCH_REQUIRE_GPIOLIB
  68. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  69. config MACH_BONITO
  70. bool "bonito board"
  71. depends on ARCH_R8A7740
  72. select ARCH_REQUIRE_GPIOLIB
  73. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  74. config MACH_ARMADILLO800EVA
  75. bool "Armadillo-800 EVA board"
  76. depends on ARCH_R8A7740
  77. select ARCH_REQUIRE_GPIOLIB
  78. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  79. select SND_SOC_WM8978 if SND_SIMPLE_CARD
  80. select USE_OF
  81. config MACH_MARZEN
  82. bool "MARZEN board"
  83. depends on ARCH_R8A7779
  84. select ARCH_REQUIRE_GPIOLIB
  85. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  86. config MACH_MARZEN_REFERENCE
  87. bool "MARZEN board - Reference Device Tree Implementation"
  88. depends on ARCH_R8A7779
  89. select ARCH_REQUIRE_GPIOLIB
  90. select REGULATOR_FIXED_VOLTAGE if REGULATOR
  91. select USE_OF
  92. ---help---
  93. Use reference implementation of Marzen board support
  94. which makes use of device tree at the expense
  95. of not supporting a number of devices.
  96. This is intended to aid developers
  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 "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \
  117. MACH_MACKEREL || MACH_BONITO || \
  118. MACH_ARMADILLO800EVA
  119. default "0x41000000" if MACH_KOTA2
  120. default "0x00000000"
  121. ---help---
  122. Tweak this only when porting to a new machine which does not
  123. already have a defconfig. Changing it from the known correct
  124. value on any of the known systems will only lead to disaster.
  125. config MEMORY_SIZE
  126. hex "Physical memory size"
  127. default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \
  128. MACH_ARMADILLO800EVA
  129. default "0x1e000000" if MACH_KOTA2
  130. default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
  131. default "0x04000000"
  132. help
  133. This sets the default memory size assumed by your kernel. It can
  134. be overridden as normal by the 'mem=' argument on the kernel command
  135. line.
  136. endmenu
  137. menu "Timer and clock configuration"
  138. config SHMOBILE_TIMER_HZ
  139. int "Kernel HZ (jiffies per second)"
  140. range 32 1024
  141. default "128"
  142. help
  143. Allows the configuration of the timer frequency. It is customary
  144. to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
  145. case of low timer frequencies other values may be more suitable.
  146. SH-Mobile systems using a 32768 Hz RCLK for clock events may want
  147. to select a HZ value such as 128 that can evenly divide RCLK.
  148. A HZ value that does not divide evenly may cause timer drift.
  149. config SH_TIMER_CMT
  150. bool "CMT timer driver"
  151. default y
  152. help
  153. This enables build of the CMT timer driver.
  154. config SH_TIMER_TMU
  155. bool "TMU timer driver"
  156. default y
  157. help
  158. This enables build of the TMU timer driver.
  159. config EM_TIMER_STI
  160. bool "STI timer driver"
  161. default y
  162. help
  163. This enables build of the STI timer driver.
  164. endmenu
  165. config SH_CLK_CPG
  166. bool
  167. source "drivers/sh/Kconfig"
  168. endif