diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 12:13:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 12:13:19 -0400 |
commit | 636d17427b1ef0e97bd9df9b3b0e0f314ff889d3 (patch) | |
tree | f573602c1a78e9140c36e220c47675b79af1c270 /arch/arm/mach-s5pv210/mach-aquila.c | |
parent | dd21e9bdff14a9882f2c485fe533c6ce64ea2675 (diff) | |
parent | 0b019a41553a919965bb02d07d54e3e6c57a796d (diff) |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (226 commits)
ARM: 6323/1: cam60: don't use __init for cam60_spi_{flash_platform_data,partitions}
ARM: 6324/1: cam60: move cam60_spi_devices to .init.data
ARM: 6322/1: imx/pca100: Fix name of spi platform data
ARM: 6321/1: fix syntax error in main Kconfig file
ARM: 6297/1: move U300 timer to dynamic clock lookup
ARM: 6296/1: clock U300 intcon and timer properly
ARM: 6295/1: fix U300 apb_pclk split
ARM: 6306/1: fix inverted MMC card detect in U300
ARM: 6299/1: errata: TLBIASIDIS and TLBIMVAIS operations can broadcast a faulty ASID
ARM: 6294/1: etm: do a dummy read from OSSRR during initialization
ARM: 6292/1: coresight: add ETM management registers
ARM: 6288/1: ftrace: document mcount formats
ARM: 6287/1: ftrace: clean up mcount assembly indentation
ARM: 6286/1: fix Thumb-2 decompressor broken by "Auto calculate ZRELADDR"
ARM: 6281/1: video/imxfb.c: allow usage without BACKLIGHT_CLASS_DEVICE
ARM: 6280/1: imx: Fix build failure when including <mach/gpio.h> without <linux/spinlock.h>
ARM: S5PV210: Fix on missing s3c-sdhci card detection method for hsmmc3
ARM: S5P: Fix on missing S5P_DEV_FIMC in plat-s5p/Kconfig
ARM: S5PV210: Override FIMC driver name on Aquila board
ARM: S5PC100: enable FIMC on SMDKC100
...
Fix up conflicts in arch/arm/mach-{s5pc100,s5pv210}/cpu.c due to
different subsystem 'setname' calls, and trivial port types in
include/linux/serial_core.h
Diffstat (limited to 'arch/arm/mach-s5pv210/mach-aquila.c')
-rw-r--r-- | arch/arm/mach-s5pv210/mach-aquila.c | 417 |
1 files changed, 398 insertions, 19 deletions
diff --git a/arch/arm/mach-s5pv210/mach-aquila.c b/arch/arm/mach-s5pv210/mach-aquila.c index 881fe89eefd2..0dda8012d6b2 100644 --- a/arch/arm/mach-s5pv210/mach-aquila.c +++ b/arch/arm/mach-s5pv210/mach-aquila.c | |||
@@ -13,6 +13,12 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/serial_core.h> | 14 | #include <linux/serial_core.h> |
15 | #include <linux/fb.h> | 15 | #include <linux/fb.h> |
16 | #include <linux/i2c.h> | ||
17 | #include <linux/i2c-gpio.h> | ||
18 | #include <linux/mfd/max8998.h> | ||
19 | #include <linux/gpio_keys.h> | ||
20 | #include <linux/input.h> | ||
21 | #include <linux/gpio.h> | ||
16 | 22 | ||
17 | #include <asm/mach/arch.h> | 23 | #include <asm/mach/arch.h> |
18 | #include <asm/mach/map.h> | 24 | #include <asm/mach/map.h> |
@@ -23,54 +29,63 @@ | |||
23 | #include <mach/regs-clock.h> | 29 | #include <mach/regs-clock.h> |
24 | #include <mach/regs-fb.h> | 30 | #include <mach/regs-fb.h> |
25 | 31 | ||
32 | #include <plat/gpio-cfg.h> | ||
26 | #include <plat/regs-serial.h> | 33 | #include <plat/regs-serial.h> |
27 | #include <plat/s5pv210.h> | 34 | #include <plat/s5pv210.h> |
28 | #include <plat/devs.h> | 35 | #include <plat/devs.h> |
29 | #include <plat/cpu.h> | 36 | #include <plat/cpu.h> |
30 | #include <plat/fb.h> | 37 | #include <plat/fb.h> |
38 | #include <plat/fimc-core.h> | ||
39 | #include <plat/sdhci.h> | ||
31 | 40 | ||
32 | /* Following are default values for UCON, ULCON and UFCON UART registers */ | 41 | /* Following are default values for UCON, ULCON and UFCON UART registers */ |
33 | #define S5PV210_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ | 42 | #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \ |
34 | S3C2410_UCON_RXILEVEL | \ | 43 | S3C2410_UCON_RXILEVEL | \ |
35 | S3C2410_UCON_TXIRQMODE | \ | 44 | S3C2410_UCON_TXIRQMODE | \ |
36 | S3C2410_UCON_RXIRQMODE | \ | 45 | S3C2410_UCON_RXIRQMODE | \ |
37 | S3C2410_UCON_RXFIFO_TOI | \ | 46 | S3C2410_UCON_RXFIFO_TOI | \ |
38 | S3C2443_UCON_RXERR_IRQEN) | 47 | S3C2443_UCON_RXERR_IRQEN) |
39 | 48 | ||
40 | #define S5PV210_ULCON_DEFAULT S3C2410_LCON_CS8 | 49 | #define AQUILA_ULCON_DEFAULT S3C2410_LCON_CS8 |
41 | 50 | ||
42 | #define S5PV210_UFCON_DEFAULT (S3C2410_UFCON_FIFOMODE | \ | 51 | #define AQUILA_UFCON_DEFAULT S3C2410_UFCON_FIFOMODE |
43 | S5PV210_UFCON_TXTRIG4 | \ | ||
44 | S5PV210_UFCON_RXTRIG4) | ||
45 | 52 | ||
46 | static struct s3c2410_uartcfg smdkv210_uartcfgs[] __initdata = { | 53 | static struct s3c2410_uartcfg aquila_uartcfgs[] __initdata = { |
47 | [0] = { | 54 | [0] = { |
48 | .hwport = 0, | 55 | .hwport = 0, |
49 | .flags = 0, | 56 | .flags = 0, |
50 | .ucon = S5PV210_UCON_DEFAULT, | 57 | .ucon = AQUILA_UCON_DEFAULT, |
51 | .ulcon = S5PV210_ULCON_DEFAULT, | 58 | .ulcon = AQUILA_ULCON_DEFAULT, |
52 | .ufcon = S5PV210_UFCON_DEFAULT, | 59 | /* |
60 | * Actually UART0 can support 256 bytes fifo, but aquila board | ||
61 | * supports 128 bytes fifo because of initial chip bug | ||
62 | */ | ||
63 | .ufcon = AQUILA_UFCON_DEFAULT | | ||
64 | S5PV210_UFCON_TXTRIG128 | S5PV210_UFCON_RXTRIG128, | ||
53 | }, | 65 | }, |
54 | [1] = { | 66 | [1] = { |
55 | .hwport = 1, | 67 | .hwport = 1, |
56 | .flags = 0, | 68 | .flags = 0, |
57 | .ucon = S5PV210_UCON_DEFAULT, | 69 | .ucon = AQUILA_UCON_DEFAULT, |
58 | .ulcon = S5PV210_ULCON_DEFAULT, | 70 | .ulcon = AQUILA_ULCON_DEFAULT, |
59 | .ufcon = S5PV210_UFCON_DEFAULT, | 71 | .ufcon = AQUILA_UFCON_DEFAULT | |
72 | S5PV210_UFCON_TXTRIG64 | S5PV210_UFCON_RXTRIG64, | ||
60 | }, | 73 | }, |
61 | [2] = { | 74 | [2] = { |
62 | .hwport = 2, | 75 | .hwport = 2, |
63 | .flags = 0, | 76 | .flags = 0, |
64 | .ucon = S5PV210_UCON_DEFAULT, | 77 | .ucon = AQUILA_UCON_DEFAULT, |
65 | .ulcon = S5PV210_ULCON_DEFAULT, | 78 | .ulcon = AQUILA_ULCON_DEFAULT, |
66 | .ufcon = S5PV210_UFCON_DEFAULT, | 79 | .ufcon = AQUILA_UFCON_DEFAULT | |
80 | S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16, | ||
67 | }, | 81 | }, |
68 | [3] = { | 82 | [3] = { |
69 | .hwport = 3, | 83 | .hwport = 3, |
70 | .flags = 0, | 84 | .flags = 0, |
71 | .ucon = S5PV210_UCON_DEFAULT, | 85 | .ucon = AQUILA_UCON_DEFAULT, |
72 | .ulcon = S5PV210_ULCON_DEFAULT, | 86 | .ulcon = AQUILA_ULCON_DEFAULT, |
73 | .ufcon = S5PV210_UFCON_DEFAULT, | 87 | .ufcon = AQUILA_UFCON_DEFAULT | |
88 | S5PV210_UFCON_TXTRIG16 | S5PV210_UFCON_RXTRIG16, | ||
74 | }, | 89 | }, |
75 | }; | 90 | }; |
76 | 91 | ||
@@ -114,19 +129,383 @@ static struct s3c_fb_platdata aquila_lcd_pdata __initdata = { | |||
114 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, | 129 | .setup_gpio = s5pv210_fb_gpio_setup_24bpp, |
115 | }; | 130 | }; |
116 | 131 | ||
132 | /* MAX8998 regulators */ | ||
133 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | ||
134 | |||
135 | static struct regulator_init_data aquila_ldo2_data = { | ||
136 | .constraints = { | ||
137 | .name = "VALIVE_1.1V", | ||
138 | .min_uV = 1100000, | ||
139 | .max_uV = 1100000, | ||
140 | .apply_uV = 1, | ||
141 | .always_on = 1, | ||
142 | .state_mem = { | ||
143 | .enabled = 1, | ||
144 | }, | ||
145 | }, | ||
146 | }; | ||
147 | |||
148 | static struct regulator_init_data aquila_ldo3_data = { | ||
149 | .constraints = { | ||
150 | .name = "VUSB/MIPI_1.1V", | ||
151 | .min_uV = 1100000, | ||
152 | .max_uV = 1100000, | ||
153 | .apply_uV = 1, | ||
154 | .always_on = 1, | ||
155 | }, | ||
156 | }; | ||
157 | |||
158 | static struct regulator_init_data aquila_ldo4_data = { | ||
159 | .constraints = { | ||
160 | .name = "VDAC_3.3V", | ||
161 | .min_uV = 3300000, | ||
162 | .max_uV = 3300000, | ||
163 | .apply_uV = 1, | ||
164 | }, | ||
165 | }; | ||
166 | |||
167 | static struct regulator_init_data aquila_ldo5_data = { | ||
168 | .constraints = { | ||
169 | .name = "VTF_2.8V", | ||
170 | .min_uV = 2800000, | ||
171 | .max_uV = 2800000, | ||
172 | .apply_uV = 1, | ||
173 | }, | ||
174 | }; | ||
175 | |||
176 | static struct regulator_init_data aquila_ldo6_data = { | ||
177 | .constraints = { | ||
178 | .name = "VCC_3.3V", | ||
179 | .min_uV = 3300000, | ||
180 | .max_uV = 3300000, | ||
181 | .apply_uV = 1, | ||
182 | }, | ||
183 | }; | ||
184 | |||
185 | static struct regulator_init_data aquila_ldo7_data = { | ||
186 | .constraints = { | ||
187 | .name = "VCC_3.0V", | ||
188 | .min_uV = 3000000, | ||
189 | .max_uV = 3000000, | ||
190 | .apply_uV = 1, | ||
191 | .boot_on = 1, | ||
192 | .always_on = 1, | ||
193 | }, | ||
194 | }; | ||
195 | |||
196 | static struct regulator_init_data aquila_ldo8_data = { | ||
197 | .constraints = { | ||
198 | .name = "VUSB/VADC_3.3V", | ||
199 | .min_uV = 3300000, | ||
200 | .max_uV = 3300000, | ||
201 | .apply_uV = 1, | ||
202 | .always_on = 1, | ||
203 | }, | ||
204 | }; | ||
205 | |||
206 | static struct regulator_init_data aquila_ldo9_data = { | ||
207 | .constraints = { | ||
208 | .name = "VCC/VCAM_2.8V", | ||
209 | .min_uV = 2800000, | ||
210 | .max_uV = 2800000, | ||
211 | .apply_uV = 1, | ||
212 | .always_on = 1, | ||
213 | }, | ||
214 | }; | ||
215 | |||
216 | static struct regulator_init_data aquila_ldo10_data = { | ||
217 | .constraints = { | ||
218 | .name = "VPLL_1.1V", | ||
219 | .min_uV = 1100000, | ||
220 | .max_uV = 1100000, | ||
221 | .apply_uV = 1, | ||
222 | .boot_on = 1, | ||
223 | }, | ||
224 | }; | ||
225 | |||
226 | static struct regulator_init_data aquila_ldo11_data = { | ||
227 | .constraints = { | ||
228 | .name = "CAM_IO_2.8V", | ||
229 | .min_uV = 2800000, | ||
230 | .max_uV = 2800000, | ||
231 | .apply_uV = 1, | ||
232 | .always_on = 1, | ||
233 | }, | ||
234 | }; | ||
235 | |||
236 | static struct regulator_init_data aquila_ldo12_data = { | ||
237 | .constraints = { | ||
238 | .name = "CAM_ISP_1.2V", | ||
239 | .min_uV = 1200000, | ||
240 | .max_uV = 1200000, | ||
241 | .apply_uV = 1, | ||
242 | .always_on = 1, | ||
243 | }, | ||
244 | }; | ||
245 | |||
246 | static struct regulator_init_data aquila_ldo13_data = { | ||
247 | .constraints = { | ||
248 | .name = "CAM_A_2.8V", | ||
249 | .min_uV = 2800000, | ||
250 | .max_uV = 2800000, | ||
251 | .apply_uV = 1, | ||
252 | .always_on = 1, | ||
253 | }, | ||
254 | }; | ||
255 | |||
256 | static struct regulator_init_data aquila_ldo14_data = { | ||
257 | .constraints = { | ||
258 | .name = "CAM_CIF_1.8V", | ||
259 | .min_uV = 1800000, | ||
260 | .max_uV = 1800000, | ||
261 | .apply_uV = 1, | ||
262 | .always_on = 1, | ||
263 | }, | ||
264 | }; | ||
265 | |||
266 | static struct regulator_init_data aquila_ldo15_data = { | ||
267 | .constraints = { | ||
268 | .name = "CAM_AF_3.3V", | ||
269 | .min_uV = 3300000, | ||
270 | .max_uV = 3300000, | ||
271 | .apply_uV = 1, | ||
272 | .always_on = 1, | ||
273 | }, | ||
274 | }; | ||
275 | |||
276 | static struct regulator_init_data aquila_ldo16_data = { | ||
277 | .constraints = { | ||
278 | .name = "VMIPI_1.8V", | ||
279 | .min_uV = 1800000, | ||
280 | .max_uV = 1800000, | ||
281 | .apply_uV = 1, | ||
282 | .always_on = 1, | ||
283 | }, | ||
284 | }; | ||
285 | |||
286 | static struct regulator_init_data aquila_ldo17_data = { | ||
287 | .constraints = { | ||
288 | .name = "CAM_8M_1.8V", | ||
289 | .min_uV = 1800000, | ||
290 | .max_uV = 1800000, | ||
291 | .apply_uV = 1, | ||
292 | .always_on = 1, | ||
293 | }, | ||
294 | }; | ||
295 | |||
296 | /* BUCK */ | ||
297 | static struct regulator_consumer_supply buck1_consumer[] = { | ||
298 | { .supply = "vddarm", }, | ||
299 | }; | ||
300 | |||
301 | static struct regulator_consumer_supply buck2_consumer[] = { | ||
302 | { .supply = "vddint", }, | ||
303 | }; | ||
304 | |||
305 | static struct regulator_init_data aquila_buck1_data = { | ||
306 | .constraints = { | ||
307 | .name = "VARM_1.2V", | ||
308 | .min_uV = 1200000, | ||
309 | .max_uV = 1200000, | ||
310 | .apply_uV = 1, | ||
311 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
312 | REGULATOR_CHANGE_STATUS, | ||
313 | }, | ||
314 | .num_consumer_supplies = ARRAY_SIZE(buck1_consumer), | ||
315 | .consumer_supplies = buck1_consumer, | ||
316 | }; | ||
317 | |||
318 | static struct regulator_init_data aquila_buck2_data = { | ||
319 | .constraints = { | ||
320 | .name = "VINT_1.2V", | ||
321 | .min_uV = 1200000, | ||
322 | .max_uV = 1200000, | ||
323 | .apply_uV = 1, | ||
324 | .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | | ||
325 | REGULATOR_CHANGE_STATUS, | ||
326 | }, | ||
327 | .num_consumer_supplies = ARRAY_SIZE(buck2_consumer), | ||
328 | .consumer_supplies = buck2_consumer, | ||
329 | }; | ||
330 | |||
331 | static struct regulator_init_data aquila_buck3_data = { | ||
332 | .constraints = { | ||
333 | .name = "VCC_1.8V", | ||
334 | .min_uV = 1800000, | ||
335 | .max_uV = 1800000, | ||
336 | .apply_uV = 1, | ||
337 | .state_mem = { | ||
338 | .enabled = 1, | ||
339 | }, | ||
340 | }, | ||
341 | }; | ||
342 | |||
343 | static struct regulator_init_data aquila_buck4_data = { | ||
344 | .constraints = { | ||
345 | .name = "CAM_CORE_1.2V", | ||
346 | .min_uV = 1200000, | ||
347 | .max_uV = 1200000, | ||
348 | .apply_uV = 1, | ||
349 | .always_on = 1, | ||
350 | }, | ||
351 | }; | ||
352 | |||
353 | static struct max8998_regulator_data aquila_regulators[] = { | ||
354 | { MAX8998_LDO2, &aquila_ldo2_data }, | ||
355 | { MAX8998_LDO3, &aquila_ldo3_data }, | ||
356 | { MAX8998_LDO4, &aquila_ldo4_data }, | ||
357 | { MAX8998_LDO5, &aquila_ldo5_data }, | ||
358 | { MAX8998_LDO6, &aquila_ldo6_data }, | ||
359 | { MAX8998_LDO7, &aquila_ldo7_data }, | ||
360 | { MAX8998_LDO8, &aquila_ldo8_data }, | ||
361 | { MAX8998_LDO9, &aquila_ldo9_data }, | ||
362 | { MAX8998_LDO10, &aquila_ldo10_data }, | ||
363 | { MAX8998_LDO11, &aquila_ldo11_data }, | ||
364 | { MAX8998_LDO12, &aquila_ldo12_data }, | ||
365 | { MAX8998_LDO13, &aquila_ldo13_data }, | ||
366 | { MAX8998_LDO14, &aquila_ldo14_data }, | ||
367 | { MAX8998_LDO15, &aquila_ldo15_data }, | ||
368 | { MAX8998_LDO16, &aquila_ldo16_data }, | ||
369 | { MAX8998_LDO17, &aquila_ldo17_data }, | ||
370 | { MAX8998_BUCK1, &aquila_buck1_data }, | ||
371 | { MAX8998_BUCK2, &aquila_buck2_data }, | ||
372 | { MAX8998_BUCK3, &aquila_buck3_data }, | ||
373 | { MAX8998_BUCK4, &aquila_buck4_data }, | ||
374 | }; | ||
375 | |||
376 | static struct max8998_platform_data aquila_max8998_pdata = { | ||
377 | .num_regulators = ARRAY_SIZE(aquila_regulators), | ||
378 | .regulators = aquila_regulators, | ||
379 | }; | ||
380 | #endif | ||
381 | |||
382 | /* GPIO I2C PMIC */ | ||
383 | #define AP_I2C_GPIO_PMIC_BUS_4 4 | ||
384 | static struct i2c_gpio_platform_data aquila_i2c_gpio_pmic_data = { | ||
385 | .sda_pin = S5PV210_GPJ4(0), /* XMSMCSN */ | ||
386 | .scl_pin = S5PV210_GPJ4(3), /* XMSMIRQN */ | ||
387 | }; | ||
388 | |||
389 | static struct platform_device aquila_i2c_gpio_pmic = { | ||
390 | .name = "i2c-gpio", | ||
391 | .id = AP_I2C_GPIO_PMIC_BUS_4, | ||
392 | .dev = { | ||
393 | .platform_data = &aquila_i2c_gpio_pmic_data, | ||
394 | }, | ||
395 | }; | ||
396 | |||
397 | static struct i2c_board_info i2c_gpio_pmic_devs[] __initdata = { | ||
398 | #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE) | ||
399 | { | ||
400 | /* 0xCC when SRAD = 0 */ | ||
401 | I2C_BOARD_INFO("max8998", 0xCC >> 1), | ||
402 | .platform_data = &aquila_max8998_pdata, | ||
403 | }, | ||
404 | #endif | ||
405 | }; | ||
406 | |||
407 | /* PMIC Power button */ | ||
408 | static struct gpio_keys_button aquila_gpio_keys_table[] = { | ||
409 | { | ||
410 | .code = KEY_POWER, | ||
411 | .gpio = S5PV210_GPH2(6), | ||
412 | .desc = "gpio-keys: KEY_POWER", | ||
413 | .type = EV_KEY, | ||
414 | .active_low = 1, | ||
415 | .wakeup = 1, | ||
416 | .debounce_interval = 1, | ||
417 | }, | ||
418 | }; | ||
419 | |||
420 | static struct gpio_keys_platform_data aquila_gpio_keys_data = { | ||
421 | .buttons = aquila_gpio_keys_table, | ||
422 | .nbuttons = ARRAY_SIZE(aquila_gpio_keys_table), | ||
423 | }; | ||
424 | |||
425 | static struct platform_device aquila_device_gpiokeys = { | ||
426 | .name = "gpio-keys", | ||
427 | .dev = { | ||
428 | .platform_data = &aquila_gpio_keys_data, | ||
429 | }, | ||
430 | }; | ||
431 | |||
432 | static void __init aquila_pmic_init(void) | ||
433 | { | ||
434 | /* AP_PMIC_IRQ: EINT7 */ | ||
435 | s3c_gpio_cfgpin(S5PV210_GPH0(7), S3C_GPIO_SFN(0xf)); | ||
436 | s3c_gpio_setpull(S5PV210_GPH0(7), S3C_GPIO_PULL_UP); | ||
437 | |||
438 | /* nPower: EINT22 */ | ||
439 | s3c_gpio_cfgpin(S5PV210_GPH2(6), S3C_GPIO_SFN(0xf)); | ||
440 | s3c_gpio_setpull(S5PV210_GPH2(6), S3C_GPIO_PULL_UP); | ||
441 | } | ||
442 | |||
443 | /* MoviNAND */ | ||
444 | static struct s3c_sdhci_platdata aquila_hsmmc0_data __initdata = { | ||
445 | .max_width = 4, | ||
446 | .cd_type = S3C_SDHCI_CD_PERMANENT, | ||
447 | }; | ||
448 | |||
449 | /* Wireless LAN */ | ||
450 | static struct s3c_sdhci_platdata aquila_hsmmc1_data __initdata = { | ||
451 | .max_width = 4, | ||
452 | .cd_type = S3C_SDHCI_CD_EXTERNAL, | ||
453 | /* ext_cd_{init,cleanup} callbacks will be added later */ | ||
454 | }; | ||
455 | |||
456 | /* External Flash */ | ||
457 | #define AQUILA_EXT_FLASH_EN S5PV210_MP05(4) | ||
458 | #define AQUILA_EXT_FLASH_CD S5PV210_GPH3(4) | ||
459 | static struct s3c_sdhci_platdata aquila_hsmmc2_data __initdata = { | ||
460 | .max_width = 4, | ||
461 | .cd_type = S3C_SDHCI_CD_GPIO, | ||
462 | .ext_cd_gpio = AQUILA_EXT_FLASH_CD, | ||
463 | .ext_cd_gpio_invert = 1, | ||
464 | }; | ||
465 | |||
466 | static void aquila_setup_sdhci(void) | ||
467 | { | ||
468 | gpio_request(AQUILA_EXT_FLASH_EN, "FLASH_EN"); | ||
469 | gpio_direction_output(AQUILA_EXT_FLASH_EN, 1); | ||
470 | |||
471 | s3c_sdhci0_set_platdata(&aquila_hsmmc0_data); | ||
472 | s3c_sdhci1_set_platdata(&aquila_hsmmc1_data); | ||
473 | s3c_sdhci2_set_platdata(&aquila_hsmmc2_data); | ||
474 | }; | ||
475 | |||
117 | static struct platform_device *aquila_devices[] __initdata = { | 476 | static struct platform_device *aquila_devices[] __initdata = { |
477 | &aquila_i2c_gpio_pmic, | ||
478 | &aquila_device_gpiokeys, | ||
118 | &s3c_device_fb, | 479 | &s3c_device_fb, |
480 | &s5pc110_device_onenand, | ||
481 | &s3c_device_hsmmc0, | ||
482 | &s3c_device_hsmmc1, | ||
483 | &s3c_device_hsmmc2, | ||
484 | &s5p_device_fimc0, | ||
485 | &s5p_device_fimc1, | ||
486 | &s5p_device_fimc2, | ||
119 | }; | 487 | }; |
120 | 488 | ||
121 | static void __init aquila_map_io(void) | 489 | static void __init aquila_map_io(void) |
122 | { | 490 | { |
123 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); | 491 | s5p_init_io(NULL, 0, S5P_VA_CHIPID); |
124 | s3c24xx_init_clocks(24000000); | 492 | s3c24xx_init_clocks(24000000); |
125 | s3c24xx_init_uarts(smdkv210_uartcfgs, ARRAY_SIZE(smdkv210_uartcfgs)); | 493 | s3c24xx_init_uarts(aquila_uartcfgs, ARRAY_SIZE(aquila_uartcfgs)); |
126 | } | 494 | } |
127 | 495 | ||
128 | static void __init aquila_machine_init(void) | 496 | static void __init aquila_machine_init(void) |
129 | { | 497 | { |
498 | /* PMIC */ | ||
499 | aquila_pmic_init(); | ||
500 | i2c_register_board_info(AP_I2C_GPIO_PMIC_BUS_4, i2c_gpio_pmic_devs, | ||
501 | ARRAY_SIZE(i2c_gpio_pmic_devs)); | ||
502 | /* SDHCI */ | ||
503 | aquila_setup_sdhci(); | ||
504 | |||
505 | s3c_fimc_setname(0, "s5p-fimc"); | ||
506 | s3c_fimc_setname(1, "s5p-fimc"); | ||
507 | s3c_fimc_setname(2, "s5p-fimc"); | ||
508 | |||
130 | /* FB */ | 509 | /* FB */ |
131 | s3c_fb_set_platdata(&aquila_lcd_pdata); | 510 | s3c_fb_set_platdata(&aquila_lcd_pdata); |
132 | 511 | ||