Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. comment "SH-Mobile Board Type"
  37. config MACH_G3EVM
  38. bool "G3EVM board"
  39. depends on ARCH_SH7367
  40. select ARCH_REQUIRE_GPIOLIB
  41. config MACH_G4EVM
  42. bool "G4EVM board"
  43. depends on ARCH_SH7377
  44. select ARCH_REQUIRE_GPIOLIB
  45. config MACH_AP4EVB
  46. bool "AP4EVB board"
  47. depends on ARCH_SH7372
  48. select ARCH_REQUIRE_GPIOLIB
  49. select SH_LCD_MIPI_DSI
  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. select ARCH_REQUIRE_GPIOLIB
  62. select SH_LCD_MIPI_DSI
  63. depends on ARCH_SH73A0
  64. config MACH_MACKEREL
  65. bool "mackerel board"
  66. depends on ARCH_SH7372
  67. select ARCH_REQUIRE_GPIOLIB
  68. config MACH_KOTA2
  69. bool "KOTA2 board"
  70. select ARCH_REQUIRE_GPIOLIB
  71. depends on ARCH_SH73A0
  72. config MACH_BONITO
  73. bool "bonito board"
  74. select ARCH_REQUIRE_GPIOLIB
  75. depends on ARCH_R8A7740
  76. config MACH_MARZEN
  77. bool "MARZEN board"
  78. depends on ARCH_R8A7779
  79. select ARCH_REQUIRE_GPIOLIB
  80. comment "SH-Mobile System Configuration"
  81. config CPU_HAS_INTEVT
  82. bool
  83. default y
  84. menu "Memory configuration"
  85. config MEMORY_START
  86. hex "Physical memory start address"
  87. default "0x50000000" if MACH_G3EVM
  88. default "0x40000000" if MACH_G4EVM || MACH_AP4EVB || MACH_AG5EVM || \
  89. MACH_MACKEREL || MACH_BONITO
  90. default "0x41000000" if MACH_KOTA2
  91. default "0x00000000"
  92. ---help---
  93. Tweak this only when porting to a new machine which does not
  94. already have a defconfig. Changing it from the known correct
  95. value on any of the known systems will only lead to disaster.
  96. config MEMORY_SIZE
  97. hex "Physical memory size"
  98. default "0x08000000" if MACH_G3EVM
  99. default "0x08000000" if MACH_G4EVM
  100. default "0x20000000" if MACH_AG5EVM || MACH_BONITO
  101. default "0x1e000000" if MACH_KOTA2
  102. default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
  103. default "0x04000000"
  104. help
  105. This sets the default memory size assumed by your kernel. It can
  106. be overridden as normal by the 'mem=' argument on the kernel command
  107. line.
  108. endmenu
  109. menu "Timer and clock configuration"
  110. config SHMOBILE_TIMER_HZ
  111. int "Kernel HZ (jiffies per second)"
  112. range 32 1024
  113. default "128"
  114. help
  115. Allows the configuration of the timer frequency. It is customary
  116. to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
  117. case of low timer frequencies other values may be more suitable.
  118. SH-Mobile systems using a 32768 Hz RCLK for clock events may want
  119. to select a HZ value such as 128 that can evenly divide RCLK.
  120. A HZ value that does not divide evenly may cause timer drift.
  121. config SH_TIMER_CMT
  122. bool "CMT timer driver"
  123. default y
  124. help
  125. This enables build of the CMT timer driver.
  126. config SH_TIMER_TMU
  127. bool "TMU timer driver"
  128. default y
  129. help
  130. This enables build of the TMU timer driver.
  131. endmenu
  132. config SH_CLK_CPG
  133. bool
  134. source "drivers/sh/Kconfig"
  135. endif