Kconfig 4.3 KB

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