diff mbox

[2/2] enabled vdda_dac regulator support tvout on rx51

Message ID 1290700343-26640-2-git-send-email-ext-srikar.1.bhavanarayana@nokia.com (mailing list archive)
State Changes Requested, archived
Delegated to: Tony Lindgren
Headers show

Commit Message

Srikar Nov. 25, 2010, 3:52 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index e56d6d7..ec47402 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -372,6 +372,16 @@  static struct regulator_consumer_supply rx51_vaux1_consumers[] = {
 #endif
 };
 
+static struct regulator_consumer_supply rx51_vdac_supply[] = {
+	{
+#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
+		.supply	= "vdda_dac",
+		.dev	= &rx51_display_device.dev,
+	},
+#endif
+};
+
+
 static struct regulator_init_data rx51_vaux1 = {
 	.constraints = {
 		.name			= "V28",
@@ -489,14 +499,17 @@  static struct regulator_init_data rx51_vsim = {
 
 static struct regulator_init_data rx51_vdac = {
 	.constraints = {
+		.name			= "VDAC",
 		.min_uV			= 1800000,
 		.max_uV			= 1800000,
+		.apply_uV		= true,
 		.valid_modes_mask	= REGULATOR_MODE_NORMAL
 					| REGULATOR_MODE_STANDBY,
-		.valid_ops_mask		= REGULATOR_CHANGE_VOLTAGE
-					| REGULATOR_CHANGE_MODE
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
 					| REGULATOR_CHANGE_STATUS,
 	},
+	.num_consumer_supplies	= 1,
+	.consumer_supplies	= &rx51_vdac_supply,
 };
 
 static struct regulator_init_data rx51_vio = {