Kconfig 4.3 KB

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