Kconfig 4.3 KB

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