xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 9e6edccf191fb15ad751796a7962128d2469e209)
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_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
143comment "Renesas ARM SoCs Board Type"
144
145config MACH_APE6EVM
146	bool "APE6EVM board"
147	depends on ARCH_R8A73A4
148	select SMSC_PHY if SMSC911X
149	select USE_OF
150
151config MACH_APE6EVM_REFERENCE
152	bool "APE6EVM board - Reference Device Tree Implementation"
153	depends on ARCH_R8A73A4
154	select SMSC_PHY if SMSC911X
155	select USE_OF
156	---help---
157	   Use reference implementation of APE6EVM board support
158	   which makes a greater use of device tree at the expense
159	   of not supporting a number of devices.
160
161	   This is intended to aid developers
162
163config MACH_MACKEREL
164	bool "mackerel board"
165	depends on ARCH_SH7372
166	select ARCH_REQUIRE_GPIOLIB
167	select REGULATOR_FIXED_VOLTAGE if REGULATOR
168	select SMSC_PHY if SMSC911X
169	select SND_SOC_AK4642 if SND_SIMPLE_CARD
170	select USE_OF
171
172config MACH_ARMADILLO800EVA
173	bool "Armadillo-800 EVA board"
174	depends on ARCH_R8A7740
175	select ARCH_REQUIRE_GPIOLIB
176	select REGULATOR_FIXED_VOLTAGE if REGULATOR
177	select SMSC_PHY if SH_ETH
178	select SND_SOC_WM8978 if SND_SIMPLE_CARD
179	select USE_OF
180
181config MACH_BOCKW
182	bool "BOCK-W platform"
183	depends on ARCH_R8A7778
184	select ARCH_REQUIRE_GPIOLIB
185	select REGULATOR_FIXED_VOLTAGE if REGULATOR
186	select SND_SOC_AK4554 if SND_SIMPLE_CARD
187	select SND_SOC_AK4642 if SND_SIMPLE_CARD
188	select USE_OF
189
190config MACH_BOCKW_REFERENCE
191	bool "BOCK-W  - Reference Device Tree Implementation"
192	depends on ARCH_R8A7778
193	select ARCH_REQUIRE_GPIOLIB
194	select REGULATOR_FIXED_VOLTAGE if REGULATOR
195	select USE_OF
196	---help---
197	   Use reference implementation of BockW board support
198	   which makes use of device tree at the expense
199	   of not supporting a number of devices.
200
201	   This is intended to aid developers
202
203config MACH_MARZEN
204	bool "MARZEN board"
205	depends on ARCH_R8A7779
206	select ARCH_REQUIRE_GPIOLIB
207	select REGULATOR_FIXED_VOLTAGE if REGULATOR
208	select USE_OF
209
210config MACH_LAGER
211	bool "Lager board"
212	depends on ARCH_R8A7790
213	select USE_OF
214	select MICREL_PHY if SH_ETH
215	select SND_SOC_AK4642 if SND_SIMPLE_CARD
216
217config MACH_KZM9G
218	bool "KZM-A9-GT board"
219	depends on ARCH_SH73A0
220	select ARCH_REQUIRE_GPIOLIB
221	select REGULATOR_FIXED_VOLTAGE if REGULATOR
222	select SND_SOC_AK4642 if SND_SIMPLE_CARD
223	select USE_OF
224
225config MACH_KZM9G_REFERENCE
226	bool "KZM-A9-GT board - Reference Device Tree Implementation"
227	depends on ARCH_SH73A0
228	select ARCH_REQUIRE_GPIOLIB
229	select REGULATOR_FIXED_VOLTAGE if REGULATOR
230	select SND_SOC_AK4642 if SND_SIMPLE_CARD
231	select USE_OF
232	---help---
233	   Use reference implementation of KZM-A9-GT board support
234	   which makes as greater use of device tree at the expense
235	   of not supporting a number of devices.
236
237	   This is intended to aid developers
238
239comment "Renesas ARM SoCs System Configuration"
240
241config CPU_HAS_INTEVT
242        bool
243	default y
244
245config SH_CLK_CPG
246	bool
247
248source "drivers/sh/Kconfig"
249
250endif
251
252if ARCH_SHMOBILE
253
254menu "Timer and clock configuration"
255
256config SHMOBILE_TIMER_HZ
257	int "Kernel HZ (jiffies per second)"
258	range 32 1024
259	default "128"
260	help
261	  Allows the configuration of the timer frequency. It is customary
262	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
263	  case of low timer frequencies other values may be more suitable.
264	  Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
265	  want to select a HZ value such as 128 that can evenly divide RCLK.
266	  A HZ value that does not divide evenly may cause timer drift.
267
268endmenu
269
270endif
271