Commit | Line | Data |
---|---|---|
c793c1b0 MD |
1 | if ARCH_SHMOBILE |
2 | ||
3 | comment "SH-Mobile System Type" | |
4 | ||
2b7eda63 MD |
5 | config ARCH_SH7372 |
6 | bool "SH-Mobile AP4 (SH7372)" | |
6d72ad35 | 7 | select ARCH_WANT_OPTIONAL_GPIOLIB |
a1ee61b8 | 8 | select ARM_CPU_SUSPEND if PM || CPU_IDLE |
b1b3f49c RK |
9 | select CPU_V7 |
10 | select SH_CLK_CPG | |
2b7eda63 | 11 | |
6d9598e2 MD |
12 | config ARCH_SH73A0 |
13 | bool "SH-Mobile AG5 (R8A73A00)" | |
1cdf3702 | 14 | select ARCH_WANT_OPTIONAL_GPIOLIB |
6d9598e2 | 15 | select ARM_GIC |
b1b3f49c | 16 | select CPU_V7 |
99f8bd85 | 17 | select I2C |
b1b3f49c | 18 | select SH_CLK_CPG |
341eb546 | 19 | select RENESAS_INTC_IRQPIN |
6d9598e2 | 20 | |
eccf0607 MD |
21 | config ARCH_R8A73A4 |
22 | bool "R-Mobile APE6 (R8A73A40)" | |
d313d068 | 23 | select ARCH_WANT_OPTIONAL_GPIOLIB |
eccf0607 MD |
24 | select ARM_GIC |
25 | select CPU_V7 | |
26 | select ARM_ARCH_TIMER | |
27 | select SH_CLK_CPG | |
984ca295 | 28 | select RENESAS_IRQC |
6d9598e2 | 29 | |
6c01ba44 KM |
30 | config ARCH_R8A7740 |
31 | bool "R-Mobile A1 (R8A77400)" | |
b1b3f49c | 32 | select ARCH_WANT_OPTIONAL_GPIOLIB |
0b7d7820 | 33 | select ARM_GIC |
6c01ba44 KM |
34 | select CPU_V7 |
35 | select SH_CLK_CPG | |
0b7d7820 | 36 | select RENESAS_INTC_IRQPIN |
6c01ba44 | 37 | |
ccb7cc74 KM |
38 | config ARCH_R8A7778 |
39 | bool "R-Car M1 (R8A77780)" | |
40 | select CPU_V7 | |
41 | select SH_CLK_CPG | |
42 | select ARM_GIC | |
6c01ba44 | 43 | |
f411fade MD |
44 | config ARCH_R8A7779 |
45 | bool "R-Car H1 (R8A77790)" | |
b1b3f49c RK |
46 | select ARCH_WANT_OPTIONAL_GPIOLIB |
47 | select ARM_GIC | |
f411fade MD |
48 | select CPU_V7 |
49 | select SH_CLK_CPG | |
94e1f7fb | 50 | select USB_ARCH_HAS_EHCI |
ac7c4ea0 | 51 | select USB_ARCH_HAS_OHCI |
8e56e6d5 | 52 | select RENESAS_INTC_IRQPIN |
f411fade | 53 | |
0468b2d6 MD |
54 | config ARCH_R8A7790 |
55 | bool "R-Car H2 (R8A77900)" | |
69e351d0 | 56 | select ARCH_WANT_OPTIONAL_GPIOLIB |
0468b2d6 MD |
57 | select ARM_GIC |
58 | select CPU_V7 | |
59 | select ARM_ARCH_TIMER | |
60 | select SH_CLK_CPG | |
8f5ec0a5 | 61 | select RENESAS_IRQC |
f411fade | 62 | |
7f627f03 MD |
63 | config ARCH_EMEV2 |
64 | bool "Emma Mobile EV2" | |
088efd92 | 65 | select ARCH_WANT_OPTIONAL_GPIOLIB |
b1b3f49c RK |
66 | select ARM_GIC |
67 | select CPU_V7 | |
7f627f03 | 68 | |
c793c1b0 MD |
69 | comment "SH-Mobile Board Type" |
70 | ||
2b7eda63 MD |
71 | config MACH_AP4EVB |
72 | bool "AP4EVB board" | |
73 | depends on ARCH_SH7372 | |
b789b3fd | 74 | select ARCH_REQUIRE_GPIOLIB |
b1b3f49c | 75 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
8eda2f21 | 76 | select SH_LCD_MIPI_DSI |
af8a2fe1 | 77 | select SND_SOC_AK4642 if SND_SIMPLE_CARD |
2b7eda63 | 78 | |
9fa1b7fe KM |
79 | choice |
80 | prompt "AP4EVB LCD panel selection" | |
81 | default AP4EVB_QHD | |
82 | depends on MACH_AP4EVB | |
83 | ||
84 | config AP4EVB_QHD | |
85 | bool "MIPI-DSI QHD (960x540)" | |
86 | ||
87 | config AP4EVB_WVGA | |
88 | bool "Parallel WVGA (800x480)" | |
89 | ||
90 | endchoice | |
91 | ||
6d9598e2 MD |
92 | config MACH_AG5EVM |
93 | bool "AG5EVM board" | |
b1b3f49c | 94 | depends on ARCH_SH73A0 |
6d2ae89c | 95 | select ARCH_REQUIRE_GPIOLIB |
34767f8d | 96 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
b1b3f49c | 97 | select SH_LCD_MIPI_DSI |
2818b191 | 98 | |
920adc75 KM |
99 | config MACH_MACKEREL |
100 | bool "mackerel board" | |
101 | depends on ARCH_SH7372 | |
3256c789 | 102 | select ARCH_REQUIRE_GPIOLIB |
34767f8d | 103 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
b1b3f49c | 104 | select SND_SOC_AK4642 if SND_SIMPLE_CARD |
0ce53cdc | 105 | select USE_OF |
6d9598e2 | 106 | |
28626632 MD |
107 | config MACH_KOTA2 |
108 | bool "KOTA2 board" | |
b1b3f49c | 109 | depends on ARCH_SH73A0 |
28626632 | 110 | select ARCH_REQUIRE_GPIOLIB |
34767f8d | 111 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
28626632 | 112 | |
d55c9a97 KM |
113 | config MACH_BONITO |
114 | bool "bonito board" | |
b1b3f49c | 115 | depends on ARCH_R8A7740 |
d55c9a97 | 116 | select ARCH_REQUIRE_GPIOLIB |
34767f8d | 117 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
d55c9a97 | 118 | |
4d22e564 KM |
119 | config MACH_ARMADILLO800EVA |
120 | bool "Armadillo-800 EVA board" | |
121 | depends on ARCH_R8A7740 | |
122 | select ARCH_REQUIRE_GPIOLIB | |
34767f8d | 123 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
5389bf71 | 124 | select SND_SOC_WM8978 if SND_SIMPLE_CARD |
b1b3f49c | 125 | select USE_OF |
4d22e564 | 126 | |
f411fade MD |
127 | config MACH_MARZEN |
128 | bool "MARZEN board" | |
129 | depends on ARCH_R8A7779 | |
19c43fc5 | 130 | select ARCH_REQUIRE_GPIOLIB |
34767f8d | 131 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
f411fade | 132 | |
73d6a69e SH |
133 | config MACH_MARZEN_REFERENCE |
134 | bool "MARZEN board - Reference Device Tree Implementation" | |
135 | depends on ARCH_R8A7779 | |
136 | select ARCH_REQUIRE_GPIOLIB | |
137 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | |
138 | select USE_OF | |
139 | ---help--- | |
140 | Use reference implementation of Marzen board support | |
141 | which makes use of device tree at the expense | |
142 | of not supporting a number of devices. | |
143 | ||
144 | This is intended to aid developers | |
145 | ||
c050fb10 MD |
146 | config MACH_KZM9D |
147 | bool "KZM9D board" | |
148 | depends on ARCH_EMEV2 | |
34767f8d | 149 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
b1b3f49c | 150 | select USE_OF |
c050fb10 | 151 | |
9b93e244 KM |
152 | config MACH_KZM9G |
153 | bool "KZM-A9-GT board" | |
154 | depends on ARCH_SH73A0 | |
155 | select ARCH_REQUIRE_GPIOLIB | |
34767f8d | 156 | select REGULATOR_FIXED_VOLTAGE if REGULATOR |
b1b3f49c RK |
157 | select SND_SOC_AK4642 if SND_SIMPLE_CARD |
158 | select USE_OF | |
9b93e244 | 159 | |
b8b82b29 SH |
160 | config MACH_KZM9G_REFERENCE |
161 | bool "KZM-A9-GT board - Reference Device Tree Implementation" | |
f33d1c34 GL |
162 | depends on ARCH_SH73A0 |
163 | select ARCH_REQUIRE_GPIOLIB | |
164 | select REGULATOR_FIXED_VOLTAGE if REGULATOR | |
165 | select SND_SOC_AK4642 if SND_SIMPLE_CARD | |
166 | select USE_OF | |
b8b82b29 SH |
167 | ---help--- |
168 | Use reference implementation of KZM-A9-GT board support | |
169 | which makes as greater use of device tree at the expense | |
170 | of not supporting a number of devices. | |
171 | ||
172 | This is intended to aid developers | |
173 | ||
c793c1b0 MD |
174 | comment "SH-Mobile System Configuration" |
175 | ||
7f1e7637 RH |
176 | config CPU_HAS_INTEVT |
177 | bool | |
178 | default y | |
179 | ||
c793c1b0 MD |
180 | menu "Memory configuration" |
181 | ||
182 | config MEMORY_START | |
183 | hex "Physical memory start address" | |
631a7b5d | 184 | default "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \ |
4d22e564 KM |
185 | MACH_MACKEREL || MACH_BONITO || \ |
186 | MACH_ARMADILLO800EVA | |
28626632 | 187 | default "0x41000000" if MACH_KOTA2 |
c793c1b0 MD |
188 | default "0x00000000" |
189 | ---help--- | |
190 | Tweak this only when porting to a new machine which does not | |
191 | already have a defconfig. Changing it from the known correct | |
192 | value on any of the known systems will only lead to disaster. | |
193 | ||
194 | config MEMORY_SIZE | |
195 | hex "Physical memory size" | |
4d22e564 KM |
196 | default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \ |
197 | MACH_ARMADILLO800EVA | |
28626632 | 198 | default "0x1e000000" if MACH_KOTA2 |
354e4157 | 199 | default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL |
c793c1b0 MD |
200 | default "0x04000000" |
201 | help | |
202 | This sets the default memory size assumed by your kernel. It can | |
203 | be overridden as normal by the 'mem=' argument on the kernel command | |
204 | line. | |
205 | ||
206 | endmenu | |
207 | ||
208 | menu "Timer and clock configuration" | |
209 | ||
5da3e714 MD |
210 | config SHMOBILE_TIMER_HZ |
211 | int "Kernel HZ (jiffies per second)" | |
212 | range 32 1024 | |
213 | default "128" | |
214 | help | |
215 | Allows the configuration of the timer frequency. It is customary | |
216 | to have the timer interrupt run at 1000 Hz or 100 Hz, but in the | |
217 | case of low timer frequencies other values may be more suitable. | |
218 | SH-Mobile systems using a 32768 Hz RCLK for clock events may want | |
219 | to select a HZ value such as 128 that can evenly divide RCLK. | |
220 | A HZ value that does not divide evenly may cause timer drift. | |
221 | ||
c793c1b0 MD |
222 | config SH_TIMER_CMT |
223 | bool "CMT timer driver" | |
224 | default y | |
225 | help | |
226 | This enables build of the CMT timer driver. | |
227 | ||
645e522e MD |
228 | config SH_TIMER_TMU |
229 | bool "TMU timer driver" | |
230 | default y | |
231 | help | |
232 | This enables build of the TMU timer driver. | |
233 | ||
b9dbf951 MD |
234 | config EM_TIMER_STI |
235 | bool "STI timer driver" | |
236 | default y | |
237 | help | |
238 | This enables build of the STI timer driver. | |
239 | ||
c793c1b0 MD |
240 | endmenu |
241 | ||
e47bb515 MD |
242 | config SH_CLK_CPG |
243 | bool | |
244 | ||
be8cb585 PM |
245 | source "drivers/sh/Kconfig" |
246 | ||
c793c1b0 | 247 | endif |