11 #include <linux/kernel.h>
12 #include <linux/types.h>
14 #include <linux/serial_core.h>
16 #include <linux/i2c.h>
22 #include <linux/input.h>
28 #include <asm/setup.h>
33 #include <mach/regs-clock.h>
47 #define AQUILA_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
48 S3C2410_UCON_RXILEVEL | \
49 S3C2410_UCON_TXIRQMODE | \
50 S3C2410_UCON_RXIRQMODE | \
51 S3C2410_UCON_RXFIFO_TOI | \
52 S3C2443_UCON_RXERR_IRQEN)
54 #define AQUILA_ULCON_DEFAULT S3C2410_LCON_CS8
56 #define AQUILA_UFCON_DEFAULT S3C2410_UFCON_FIFOMODE
124 .win[0] = &aquila_fb_win0,
125 .win[1] = &aquila_fb_win1,
126 .vtiming = &aquila_lcd_timing,
134 #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
138 .name =
"VALIVE_1.1V",
151 .name =
"VUSB+MIPI_1.1V",
199 .name =
"VUSB+VADC_3.3V",
209 .name =
"VCC+VCAM_2.8V",
229 .name =
"CAM_IO_2.8V",
239 .name =
"CAM_ISP_1.2V",
249 .name =
"CAM_A_2.8V",
259 .name =
"CAM_CIF_1.8V",
269 .name =
"CAM_AF_3.3V",
279 .name =
"VMIPI_1.8V",
289 .name =
"CAM_8M_1.8V",
313 .num_consumer_supplies = 1,
314 .consumer_supplies = &buck1_consumer,
326 .num_consumer_supplies = 1,
327 .consumer_supplies = &buck2_consumer,
344 .name =
"CAM_CORE_1.2V",
377 .regulators = aquila_regulators,
381 .buck1_voltage1 = 1200000,
382 .buck1_voltage2 = 1200000,
383 .buck1_voltage3 = 1200000,
384 .buck1_voltage4 = 1200000,
385 .buck2_voltage1 = 1200000,
386 .buck2_voltage2 = 1200000,
405 .num_consumer_supplies =
ARRAY_SIZE(wm8994_fixed_voltage0_supplies),
406 .consumer_supplies = wm8994_fixed_voltage0_supplies,
413 .num_consumer_supplies =
ARRAY_SIZE(wm8994_fixed_voltage1_supplies),
414 .consumer_supplies = wm8994_fixed_voltage1_supplies,
418 .supply_name =
"VCC_1.8V_PDA",
419 .microvolts = 1800000,
421 .init_data = &wm8994_fixed_voltage0_init_data,
425 .supply_name =
"V_BAT",
426 .microvolts = 3700000,
428 .init_data = &wm8994_fixed_voltage1_init_data,
432 .name =
"reg-fixed-voltage",
435 .platform_data = &wm8994_fixed_voltage0_config,
440 .name =
"reg-fixed-voltage",
443 .platform_data = &wm8994_fixed_voltage1_config,
455 .name =
"AVDD1_3.0V",
458 .num_consumer_supplies = 1,
459 .consumer_supplies = &wm8994_avdd1_supply,
464 .name =
"DCVDD_1.0V",
466 .num_consumer_supplies = 1,
467 .consumer_supplies = &wm8994_dcvdd_supply,
472 .gpio_defaults[0] = 0x0001,
474 .gpio_defaults[2] = 0x8100,
475 .gpio_defaults[3] = 0x8100,
476 .gpio_defaults[4] = 0x8100,
477 .gpio_defaults[6] = 0x0100,
479 .gpio_defaults[7] = 0x8100,
480 .gpio_defaults[8] = 0x0100,
481 .gpio_defaults[9] = 0x0100,
482 .gpio_defaults[10] = 0x0100,
484 .ldo[1] = { 0, &wm8994_ldo2_data },
488 #define AP_I2C_GPIO_PMIC_BUS_4 4
498 .platform_data = &aquila_i2c_gpio_pmic_data,
503 #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
507 .platform_data = &aquila_max8998_pdata,
513 #define AP_I2C_GPIO_BUS_5 5
523 .platform_data = &aquila_i2c_gpio5_data,
531 .platform_data = &wm8994_platform_data,
540 .desc =
"gpio-keys: KEY_POWER",
544 .debounce_interval = 1,
549 .buttons = aquila_gpio_keys_table,
550 .nbuttons =
ARRAY_SIZE(aquila_gpio_keys_table),
556 .platform_data = &aquila_gpio_keys_data,
560 static void __init aquila_pmic_init(
void)
585 #define AQUILA_EXT_FLASH_EN S5PV210_MP05(4)
586 #define AQUILA_EXT_FLASH_CD S5PV210_GPH3(4)
591 .ext_cd_gpio_invert = 1,
594 static void aquila_setup_sdhci(
void)
605 .name =
"smdk-audio",
610 &aquila_i2c_gpio_pmic,
612 &aquila_device_gpiokeys,
613 &aquila_device_audio,
624 &wm8994_fixed_voltage0,
625 &wm8994_fixed_voltage1,
628 static void __init aquila_sound_init(
void)
650 static void __init aquila_map_io(
void)
658 static void __init aquila_machine_init(
void)
665 aquila_setup_sdhci();
667 s3c_fimc_setname(0,
"s5p-fimc");
668 s3c_fimc_setname(1,
"s5p-fimc");
669 s3c_fimc_setname(2,
"s5p-fimc");
686 .atag_offset = 0x100,
689 .map_io = aquila_map_io,
690 .init_machine = aquila_machine_init,