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