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