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