commit c274d9729a5862d6641df0260679e27b8915259f Author: David Brownell Date: Fri Mar 20 22:33:11 2009 +0000 sdp regulator init updates Hook up VPLL2 regulator on 3430 SDP. Link that and VDAC to the framebuffer device, supporting eventual conversion to use the regulator framework. Signed-off-by: David Brownell Signed-off-by: Tony Lindgren Index: linux-2.6/arch/arm/mach-omap2/board-3430sdp.c =================================================================== --- linux-2.6.orig/arch/arm/mach-omap2/board-3430sdp.c 2009-03-23 11:58:44.000000000 -0700 +++ linux-2.6/arch/arm/mach-omap2/board-3430sdp.c 2009-03-23 11:58:46.000000000 -0700 @@ -173,6 +173,16 @@ static struct platform_device sdp3430_lc .id = -1, }; +static struct regulator_consumer_supply sdp3430_vdac_supply = { + .supply = "vdac", + .dev = &sdp3430_lcd_device.dev, +}; + +static struct regulator_consumer_supply sdp3430_vdvi_supply = { + .supply = "vdvi", + .dev = &sdp3430_lcd_device.dev, +}; + static struct platform_device *sdp3430_devices[] __initdata = { &sdp3430_smc91x_device, &sdp3430_lcd_device, @@ -434,6 +444,23 @@ static struct regulator_init_data sdp343 .valid_ops_mask = REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, + .num_consumer_supplies = 1, + .consumer_supplies = &sdp3430_vdac_supply, +}; + +/* VPLL2 for digital video outputs */ +static struct regulator_init_data sdp3430_vpll2 = { + .constraints = { + .name = "VDVI", + .min_uV = 1800000, + .max_uV = 1800000, + .valid_modes_mask = REGULATOR_MODE_NORMAL + | REGULATOR_MODE_STANDBY, + .valid_ops_mask = REGULATOR_CHANGE_MODE + | REGULATOR_CHANGE_STATUS, + }, + .num_consumer_supplies = 1, + .consumer_supplies = &sdp3430_vdvi_supply, }; static struct twl4030_platform_data sdp3430_twldata = { @@ -455,6 +482,7 @@ static struct twl4030_platform_data sdp3 .vmmc2 = &sdp3430_vmmc2, .vsim = &sdp3430_vsim, .vdac = &sdp3430_vdac, + .vpll2 = &sdp3430_vpll2, }; static struct i2c_board_info __initdata sdp3430_i2c_boardinfo[] = {