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