15 #include <linux/kernel.h>
24 #include <linux/input.h>
55 #include <asm/setup.h>
57 #define OMAP3_AC_GPIO 136
58 #define OMAP3_TS_GPIO 162
59 #define TB_BL_PWM_TIMER 9
60 #define TB_KILL_POWER_GPIO 168
62 static unsigned long touchbook_revision;
64 static struct mtd_partition omap3touchbook_nand_partitions[] = {
89 .name =
"File System",
117 static int touchbook_twl_gpio_setup(
struct device *
dev,
118 unsigned gpio,
unsigned ngpio)
122 omap_hsmmc_late_init(mmc);
144 .setup = touchbook_twl_gpio_setup,
170 .num_consumer_supplies =
ARRAY_SIZE(touchbook_vmmc1_supply),
171 .consumer_supplies = touchbook_vmmc1_supply,
185 .num_consumer_supplies =
ARRAY_SIZE(touchbook_vsim_supply),
186 .consumer_supplies = touchbook_vsim_supply,
191 .gpio = &touchbook_gpio_data,
192 .vmmc1 = &touchbook_vmmc1,
193 .vsim = &touchbook_vsim,
202 static int __init omap3_touchbook_i2c_init(
void)
209 touchbook_twldata.
vdac->num_consumer_supplies =
211 touchbook_twldata.
vdac->consumer_supplies = touchbook_vdac_supply;
213 touchbook_twldata.
vpll2->constraints.name =
"VDVI";
214 touchbook_twldata.
vpll2->num_consumer_supplies =
216 touchbook_twldata.
vpll2->consumer_supplies = touchbook_vdvi_supply;
218 omap3_pmic_init(
"twl4030", &touchbook_twldata);
240 static struct gpio_led gpio_leds[] = {
242 .name =
"touchbook::usr0",
243 .default_trigger =
"heartbeat",
247 .name =
"touchbook::usr1",
248 .default_trigger =
"mmc0",
252 .name =
"touchbook::pmu_stat",
267 .platform_data = &gpio_led_info,
287 .buttons = gpio_buttons,
295 .platform_data = &gpio_key_info,
299 #ifdef CONFIG_OMAP_MUX
305 static struct platform_device *omap3_touchbook_devices[] __initdata = {
317 .reset_gpio_port[0] = -
EINVAL,
318 .reset_gpio_port[1] = 147,
319 .reset_gpio_port[2] = -
EINVAL
322 static void omap3_touchbook_poweroff(
void)
330 static int __init early_touchbook_revision(
char *
p)
339 static void __init omap3_touchbook_init(
void)
351 omap_hsmmc_init(mmc);
353 omap3_touchbook_i2c_init();
358 mt46h32m32lf6_sdrc_params);
378 .atag_offset = 0x100,
383 .handle_irq = omap3_intc_handle_irq,
384 .init_machine = omap3_touchbook_init,