28 #include <linux/kernel.h>
60 #define OVERO_GPIO_BT_XGATE 15
61 #define OVERO_GPIO_W2W_NRESET 16
62 #define OVERO_GPIO_PENDOWN 114
63 #define OVERO_GPIO_BT_NRESET 164
64 #define OVERO_GPIO_USBH_CPEN 168
65 #define OVERO_GPIO_USBH_NRESET 183
67 #define OVERO_SMSC911X_CS 5
68 #define OVERO_SMSC911X_GPIO 176
69 #define OVERO_SMSC911X2_CS 4
70 #define OVERO_SMSC911X2_GPIO 65
72 #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \
73 defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
84 .num_consumer_supplies =
ARRAY_SIZE(ads7846_supply),
85 .consumer_supplies = ads7846_supply,
90 .microvolts = 3300000,
93 .init_data = &vads7846_regulator,
97 .
name =
"reg-fixed-voltage",
100 .platform_data = &vads7846,
104 static void __init overo_ads7846_init(
void)
111 static inline void __init overo_ads7846_init(
void) {
return; }
114 #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
135 static void __init overo_init_smsc911x(
void)
142 static inline void __init overo_init_smsc911x(
void) {
return; }
146 static int lcd_enabled;
147 static int dvi_enabled;
149 #define OVERO_GPIO_LCD_EN 144
150 #define OVERO_GPIO_LCD_BL 145
157 static void __init overo_display_init(
void)
170 .power_down_gpio = -1,
176 .driver_name =
"tfp410",
178 .phy.dpi.data_lines = 24,
183 .driver_name =
"venc",
209 .name =
"samsung_lte430wq_f0c",
210 .platform_enable = overo_panel_enable_lcd,
211 .platform_disable = overo_panel_disable_lcd,
217 .driver_name =
"generic_dpi_panel",
218 .data = &lcd43_panel,
219 .phy.dpi.data_lines = 24,
222 #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \
223 defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE)
227 .driver_name =
"lgphilips_lb035q02_panel",
228 .phy.dpi.data_lines = 24,
229 .platform_enable = overo_panel_enable_lcd,
230 .platform_disable = overo_panel_disable_lcd,
237 #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \
238 defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE)
246 .devices = overo_dss_devices,
247 .default_device = &overo_dvi_device,
263 .name =
"uboot environment",
292 .ocr_mask = 0x00100000,
301 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
304 static struct gpio_led gpio_leds[] = {
306 .
name =
"overo:red:gpio21",
307 .default_trigger =
"heartbeat",
312 .name =
"overo:blue:gpio22",
313 .default_trigger =
"none",
318 .name =
"overo:blue:COM",
319 .default_trigger =
"mmc0",
334 .platform_data = &gpio_leds_pdata,
338 static void __init overo_init_led(
void)
344 static inline void __init overo_init_led(
void) {
return; }
347 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
348 #include <linux/input.h>
375 .platform_data = &gpio_keys_pdata,
379 static void __init overo_init_keys(
void)
385 static inline void __init overo_init_keys(
void) {
return; }
388 static int overo_twl_gpio_setup(
struct device *
dev,
389 unsigned gpio,
unsigned ngpio)
391 #if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
401 .setup = overo_twl_gpio_setup,
414 .num_consumer_supplies =
ARRAY_SIZE(overo_vmmc1_supply),
415 .consumer_supplies = overo_vmmc1_supply,
419 .gpio = &overo_gpio_data,
420 .vmmc1 = &overo_vmmc1,
423 static int __init overo_i2c_init(
void)
429 overo_twldata.
vpll2->constraints.name =
"VDVI";
431 omap3_pmic_init(
"tps65950", &overo_twldata);
437 static struct spi_board_info overo_spi_board_info[] __initdata = {
438 #if defined(CONFIG_PANEL_LGPHILIPS_LB035Q02) || \
439 defined(CONFIG_PANEL_LGPHILIPS_LB035Q02_MODULE)
441 .modalias =
"lgphilips_lb035q02_panel-spi",
444 .max_speed_hz = 500000,
450 static int __init overo_spi_init(
void)
452 overo_ads7846_init();
463 .reset_gpio_port[0] = -
EINVAL,
465 .reset_gpio_port[2] = -
EINVAL
468 #ifdef CONFIG_OMAP_MUX
474 static struct gpio overo_bt_gpios[] __initdata = {
486 static void __init overo_init(
void)
493 omap_hsmmc_init(mmc);
497 mt46h32m32lf6_sdrc_params);
503 overo_init_smsc911x();
504 overo_display_init();
514 "OVERO_GPIO_W2W_NRESET");
521 pr_err(
"could not obtain gpio for OVERO_GPIO_W2W_NRESET\n");
526 pr_err(
"%s: could not obtain BT gpios\n", __func__);
536 "OVERO_GPIO_USBH_CPEN");
540 pr_err(
"could not obtain gpio for OVERO_GPIO_USBH_CPEN\n");
544 .atag_offset = 0x100,
549 .handle_irq = omap3_intc_handle_irq,
550 .init_machine = overo_init,