aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/twl-common.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-08-15 08:54:53 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-09-07 13:02:04 -0400
commit8a3d895bfe409f3cae398c0788e8639260c81754 (patch)
tree45d9a36830f0145207da90fd9d7c9f762ac4bdf1 /arch/arm/mach-omap2/twl-common.c
parenta84b20654bb5711b45cf28bf5342143ce8652e72 (diff)
OMAP4: TWL: add vdda_hdmi_dac regulator supply
HDMI requires vdda_hdmi_dac (vdac) power for operation. The regulator, or the regulator supplying the vdac, has been enabled by default and things have worked without the HDMI driver enabling the vdac. I encountered the problem when implementing HDMI device tree support, where the regulator was not enabled by default. This patch adds the vdda_hdmi_dac to twl-common.c so that the HDMI driver can use it. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/twl-common.c')
-rw-r--r--arch/arm/mach-omap2/twl-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c
index db5ff6642375..9bf8a89e78c6 100644
--- a/arch/arm/mach-omap2/twl-common.c
+++ b/arch/arm/mach-omap2/twl-common.c
@@ -258,6 +258,10 @@ static struct twl4030_usb_data omap4_usb_pdata = {
258 .phy_suspend = omap4430_phy_suspend, 258 .phy_suspend = omap4430_phy_suspend,
259}; 259};
260 260
261static struct regulator_consumer_supply omap4_vdda_hdmi_dac_supplies[] = {
262 REGULATOR_SUPPLY("vdda_hdmi_dac", "omapdss_hdmi"),
263};
264
261static struct regulator_init_data omap4_vdac_idata = { 265static struct regulator_init_data omap4_vdac_idata = {
262 .constraints = { 266 .constraints = {
263 .min_uV = 1800000, 267 .min_uV = 1800000,
@@ -267,6 +271,8 @@ static struct regulator_init_data omap4_vdac_idata = {
267 .valid_ops_mask = REGULATOR_CHANGE_MODE 271 .valid_ops_mask = REGULATOR_CHANGE_MODE
268 | REGULATOR_CHANGE_STATUS, 272 | REGULATOR_CHANGE_STATUS,
269 }, 273 },
274 .num_consumer_supplies = ARRAY_SIZE(omap4_vdda_hdmi_dac_supplies),
275 .consumer_supplies = omap4_vdda_hdmi_dac_supplies,
270 .supply_regulator = "V2V1", 276 .supply_regulator = "V2V1",
271}; 277};
272 278