11 #include <linux/kernel.h>
12 #include <linux/types.h>
14 #include <linux/serial_core.h>
16 #include <linux/i2c.h>
26 #include <linux/input.h>
35 #include <asm/setup.h>
40 #include <mach/regs-clock.h>
50 #include <plat/clock.h>
62 #define GONI_UCON_DEFAULT (S3C2410_UCON_TXILEVEL | \
63 S3C2410_UCON_RXILEVEL | \
64 S3C2410_UCON_TXIRQMODE | \
65 S3C2410_UCON_RXIRQMODE | \
66 S3C2410_UCON_RXFIFO_TOI | \
67 S3C2443_UCON_RXERR_IRQEN)
69 #define GONI_ULCON_DEFAULT S3C2410_LCON_CS8
71 #define GONI_UFCON_DEFAULT S3C2410_UFCON_FIFOMODE
115 .virtual_y = 2 * 800,
131 .win[0] = &goni_fb_win0,
132 .vtiming = &goni_lcd_timing,
147 static unsigned int first = 1;
163 .power_on = lcd_power_on,
166 .power_on_delay = 25,
167 .power_off_delay = 200,
170 #define LCD_BUS_NUM 3
173 .modalias =
"s6e63m0",
174 .platform_data = &goni_lcd_platform_data,
175 .max_speed_hz = 1200000,
195 .platform_data = &lcd_spi_gpio_data,
200 static uint32_t keymap[] __initdata = {
228 static void __init goni_radio_init(
void)
258 .frequency = 400 * 1000,
265 .platform_data = &qt602240_platform_data,
269 static void __init goni_tsp_init(
void)
275 gpio_export(gpio, 0);
289 static void goni_camera_init(
void)
298 #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
327 .name =
"VALIVE_1.1V",
340 .name =
"VUSB+MIPI_1.1V",
346 .num_consumer_supplies =
ARRAY_SIZE(goni_ldo3_consumers),
347 .consumer_supplies = goni_ldo3_consumers,
367 .num_consumer_supplies =
ARRAY_SIZE(goni_ldo5_consumers),
368 .consumer_supplies = goni_ldo5_consumers,
392 .name =
"VUSB+VADC_3.3V",
398 .num_consumer_supplies =
ARRAY_SIZE(goni_ldo8_consumers),
399 .consumer_supplies = goni_ldo8_consumers,
404 .name =
"VCC+VCAM_2.8V",
423 .name =
"CAM_IO_2.8V",
429 .num_consumer_supplies =
ARRAY_SIZE(goni_ldo11_consumers),
430 .consumer_supplies = goni_ldo11_consumers,
435 .name =
"CAM_ISP_1.2V",
444 .name =
"CAM_A_2.8V",
450 .num_consumer_supplies =
ARRAY_SIZE(goni_ldo13_consumers),
451 .consumer_supplies = goni_ldo13_consumers,
456 .name =
"CAM_CIF_1.8V",
462 .num_consumer_supplies =
ARRAY_SIZE(goni_ldo14_consumers),
463 .consumer_supplies = goni_ldo14_consumers,
468 .name =
"CAM_AF_3.3V",
477 .name =
"VMIPI_1.8V",
486 .name =
"VCC_3.0V_LCD",
514 .num_consumer_supplies = 1,
515 .consumer_supplies = &buck1_consumer,
527 .num_consumer_supplies = 1,
528 .consumer_supplies = &buck2_consumer,
541 .num_consumer_supplies = 1,
542 .consumer_supplies = &buck3_consumer,
547 .name =
"CAM_CORE_1.2V",
580 .regulators = goni_regulators,
584 .buck1_voltage1 = 1200000,
585 .buck1_voltage2 = 1200000,
586 .buck1_voltage3 = 1200000,
587 .buck1_voltage4 = 1200000,
588 .buck2_voltage1 = 1200000,
589 .buck2_voltage2 = 1200000,
608 .num_consumer_supplies =
ARRAY_SIZE(wm8994_fixed_voltage0_supplies),
609 .consumer_supplies = wm8994_fixed_voltage0_supplies,
616 .num_consumer_supplies =
ARRAY_SIZE(wm8994_fixed_voltage1_supplies),
617 .consumer_supplies = wm8994_fixed_voltage1_supplies,
621 .supply_name =
"VCC_1.8V_PDA",
622 .microvolts = 1800000,
624 .init_data = &wm8994_fixed_voltage0_init_data,
628 .supply_name =
"V_BAT",
629 .microvolts = 3700000,
631 .init_data = &wm8994_fixed_voltage1_init_data,
635 .name =
"reg-fixed-voltage",
638 .platform_data = &wm8994_fixed_voltage0_config,
643 .name =
"reg-fixed-voltage",
646 .platform_data = &wm8994_fixed_voltage1_config,
658 .name =
"AVDD1_3.0V",
661 .num_consumer_supplies = 1,
662 .consumer_supplies = &wm8994_avdd1_supply,
667 .name =
"DCVDD_1.0V",
669 .num_consumer_supplies = 1,
670 .consumer_supplies = &wm8994_dcvdd_supply,
675 .gpio_defaults[0] = 0x0001,
677 .gpio_defaults[2] = 0x8100,
678 .gpio_defaults[3] = 0x8100,
679 .gpio_defaults[4] = 0x8100,
680 .gpio_defaults[6] = 0x0100,
682 .gpio_defaults[7] = 0x8100,
683 .gpio_defaults[8] = 0x0100,
684 .gpio_defaults[9] = 0x0100,
685 .gpio_defaults[10] = 0x0100,
687 .ldo[1] = { 0, &wm8994_ldo2_data },
691 #define AP_I2C_GPIO_PMIC_BUS_4 4
701 .platform_data = &goni_i2c_gpio_pmic_data,
706 #if defined(CONFIG_REGULATOR_MAX8998) || defined(CONFIG_REGULATOR_MAX8998_MODULE)
710 .platform_data = &goni_max8998_pdata,
716 #define AP_I2C_GPIO_BUS_5 5
726 .platform_data = &goni_i2c_gpio5_data,
734 .platform_data = &wm8994_platform_data,
743 .desc =
"gpio-keys: KEY_POWER",
747 .debounce_interval = 1,
752 .buttons = goni_gpio_keys_table,
759 .platform_data = &goni_gpio_keys_data,
763 static void __init goni_pmic_init(
void)
789 #define GONI_EXT_FLASH_EN S5PV210_MP05(4)
790 #define GONI_EXT_FLASH_CD S5PV210_GPH3(4)
795 .ext_cd_gpio_invert = 1,
807 .num_consumer_supplies =
ARRAY_SIZE(mmc2_supplies),
808 .consumer_supplies = mmc2_supplies,
812 .supply_name =
"EXT_FLASH_EN",
813 .microvolts = 2800000,
816 .init_data = &mmc2_fixed_voltage_init_data,
820 .name =
"reg-fixed-voltage",
823 .platform_data = &mmc2_fixed_voltage_config,
827 static void goni_setup_sdhci(
void)
835 .clk_rate = 16000000
UL,
842 .platform_data = &noon010pc30_pldata,
851 .board_info = &noon010pc30_board_info,
853 .clk_frequency = 16000000
UL,
858 .isp_info = goni_camera_sensors,
859 .num_clients =
ARRAY_SIZE(goni_camera_sensors),
864 .name =
"smdk-audio",
876 &goni_device_gpiokeys,
895 &wm8994_fixed_voltage0,
896 &wm8994_fixed_voltage1,
899 static void __init goni_sound_init(
void)
908 static void __init goni_map_io(
void)
916 static void __init goni_reserve(
void)
921 static void __init goni_machine_init(
void)
957 &s5p_device_fimc_md);
974 .atag_offset = 0x100,
977 .map_io = goni_map_io,
978 .init_machine = goni_machine_init,
980 .reserve = &goni_reserve,