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