public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH-Fix] OMAP: Add DSI regulator supply to OMAP3EVM board file
@ 2010-03-11  8:55 hvaibhav
  2010-03-11  8:59 ` Tomi Valkeinen
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: hvaibhav @ 2010-03-11  8:55 UTC (permalink / raw)
  To: linux-omap; +Cc: tony, Tomi.Valkeinen, Vaibhav Hiremath

From: Vaibhav Hiremath <hvaibhav@ti.com>

With recent changes happened in OMAP2/3 DSS library for regulator interface, it
is required to define DSI regulator supply, without this DSS (in turn Fbdev)
fails to get regulator.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
---
 arch/arm/mach-omap2/board-omap3evm.c |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 017bb2f..a05de10 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -514,9 +514,15 @@ static struct regulator_init_data omap3_evm_vdac = {
 };

 /* VPLL2 for digital video outputs */
-static struct regulator_consumer_supply omap3_evm_vpll2_supply = {
-	.supply		= "vdvi",
-	.dev		= &omap3_evm_lcd_device.dev,
+static struct regulator_consumer_supply omap3_evm_vpll2_supplies[] = {
+	{
+		.supply		= "vdvi",
+		.dev		= &omap3_evm_lcd_device.dev,
+	},
+	{
+		.supply		= "vdds_dsi",
+		.dev		= &omap3_evm_dss_device.dev,
+	},
 };

 static struct regulator_init_data omap3_evm_vpll2 = {
@@ -530,8 +536,8 @@ static struct regulator_init_data omap3_evm_vpll2 = {
 		.valid_ops_mask		= REGULATOR_CHANGE_MODE
 					| REGULATOR_CHANGE_STATUS,
 	},
-	.num_consumer_supplies	= 1,
-	.consumer_supplies	= &omap3_evm_vpll2_supply,
+	.num_consumer_supplies	= ARRAY_SIZE(omap3_evm_vpll2_supplies),
+	.consumer_supplies	= omap3_evm_vpll2_supplies,
 };

 static struct twl4030_platform_data omap3evm_twldata = {
--
1.6.2.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-03-11 22:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-11  8:55 [PATCH-Fix] OMAP: Add DSI regulator supply to OMAP3EVM board file hvaibhav
2010-03-11  8:59 ` Tomi Valkeinen
2010-03-11  9:18   ` Hiremath, Vaibhav
2010-03-11  9:27     ` Tomi Valkeinen
2010-03-11  9:31       ` Hiremath, Vaibhav
2010-03-11  9:20   ` Hiremath, Vaibhav
2010-03-11  9:30     ` Tomi Valkeinen
2010-03-11  9:39       ` Hiremath, Vaibhav
2010-03-11  9:43         ` Tomi Valkeinen
2010-03-11 10:03           ` Hiremath, Vaibhav
2010-03-11 12:25             ` Tomi Valkeinen
2010-03-11 12:48 ` Mark Brown
2010-03-11 13:33   ` Hiremath, Vaibhav
2010-03-11 22:14 ` [APPLIED] [PATCH-Fix] OMAP: Add DSI regulator supply to OMAP3EVM board Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox