|
@@ -345,3 +345,54 @@ static int __init omap3_stalker_i2c_init(void)
|
|
TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2);
|
|
TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VPLL2);
|
|
|
|
|
|
omap3stalker_twldata.vdac->constraints.apply_uV = true;
|
|
omap3stalker_twldata.vdac->constraints.apply_uV = true;
|
|
|
|
+ omap3stalker_twldata.vpll2->constraints.apply_uV = true;
|
|
|
|
+ omap3stalker_twldata.vpll2->constraints.name = "VDVI";
|
|
|
|
+
|
|
|
|
+ omap3_pmic_init("twl4030", &omap3stalker_twldata);
|
|
|
|
+ omap_register_i2c_bus(2, 400, NULL, 0);
|
|
|
|
+ omap_register_i2c_bus(3, 400, omap3stalker_i2c_boardinfo3,
|
|
|
|
+ ARRAY_SIZE(omap3stalker_i2c_boardinfo3));
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#define OMAP3_STALKER_TS_GPIO 175
|
|
|
|
+
|
|
|
|
+static struct platform_device *omap3_stalker_devices[] __initdata = {
|
|
|
|
+ &keys_gpio,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct usbhs_omap_board_data usbhs_bdata __initconst = {
|
|
|
|
+ .port_mode[0] = OMAP_USBHS_PORT_MODE_UNUSED,
|
|
|
|
+ .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY,
|
|
|
|
+ .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED,
|
|
|
|
+
|
|
|
|
+ .phy_reset = true,
|
|
|
|
+ .reset_gpio_port[0] = -EINVAL,
|
|
|
|
+ .reset_gpio_port[1] = 21,
|
|
|
|
+ .reset_gpio_port[2] = -EINVAL,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_OMAP_MUX
|
|
|
|
+static struct omap_board_mux board_mux[] __initdata = {
|
|
|
|
+ OMAP3_MUX(SYS_NIRQ, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP |
|
|
|
|
+ OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE),
|
|
|
|
+ OMAP3_MUX(MCSPI1_CS1, OMAP_MUX_MODE4 | OMAP_PIN_INPUT_PULLUP |
|
|
|
|
+ OMAP_PIN_OFF_INPUT_PULLUP | OMAP_PIN_OFF_WAKEUPENABLE),
|
|
|
|
+ {.reg_offset = OMAP_MUX_TERMINATOR},
|
|
|
|
+};
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+static struct regulator_consumer_supply dummy_supplies[] = {
|
|
|
|
+ REGULATOR_SUPPLY("vddvario", "smsc911x.0"),
|
|
|
|
+ REGULATOR_SUPPLY("vdd33a", "smsc911x.0"),
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static void __init omap3_stalker_init(void)
|
|
|
|
+{
|
|
|
|
+ regulator_register_fixed(0, dummy_supplies, ARRAY_SIZE(dummy_supplies));
|
|
|
|
+ omap3_mux_init(board_mux, OMAP_PACKAGE_CUS);
|
|
|
|
+
|
|
|
|
+ omap_mux_init_gpio(23, OMAP_PIN_INPUT);
|
|
|
|
+ omap_hsmmc_init(mmc);
|
|
|
|
+
|
|
|
|
+ omap3_stalker_i2c_init();
|