15 #include <linux/kernel.h>
19 #include <linux/input.h>
50 #define CONFIG_DISABLE_HFCLK 1
52 #define SDP3430_TS_GPIO_IRQ_SDPV1 3
53 #define SDP3430_TS_GPIO_IRQ_SDPV2 2
55 #define ENABLE_VAUX3_DEDICATED 0x03
56 #define ENABLE_VAUX3_DEV_GRP 0x20
58 #define TWL4030_MSECURE_GPIO 22
95 .keymap = board_keymap,
100 .keymap_data = &board_map_data,
106 #define SDP3430_LCD_PANEL_BACKLIGHT_GPIO 8
107 #define SDP3430_LCD_PANEL_ENABLE_GPIO 5
114 static void __init sdp3430_display_init(
void)
151 .driver_name =
"sharp_ls_panel",
153 .phy.dpi.data_lines = 16,
154 .platform_enable = sdp3430_panel_enable_lcd,
155 .platform_disable = sdp3430_panel_disable_lcd,
159 .power_down_gpio = -1,
165 .driver_name =
"tfp410",
167 .phy.dpi.data_lines = 24,
172 .driver_name =
"venc",
175 .platform_enable = sdp3430_panel_enable_tv,
176 .platform_disable = sdp3430_panel_disable_tv,
187 .num_devices =
ARRAY_SIZE(sdp3430_dss_devices),
188 .devices = sdp3430_dss_devices,
189 .default_device = &sdp3430_lcd_device,
211 static int sdp3430_twl_gpio_setup(
struct device *
dev,
212 unsigned gpio,
unsigned ngpio)
219 omap_hsmmc_late_init(mmc);
233 .setup = sdp3430_twl_gpio_setup,
297 .num_consumer_supplies =
ARRAY_SIZE(sdp3430_vaux3_supplies),
298 .consumer_supplies = sdp3430_vaux3_supplies,
325 .num_consumer_supplies =
ARRAY_SIZE(sdp3430_vmmc1_supplies),
326 .consumer_supplies = sdp3430_vmmc1_supplies,
340 .num_consumer_supplies =
ARRAY_SIZE(sdp3430_vmmc2_supplies),
341 .consumer_supplies = sdp3430_vmmc2_supplies,
355 .num_consumer_supplies =
ARRAY_SIZE(sdp3430_vsim_supplies),
356 .consumer_supplies = sdp3430_vsim_supplies,
361 .gpio = &sdp3430_gpio_data,
362 .keypad = &sdp3430_kp_data,
364 .vaux1 = &sdp3430_vaux1,
365 .vaux2 = &sdp3430_vaux2,
366 .vaux3 = &sdp3430_vaux3,
367 .vaux4 = &sdp3430_vaux4,
368 .vmmc1 = &sdp3430_vmmc1,
369 .vmmc2 = &sdp3430_vmmc2,
370 .vsim = &sdp3430_vsim,
373 static int __init omap3430_i2c_init(
void)
380 sdp3430_twldata.
vdac->constraints.apply_uV =
true;
381 sdp3430_twldata.
vpll2->constraints.apply_uV =
true;
382 sdp3430_twldata.
vpll2->constraints.name =
"VDVI";
384 omap3_pmic_init(
"twl4030", &sdp3430_twldata);
393 #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
401 static void __init board_smc91x_init(
void)
413 static inline void board_smc91x_init(
void)
419 static void enable_board_wakeup_source(
void)
422 omap_mux_init_signal(
"sys_nirq",
433 .reset_gpio_port[0] = 57,
434 .reset_gpio_port[1] = 61,
435 .reset_gpio_port[2] = -
EINVAL
438 #ifdef CONFIG_OMAP_MUX
443 #define board_mux NULL
461 .name =
"Bootloader-NOR",
468 .name =
"Params-NOR",
475 .name =
"Kernel-NOR",
482 .name =
"Filesystem-NOR",
491 .name =
"X-Loader-OneNAND",
493 .size = 4 * (64 * 2048),
497 .name =
"U-Boot-OneNAND",
499 .size = 2 * (64 * 2048),
503 .name =
"U-Boot Environment-OneNAND",
505 .size = 1 * (64 * 2048),
508 .name =
"Kernel-OneNAND",
510 .size = 16 * (64 * 2048),
513 .name =
"File System-OneNAND",
522 .name =
"X-Loader-NAND",
524 .size = 4 * (64 * 2048),
528 .name =
"U-Boot-NAND",
530 .size = 10 * (64 * 2048),
534 .name =
"Boot Env-NAND",
537 .size = 6 * (64 * 2048),
540 .name =
"Kernel-NAND",
542 .size = 40 * (64 * 2048),
545 .name =
"File System - NAND",
553 .parts = sdp_nor_partitions,
557 .parts = sdp_onenand_partitions,
558 .nr_parts =
ARRAY_SIZE(sdp_onenand_partitions),
561 .parts = sdp_nand_partitions,
566 static void __init omap_3430sdp_init(
void)
571 omap_hsmmc_init(mmc);
584 sdp3430_display_init();
585 enable_board_wakeup_source();
591 .atag_offset = 0x100,
596 .handle_irq = omap3_intc_handle_irq,
597 .init_machine = omap_3430sdp_init,