19 #include <linux/kernel.h>
46 #define LCD_PANEL_PWR 176
47 #define LCD_PANEL_BKLIGHT_PWR 182
48 #define LCD_PANEL_PWM 181
59 #define GPIO_RTCS35390A_IRQ 55
61 static void __init am3517_evm_rtc_init(
void)
91 .platform_data = &am3517evm_gpio_expander_info_0,
105 .platform_data = &am3517evm_ui_gpio_expander_info_1,
109 .platform_data = &am3517evm_ui_gpio_expander_info_2,
113 static int __init am3517_evm_i2c_init(
void)
124 static int lcd_enabled;
125 static int dvi_enabled;
127 #if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \
128 defined(CONFIG_PANEL_SHARP_LQ043T1DG01_MODULE)
138 static void __init am3517_evm_display_init(
void)
156 static void __init am3517_evm_display_init(
void) {}
171 static void am3517_evm_panel_disable_lcd(
struct omap_dss_device *dssdev)
179 .platform_enable = am3517_evm_panel_enable_lcd,
180 .platform_disable = am3517_evm_panel_disable_lcd,
186 .driver_name =
"generic_dpi_panel",
188 .phy.dpi.data_lines = 16,
196 static void am3517_evm_panel_disable_tv(
struct omap_dss_device *dssdev)
203 .driver_name =
"venc",
205 .platform_enable = am3517_evm_panel_enable_tv,
206 .platform_disable = am3517_evm_panel_disable_tv,
210 .power_down_gpio = -1,
216 .driver_name =
"tfp410",
218 .phy.dpi.data_lines = 24,
222 &am3517_evm_lcd_device,
223 &am3517_evm_tv_device,
224 &am3517_evm_dvi_device,
228 .num_devices =
ARRAY_SIZE(am3517_evm_dss_devices),
229 .devices = am3517_evm_dss_devices,
230 .default_device = &am3517_evm_lcd_device,
237 static struct omap_musb_board_data musb_board_data = {
238 .interface_type = MUSB_INTERFACE_ULPI,
247 static __init void am3517_evm_musb_init(
void)
266 static __init void am3517_evm_mcbsp1_init(
void)
278 #if defined(CONFIG_PANEL_SHARP_LQ043T1DG01) || \
279 defined(CONFIG_PANEL_SHARP_LQ043T1DG01_MODULE)
287 .reset_gpio_port[0] = 57,
288 .reset_gpio_port[1] = -
EINVAL,
289 .reset_gpio_port[2] = -
EINVAL
292 #ifdef CONFIG_OMAP_MUX
301 static struct resource am3517_hecc_resources[] = {
316 .num_resources =
ARRAY_SIZE(am3517_hecc_resources),
317 .resource = am3517_hecc_resources,
331 am3517_hecc_device.
dev.platform_data =
pdata;
352 static void __init am3517_evm_init(
void)
356 am3517_evm_i2c_init();
364 am3517_evm_hecc_init(&am3517_evm_hecc_pdata);
366 am3517_evm_display_init();
369 am3517_evm_rtc_init();
377 am3517_evm_musb_init();
380 am3517_evm_mcbsp1_init();
383 omap_hsmmc_init(mmc);
387 .atag_offset = 0x100,
392 .handle_irq = omap3_intc_handle_irq,
393 .init_machine = am3517_evm_init,