xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 013c5b4e6611746725cbcc0c39922d36d2968d50)
1config ARCH_SHMOBILE
2	bool
3
4menuconfig ARCH_SHMOBILE_MULTI
5	bool "Renesas ARM SoCs" if ARCH_MULTI_V7
6	depends on MMU
7	select ARCH_SHMOBILE
8	select HAVE_ARM_SCU if SMP
9	select HAVE_ARM_TWD if SMP
10	select ARM_GIC
11	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
12	select NO_IOPORT_MAP
13	select PINCTRL
14	select ARCH_REQUIRE_GPIOLIB
15	select ARCH_HAS_OPP
16
17if ARCH_SHMOBILE_MULTI
18
19#comment "Renesas ARM SoCs System Type"
20
21config ARCH_EMEV2
22	bool "Emma Mobile EV2"
23	select SYS_SUPPORTS_EM_STI
24
25config ARCH_R7S72100
26	bool "RZ/A1H (R7S72100)"
27	select SYS_SUPPORTS_SH_MTU2
28
29config ARCH_R8A7779
30	bool "R-Car H1 (R8A77790)"
31	select RENESAS_INTC_IRQPIN
32	select SYS_SUPPORTS_SH_TMU
33
34config ARCH_R8A7790
35	bool "R-Car H2 (R8A77900)"
36	select RENESAS_IRQC
37	select SYS_SUPPORTS_SH_CMT
38
39config ARCH_R8A7791
40	bool "R-Car M2 (R8A77910)"
41	select RENESAS_IRQC
42	select SYS_SUPPORTS_SH_CMT
43
44comment "Renesas ARM SoCs Board Type"
45
46config MACH_KOELSCH
47	bool "Koelsch board"
48	depends on ARCH_R8A7791
49	select MICREL_PHY if SH_ETH
50
51config MACH_LAGER
52	bool "Lager board"
53	depends on ARCH_R8A7790
54	select MICREL_PHY if SH_ETH
55
56config MACH_MARZEN
57	bool "MARZEN board"
58	depends on ARCH_R8A7779
59	select REGULATOR_FIXED_VOLTAGE if REGULATOR
60
61comment "Renesas ARM SoCs System Configuration"
62endif
63
64if ARCH_SHMOBILE_LEGACY
65
66comment "Renesas ARM SoCs System Type"
67
68config ARCH_SH7372
69	bool "SH-Mobile AP4 (SH7372)"
70	select ARCH_WANT_OPTIONAL_GPIOLIB
71	select ARM_CPU_SUSPEND if PM || CPU_IDLE
72	select CPU_V7
73	select SH_CLK_CPG
74	select SYS_SUPPORTS_SH_CMT
75	select SYS_SUPPORTS_SH_TMU
76
77config ARCH_SH73A0
78	bool "SH-Mobile AG5 (R8A73A00)"
79	select ARCH_WANT_OPTIONAL_GPIOLIB
80	select ARM_GIC
81	select CPU_V7
82	select I2C
83	select SH_CLK_CPG
84	select RENESAS_INTC_IRQPIN
85	select SYS_SUPPORTS_SH_CMT
86	select SYS_SUPPORTS_SH_TMU
87
88config ARCH_R8A73A4
89	bool "R-Mobile APE6 (R8A73A40)"
90	select ARCH_WANT_OPTIONAL_GPIOLIB
91	select ARM_GIC
92	select CPU_V7
93	select SH_CLK_CPG
94	select RENESAS_IRQC
95	select SYS_SUPPORTS_SH_CMT
96	select SYS_SUPPORTS_SH_TMU
97
98config ARCH_R8A7740
99	bool "R-Mobile A1 (R8A77400)"
100	select ARCH_WANT_OPTIONAL_GPIOLIB
101	select ARM_GIC
102	select CPU_V7
103	select SH_CLK_CPG
104	select RENESAS_INTC_IRQPIN
105	select SYS_SUPPORTS_SH_CMT
106	select SYS_SUPPORTS_SH_TMU
107
108config ARCH_R8A7778
109	bool "R-Car M1A (R8A77781)"
110	select ARCH_WANT_OPTIONAL_GPIOLIB
111	select CPU_V7
112	select SH_CLK_CPG
113	select ARM_GIC
114	select SYS_SUPPORTS_SH_TMU
115	select RENESAS_INTC_IRQPIN
116
117config ARCH_R8A7779
118	bool "R-Car H1 (R8A77790)"
119	select ARCH_WANT_OPTIONAL_GPIOLIB
120	select ARM_GIC
121	select CPU_V7
122	select SH_CLK_CPG
123	select RENESAS_INTC_IRQPIN
124	select SYS_SUPPORTS_SH_TMU
125
126config ARCH_R8A7790
127	bool "R-Car H2 (R8A77900)"
128	select ARCH_WANT_OPTIONAL_GPIOLIB
129	select ARM_GIC
130	select CPU_V7
131	select MIGHT_HAVE_PCI
132	select SH_CLK_CPG
133	select RENESAS_IRQC
134	select SYS_SUPPORTS_SH_CMT
135	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
136
137config ARCH_R8A7791
138	bool "R-Car M2 (R8A77910)"
139	select ARCH_WANT_OPTIONAL_GPIOLIB
140	select ARM_GIC
141	select CPU_V7
142	select MIGHT_HAVE_PCI
143	select SH_CLK_CPG
144	select RENESAS_IRQC
145	select SYS_SUPPORTS_SH_CMT
146	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
147
148comment "Renesas ARM SoCs Board Type"
149
150config MACH_APE6EVM
151	bool "APE6EVM board"
152	depends on ARCH_R8A73A4
153	select SMSC_PHY if SMSC911X
154	select USE_OF
155
156config MACH_APE6EVM_REFERENCE
157	bool "APE6EVM board - Reference Device Tree Implementation"
158	depends on ARCH_R8A73A4
159	select SMSC_PHY if SMSC911X
160	select USE_OF
161	---help---
162	   Use reference implementation of APE6EVM board support
163	   which makes a greater use of device tree at the expense
164	   of not supporting a number of devices.
165
166	   This is intended to aid developers
167
168config MACH_MACKEREL
169	bool "mackerel board"
170	depends on ARCH_SH7372
171	select ARCH_REQUIRE_GPIOLIB
172	select REGULATOR_FIXED_VOLTAGE if REGULATOR
173	select SMSC_PHY if SMSC911X
174	select SND_SOC_AK4642 if SND_SIMPLE_CARD
175	select USE_OF
176
177config MACH_ARMADILLO800EVA
178	bool "Armadillo-800 EVA board"
179	depends on ARCH_R8A7740
180	select ARCH_REQUIRE_GPIOLIB
181	select REGULATOR_FIXED_VOLTAGE if REGULATOR
182	select SMSC_PHY if SH_ETH
183	select SND_SOC_WM8978 if SND_SIMPLE_CARD
184	select USE_OF
185
186config MACH_ARMADILLO800EVA_REFERENCE
187	bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
188	depends on ARCH_R8A7740
189	select ARCH_REQUIRE_GPIOLIB
190	select REGULATOR_FIXED_VOLTAGE if REGULATOR
191	select SMSC_PHY if SH_ETH
192	select SND_SOC_WM8978 if SND_SIMPLE_CARD
193	select USE_OF
194	---help---
195	   Use reference implementation of Armadillo800 EVA board support
196	   which makes greater use of device tree at the expense
197	   of not supporting a number of devices.
198
199	   This is intended to aid developers
200
201config MACH_BOCKW
202	bool "BOCK-W platform"
203	depends on ARCH_R8A7778
204	select ARCH_REQUIRE_GPIOLIB
205	select REGULATOR_FIXED_VOLTAGE if REGULATOR
206	select SND_SOC_AK4554 if SND_SIMPLE_CARD
207	select SND_SOC_AK4642 if SND_SIMPLE_CARD
208	select USE_OF
209
210config MACH_BOCKW_REFERENCE
211	bool "BOCK-W  - Reference Device Tree Implementation"
212	depends on ARCH_R8A7778
213	select ARCH_REQUIRE_GPIOLIB
214	select REGULATOR_FIXED_VOLTAGE if REGULATOR
215	select USE_OF
216	---help---
217	   Use reference implementation of BockW board support
218	   which makes use of device tree at the expense
219	   of not supporting a number of devices.
220
221	   This is intended to aid developers
222
223config MACH_MARZEN
224	bool "MARZEN board"
225	depends on ARCH_R8A7779
226	select ARCH_REQUIRE_GPIOLIB
227	select REGULATOR_FIXED_VOLTAGE if REGULATOR
228	select USE_OF
229
230config MACH_LAGER
231	bool "Lager board"
232	depends on ARCH_R8A7790
233	select USE_OF
234	select MICREL_PHY if SH_ETH
235	select SND_SOC_AK4642 if SND_SIMPLE_CARD
236
237config MACH_KOELSCH
238	bool "Koelsch board"
239	depends on ARCH_R8A7791
240	select USE_OF
241	select MICREL_PHY if SH_ETH
242
243config MACH_KZM9G
244	bool "KZM-A9-GT board"
245	depends on ARCH_SH73A0
246	select ARCH_REQUIRE_GPIOLIB
247	select REGULATOR_FIXED_VOLTAGE if REGULATOR
248	select SND_SOC_AK4642 if SND_SIMPLE_CARD
249	select USE_OF
250
251config MACH_KZM9G_REFERENCE
252	bool "KZM-A9-GT board - Reference Device Tree Implementation"
253	depends on ARCH_SH73A0
254	select ARCH_REQUIRE_GPIOLIB
255	select REGULATOR_FIXED_VOLTAGE if REGULATOR
256	select SND_SOC_AK4642 if SND_SIMPLE_CARD
257	select USE_OF
258	---help---
259	   Use reference implementation of KZM-A9-GT board support
260	   which makes as greater use of device tree at the expense
261	   of not supporting a number of devices.
262
263	   This is intended to aid developers
264
265comment "Renesas ARM SoCs System Configuration"
266
267config CPU_HAS_INTEVT
268        bool
269	default y
270
271config SH_CLK_CPG
272	bool
273
274source "drivers/sh/Kconfig"
275
276endif
277
278if ARCH_SHMOBILE
279
280menu "Timer and clock configuration"
281
282config SHMOBILE_TIMER_HZ
283	int "Kernel HZ (jiffies per second)"
284	range 32 1024
285	default "128"
286	help
287	  Allows the configuration of the timer frequency. It is customary
288	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
289	  case of low timer frequencies other values may be more suitable.
290	  Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
291	  want to select a HZ value such as 128 that can evenly divide RCLK.
292	  A HZ value that does not divide evenly may cause timer drift.
293
294endmenu
295
296endif
297