15 #include <linux/kernel.h>
24 #include <linux/input.h>
57 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
60 #define OMAP3STALKER_ETHR_START 0x2c000000
61 #define OMAP3STALKER_ETHR_SIZE 1024
62 #define OMAP3STALKER_ETHR_GPIO_IRQ 19
63 #define OMAP3STALKER_SMC911X_CS 5
66 .
cs = OMAP3STALKER_SMC911X_CS,
67 .gpio_irq = OMAP3STALKER_ETHR_GPIO_IRQ,
72 static inline void __init omap3stalker_init_eth(
void)
79 static inline void __init omap3stalker_init_eth(
void)
89 #define DSS_ENABLE_GPIO 199
90 #define LCD_PANEL_BKLIGHT_GPIO 210
91 #define ENABLE_VPLL2_DEV_GRP 0xE0
93 static void __init omap3_stalker_display_init(
void)
109 .driver_name =
"venc",
111 #if defined(CONFIG_OMAP2_VENC_OUT_TYPE_SVIDEO)
113 #elif defined(CONFIG_OMAP2_VENC_OUT_TYPE_COMPOSITE)
116 .platform_enable = omap3_stalker_enable_tv,
117 .platform_disable = omap3_stalker_disable_tv,
127 .driver_name =
"tfp410",
129 .phy.dpi.data_lines = 24,
133 &omap3_stalker_tv_device,
134 &omap3_stalker_dvi_device,
138 .num_devices =
ARRAY_SIZE(omap3_stalker_dss_devices),
139 .devices = omap3_stalker_dss_devices,
140 .default_device = &omap3_stalker_dvi_device,
161 .num_consumer_supplies =
ARRAY_SIZE(omap3stalker_vmmc1_supply),
162 .consumer_supplies = omap3stalker_vmmc1_supply,
175 .num_consumer_supplies =
ARRAY_SIZE(omap3stalker_vsim_supply),
176 .consumer_supplies = omap3stalker_vsim_supply,
200 .buttons = gpio_buttons,
208 .platform_data = &gpio_key_info,
212 static struct gpio_led gpio_leds[] = {
214 .name =
"stalker:D8:usr0",
215 .default_trigger =
"default-on",
219 .name =
"stalker:D9:usr1",
220 .default_trigger =
"default-on",
224 .name =
"stalker:D3:mmc0",
227 .default_trigger =
"mmc0",
230 .name =
"stalker:D4:heartbeat",
233 .default_trigger =
"heartbeat",
246 .platform_data = &gpio_led_info,
251 omap3stalker_twl_gpio_setup(
struct device *
dev,
252 unsigned gpio,
unsigned ngpio)
256 omap_hsmmc_late_init(mmc);
273 gpio_leds[3].
gpio = gpio + 13;
281 .setup = omap3stalker_twl_gpio_setup,
307 .keymap = board_keymap,
312 .keymap_data = &board_map_data,
320 .keypad = &omap3stalker_kp_data,
321 .gpio = &omap3stalker_gpio_data,
322 .vmmc1 = &omap3stalker_vmmc1,
323 .vsim = &omap3stalker_vsim,
327 .byte_len = (64 * 1024) / 8,
336 .platform_data = &fram_info,
340 static int __init omap3_stalker_i2c_init(
void)
347 omap3stalker_twldata.
vdac->constraints.apply_uV =
true;
348 omap3stalker_twldata.
vpll2->constraints.apply_uV =
true;
349 omap3stalker_twldata.
vpll2->constraints.name =
"VDVI";
351 omap3_pmic_init(
"twl4030", &omap3stalker_twldata);
358 #define OMAP3_STALKER_TS_GPIO 175
370 .reset_gpio_port[0] = -
EINVAL,
371 .reset_gpio_port[1] = 21,
372 .reset_gpio_port[2] = -
EINVAL,
375 #ifdef CONFIG_OMAP_MUX
390 static void __init omap3_stalker_init(
void)
396 omap_hsmmc_init(mmc);
398 omap3_stalker_i2c_init();
414 omap3stalker_init_eth();
415 omap3_stalker_display_init();
423 .atag_offset = 0x100,
427 .handle_irq = omap3_intc_handle_irq,
428 .init_machine = omap3_stalker_init,