- omap_set_gpio_dataout(LCD_PANEL_ENABLE_GPIO, 1);
- omap_set_gpio_dataout(LCD_PANEL_BACKLIGHT_GPIO, 1);
-
- if(0!= t2_out(PM_RECEIVER, ENABLE_VAUX2_DEDICATED,
- TWL4030_VAUX2_DEDICATED)) return -EIO;
- if(0!= t2_out(PM_RECEIVER, ENABLE_VAUX2_DEV_GRP,
- TWL4030_VAUX2_DEV_GRP)) return -EIO;
+ u8 ded_val, ded_reg;
+ u8 grp_val, grp_reg;
+
+ if (machine_is_omap_3430sdp()) {
+ ded_reg = TWL4030_VAUX3_DEDICATED;
+ ded_val = ENABLE_VAUX3_DEDICATED;
+ grp_reg = TWL4030_VAUX3_DEV_GRP;
+ grp_val = ENABLE_VAUX3_DEV_GRP;
+ } else {
+ ded_reg = TWL4030_VAUX2_DEDICATED;
+ ded_val = ENABLE_VAUX2_DEDICATED;
+ grp_reg = TWL4030_VAUX2_DEV_GRP;
+ grp_val = ENABLE_VAUX2_DEV_GRP;
+ }
+
+ omap_set_gpio_dataout(enable_gpio, 1);
+ omap_set_gpio_dataout(backlight_gpio, 1);
+
+ if (0 != t2_out(PM_RECEIVER, ded_val, ded_reg))
+ return -EIO;
+ if (0 != t2_out(PM_RECEIVER, grp_val, grp_reg))
+ return -EIO;