Merge tag 'boards-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm...
[pandora-kernel.git] / arch / arm / mach-shmobile / Kconfig
1 if ARCH_SHMOBILE
2
3 comment "SH-Mobile System Type"
4
5 config ARCH_SH7372
6         bool "SH-Mobile AP4 (SH7372)"
7         select ARCH_WANT_OPTIONAL_GPIOLIB
8         select ARM_CPU_SUSPEND if PM || CPU_IDLE
9         select CPU_V7
10         select SH_CLK_CPG
11
12 config ARCH_SH73A0
13         bool "SH-Mobile AG5 (R8A73A00)"
14         select ARCH_WANT_OPTIONAL_GPIOLIB
15         select ARM_GIC
16         select CPU_V7
17         select I2C
18         select SH_CLK_CPG
19         select RENESAS_INTC_IRQPIN
20
21 config ARCH_R8A7740
22         bool "R-Mobile A1 (R8A77400)"
23         select ARCH_WANT_OPTIONAL_GPIOLIB
24         select CPU_V7
25         select SH_CLK_CPG
26
27 config ARCH_R8A7779
28         bool "R-Car H1 (R8A77790)"
29         select ARCH_WANT_OPTIONAL_GPIOLIB
30         select ARM_GIC
31         select CPU_V7
32         select SH_CLK_CPG
33         select USB_ARCH_HAS_EHCI
34         select USB_ARCH_HAS_OHCI
35         select RENESAS_INTC_IRQPIN
36
37 config ARCH_EMEV2
38         bool "Emma Mobile EV2"
39         select ARCH_WANT_OPTIONAL_GPIOLIB
40         select ARM_GIC
41         select CPU_V7
42
43 comment "SH-Mobile Board Type"
44
45 config MACH_AP4EVB
46         bool "AP4EVB board"
47         depends on ARCH_SH7372
48         select ARCH_REQUIRE_GPIOLIB
49         select REGULATOR_FIXED_VOLTAGE if REGULATOR
50         select SH_LCD_MIPI_DSI
51         select SND_SOC_AK4642 if SND_SIMPLE_CARD
52
53 choice
54         prompt "AP4EVB LCD panel selection"
55         default AP4EVB_QHD
56         depends on MACH_AP4EVB
57
58 config AP4EVB_QHD
59         bool "MIPI-DSI QHD (960x540)"
60
61 config AP4EVB_WVGA
62         bool "Parallel WVGA (800x480)"
63
64 endchoice
65
66 config MACH_AG5EVM
67         bool "AG5EVM board"
68         depends on ARCH_SH73A0
69         select ARCH_REQUIRE_GPIOLIB
70         select REGULATOR_FIXED_VOLTAGE if REGULATOR
71         select SH_LCD_MIPI_DSI
72
73 config MACH_MACKEREL
74         bool "mackerel board"
75         depends on ARCH_SH7372
76         select ARCH_REQUIRE_GPIOLIB
77         select REGULATOR_FIXED_VOLTAGE if REGULATOR
78         select SND_SOC_AK4642 if SND_SIMPLE_CARD
79         select USE_OF
80
81 config MACH_KOTA2
82         bool "KOTA2 board"
83         depends on ARCH_SH73A0
84         select ARCH_REQUIRE_GPIOLIB
85         select REGULATOR_FIXED_VOLTAGE if REGULATOR
86
87 config MACH_BONITO
88         bool "bonito board"
89         depends on ARCH_R8A7740
90         select ARCH_REQUIRE_GPIOLIB
91         select REGULATOR_FIXED_VOLTAGE if REGULATOR
92
93 config MACH_ARMADILLO800EVA
94         bool "Armadillo-800 EVA board"
95         depends on ARCH_R8A7740
96         select ARCH_REQUIRE_GPIOLIB
97         select REGULATOR_FIXED_VOLTAGE if REGULATOR
98         select SND_SOC_WM8978 if SND_SIMPLE_CARD
99         select USE_OF
100
101 config MACH_MARZEN
102         bool "MARZEN board"
103         depends on ARCH_R8A7779
104         select ARCH_REQUIRE_GPIOLIB
105         select REGULATOR_FIXED_VOLTAGE if REGULATOR
106
107 config MACH_MARZEN_REFERENCE
108         bool "MARZEN board - Reference Device Tree Implementation"
109         depends on ARCH_R8A7779
110         select ARCH_REQUIRE_GPIOLIB
111         select REGULATOR_FIXED_VOLTAGE if REGULATOR
112         select USE_OF
113         ---help---
114            Use reference implementation of Marzen board support
115            which makes use of device tree at the expense
116            of not supporting a number of devices.
117
118            This is intended to aid developers
119
120 config MACH_KZM9D
121         bool "KZM9D board"
122         depends on ARCH_EMEV2
123         select REGULATOR_FIXED_VOLTAGE if REGULATOR
124         select USE_OF
125
126 config MACH_KZM9G
127         bool "KZM-A9-GT board"
128         depends on ARCH_SH73A0
129         select ARCH_REQUIRE_GPIOLIB
130         select REGULATOR_FIXED_VOLTAGE if REGULATOR
131         select SND_SOC_AK4642 if SND_SIMPLE_CARD
132         select USE_OF
133
134 config MACH_KZM9G_REFERENCE
135         bool "KZM-A9-GT board - Reference Device Tree Implementation"
136         depends on ARCH_SH73A0
137         select ARCH_REQUIRE_GPIOLIB
138         select REGULATOR_FIXED_VOLTAGE if REGULATOR
139         select SND_SOC_AK4642 if SND_SIMPLE_CARD
140         select USE_OF
141         ---help---
142            Use reference implementation of KZM-A9-GT board support
143            which makes as greater use of device tree at the expense
144            of not supporting a number of devices.
145
146            This is intended to aid developers
147
148 comment "SH-Mobile System Configuration"
149
150 config CPU_HAS_INTEVT
151         bool
152         default y
153
154 menu "Memory configuration"
155
156 config MEMORY_START
157         hex "Physical memory start address"
158         default "0x40000000" if MACH_AP4EVB || MACH_AG5EVM || \
159                                 MACH_MACKEREL || MACH_BONITO || \
160                                 MACH_ARMADILLO800EVA
161         default "0x41000000" if MACH_KOTA2
162         default "0x00000000"
163         ---help---
164           Tweak this only when porting to a new machine which does not
165           already have a defconfig. Changing it from the known correct
166           value on any of the known systems will only lead to disaster.
167
168 config MEMORY_SIZE
169         hex "Physical memory size"
170         default "0x20000000" if MACH_AG5EVM || MACH_BONITO || \
171                                 MACH_ARMADILLO800EVA
172         default "0x1e000000" if MACH_KOTA2
173         default "0x10000000" if MACH_AP4EVB || MACH_MACKEREL
174         default "0x04000000"
175         help
176           This sets the default memory size assumed by your kernel. It can
177           be overridden as normal by the 'mem=' argument on the kernel command
178           line.
179
180 endmenu
181
182 menu "Timer and clock configuration"
183
184 config SHMOBILE_TIMER_HZ
185         int "Kernel HZ (jiffies per second)"
186         range 32 1024
187         default "128"
188         help
189           Allows the configuration of the timer frequency. It is customary
190           to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
191           case of low timer frequencies other values may be more suitable.
192           SH-Mobile systems using a 32768 Hz RCLK for clock events may want
193           to select a HZ value such as 128 that can evenly divide RCLK.
194           A HZ value that does not divide evenly may cause timer drift.
195
196 config SH_TIMER_CMT
197         bool "CMT timer driver"
198         default y
199         help
200           This enables build of the CMT timer driver.
201
202 config SH_TIMER_TMU
203         bool "TMU timer driver"
204         default y
205         help
206           This enables build of the TMU timer driver.
207
208 config EM_TIMER_STI
209         bool "STI timer driver"
210         default y
211         help
212           This enables build of the STI timer driver.
213
214 endmenu
215
216 config SH_CLK_CPG
217         bool
218
219 source "drivers/sh/Kconfig"
220
221 endif