* [PATCH 1/1] Activate VDD1, VDD2 and VPLL1 at startup
@ 2009-04-22 15:35 Peter 'p2' De Schrijver
2009-04-23 10:17 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Peter 'p2' De Schrijver @ 2009-04-22 15:35 UTC (permalink / raw)
To: linux-omap; +Cc: Peter 'p2' De Schrijver
This patch activates VDD1, VDD2 and VPLL1 when booting. This is necessary
because these resources are in warm reset state after a reboot. This means
their voltage levels cannot be modified so DVFS and smartreflex don't work.
Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
---
drivers/regulator/twl4030-regulator.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
index 80a4e10..ab2a726 100644
--- a/drivers/regulator/twl4030-regulator.c
+++ b/drivers/regulator/twl4030-regulator.c
@@ -506,6 +506,22 @@ static int twl4030reg_probe(struct platform_device *pdev)
}
platform_set_drvdata(pdev, rdev);
+ /* VDD1, VDD2 and VPLL1 are left in warm reset state after a reboot.
+ * We need to put them back to active state for DVFS and smartreflex.
+ */
+
+ if (twl4030_send_pb_msg(MSG_SINGULAR(DEV_GRP_P1, RES_VDD1,
+ RES_STATE_ACTIVE)) < 0)
+ pr_err("Unable to activate VDD1\n");
+
+ if (twl4030_send_pb_msg(MSG_SINGULAR(DEV_GRP_P1, RES_VDD2,
+ RES_STATE_ACTIVE)) < 0)
+ pr_err("Unable to activate VDD2\n");
+
+ if (twl4030_send_pb_msg(MSG_SINGULAR(DEV_GRP_P1, RES_VPLL1,
+ RES_STATE_ACTIVE)) < 0)
+ pr_err("Unable to activate VPLL1\n");
+
/* NOTE: many regulators support short-circuit IRQs (presentable
* as REGULATOR_OVER_CURRENT notifications?) configured via:
* - SC_CONFIG
--
1.5.6.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Activate VDD1, VDD2 and VPLL1 at startup
2009-04-22 15:35 [PATCH 1/1] Activate VDD1, VDD2 and VPLL1 at startup Peter 'p2' De Schrijver
@ 2009-04-23 10:17 ` Mark Brown
2009-04-23 18:54 ` Tony Lindgren
2009-04-23 20:31 ` David Brownell
0 siblings, 2 replies; 4+ messages in thread
From: Mark Brown @ 2009-04-23 10:17 UTC (permalink / raw)
To: Peter 'p2' De Schrijver; +Cc: linux-omap, dbrownell
On Wed, Apr 22, 2009 at 06:35:29PM +0300, Peter 'p2' De Schrijver wrote:
> This patch activates VDD1, VDD2 and VPLL1 when booting. This is necessary
> because these resources are in warm reset state after a reboot. This means
> their voltage levels cannot be modified so DVFS and smartreflex don't work.
> Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
Since TWL4030 is in mainline now you really ought to submit this and
the other patches you posted immediately before this one to mainline.
It'd be best to CC David Brownell (added here) on TWL4030 regulator
changes too, he's the expert on the regulator features of the chip.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Activate VDD1, VDD2 and VPLL1 at startup
2009-04-23 10:17 ` Mark Brown
@ 2009-04-23 18:54 ` Tony Lindgren
2009-04-23 20:31 ` David Brownell
1 sibling, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2009-04-23 18:54 UTC (permalink / raw)
To: Mark Brown; +Cc: Peter 'p2' De Schrijver, linux-omap, dbrownell
* Mark Brown <broonie@sirena.org.uk> [090423 03:17]:
> On Wed, Apr 22, 2009 at 06:35:29PM +0300, Peter 'p2' De Schrijver wrote:
>
> > This patch activates VDD1, VDD2 and VPLL1 when booting. This is necessary
> > because these resources are in warm reset state after a reboot. This means
> > their voltage levels cannot be modified so DVFS and smartreflex don't work.
>
> > Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
>
> Since TWL4030 is in mainline now you really ought to submit this and
> the other patches you posted immediately before this one to mainline.
> It'd be best to CC David Brownell (added here) on TWL4030 regulator
> changes too, he's the expert on the regulator features of the chip.
Agreed.
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] Activate VDD1, VDD2 and VPLL1 at startup
2009-04-23 10:17 ` Mark Brown
2009-04-23 18:54 ` Tony Lindgren
@ 2009-04-23 20:31 ` David Brownell
1 sibling, 0 replies; 4+ messages in thread
From: David Brownell @ 2009-04-23 20:31 UTC (permalink / raw)
To: Mark Brown; +Cc: Peter 'p2' De Schrijver, linux-omap
On Thursday 23 April 2009, Mark Brown wrote:
> Since TWL4030 is in mainline now you really ought to submit this and
> the other patches you posted immediately before this one to mainline.
> It'd be best to CC David Brownell (added here) on TWL4030 regulator
> changes too, he's the expert on the regulator features of the chip.
Just for the record ... I'm pretty sure the Nokia crew is
now exploring more of the funky corners of those features
than me! Example: these recent patches.
Agreed that I'm a good person to keep in the loop though;
there aren't enough active non-Nokia folk (there are TI'ers
but most of them don't frequent Linux circles) with enough
relevant knowledge to help check such patches. :)
- Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-23 20:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-22 15:35 [PATCH 1/1] Activate VDD1, VDD2 and VPLL1 at startup Peter 'p2' De Schrijver
2009-04-23 10:17 ` Mark Brown
2009-04-23 18:54 ` Tony Lindgren
2009-04-23 20:31 ` David Brownell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.