14 #include <linux/kernel.h>
18 #include <linux/input.h>
52 #define LDP_SMSC911X_CS 1
53 #define LDP_SMSC911X_GPIO 152
54 #define DEBUG_BASE 0x08000000
55 #define LDP_ETHR_START DEBUG_BASE
79 .keymap = board_keymap,
84 .keymap_data = &board_map_data,
96 .debounce_interval = 30,
103 .debounce_interval = 30,
110 .debounce_interval = 30,
117 .debounce_interval = 30,
124 .debounce_interval = 30,
131 .debounce_interval = 30,
138 .debounce_interval = 30,
145 .debounce_interval = 30,
152 .debounce_interval = 30,
157 .buttons = ldp_gpio_keys_buttons,
158 .nbuttons =
ARRAY_SIZE(ldp_gpio_keys_buttons),
166 .platform_data = &ldp_gpio_keys,
177 static inline void __init ldp_init_smsc911x(
void)
184 static int ldp_backlight_gpio;
185 static int ldp_lcd_enable_gpio;
187 #define LCD_PANEL_RESET_GPIO 55
188 #define LCD_PANEL_QVGA_GPIO 56
192 if (gpio_is_valid(ldp_lcd_enable_gpio))
194 if (gpio_is_valid(ldp_backlight_gpio))
202 if (gpio_is_valid(ldp_lcd_enable_gpio))
204 if (gpio_is_valid(ldp_backlight_gpio))
209 .name =
"nec_nl2432dr22-11b",
210 .platform_enable = ldp_panel_enable_lcd,
211 .platform_disable = ldp_panel_disable_lcd,
216 .driver_name =
"generic_dpi_panel",
218 .phy.dpi.data_lines = 18,
219 .data = &ldp_panel_data,
228 .devices = ldp_dss_devices,
229 .default_device = &ldp_lcd_device,
232 static void __init ldp_display_init(
void)
243 pr_err(
"Cannot request LCD GPIOs, error %d\n", r);
250 static int ldp_twl_gpio_setup(
struct device *
dev,
unsigned gpio,
unsigned ngpio)
254 struct gpio gpios[] = {
261 pr_err(
"Cannot request LCD GPIOs, error %d\n", r);
262 ldp_backlight_gpio = -
EINVAL;
263 ldp_lcd_enable_gpio = -
EINVAL;
267 ldp_backlight_gpio = gpio + 15;
268 ldp_lcd_enable_gpio = gpio + 7;
274 .setup = ldp_twl_gpio_setup,
292 .num_consumer_supplies =
ARRAY_SIZE(ldp_vmmc1_supply),
293 .consumer_supplies = ldp_vmmc1_supply,
312 .num_consumer_supplies =
ARRAY_SIZE(ldp_vaux1_supplies),
313 .consumer_supplies = ldp_vaux1_supplies,
332 .num_consumer_supplies =
ARRAY_SIZE(ldp_vpll2_supplies),
333 .consumer_supplies = ldp_vpll2_supplies,
341 .gpio = &ldp_gpio_data,
342 .keypad = &ldp_kp_twl4030_data,
345 static int __init omap_i2c_init(
void)
349 omap3_pmic_init(
"twl4030", &ldp_twldata);
366 &ldp_gpio_keys_device,
369 #ifdef CONFIG_OMAP_MUX
378 .name =
"X-Loader-NAND",
380 .size = 4 * (64 * 2048),
384 .name =
"U-Boot-NAND",
386 .size = 10 * (64 * 2048),
390 .name =
"Boot Env-NAND",
392 .size = 2 * (64 * 2048),
395 .name =
"Kernel-NAND",
397 .size = 240 * (64 * 2048),
400 .name =
"File System - NAND",
412 static void __init omap_ldp_init(
void)
423 board_nand_init(ldp_nand_partitions,
426 omap_hsmmc_init(mmc);
431 .atag_offset = 0x100,
436 .handle_irq = omap3_intc_handle_irq,
437 .init_machine = omap_ldp_init,