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