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