OSDN Git Service

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