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