public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Regulator: Registering USB internal LDOs for TWL4030
@ 2010-01-11  9:25 Anuj Aggarwal
  2010-01-11 10:56 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Anuj Aggarwal @ 2010-01-11  9:25 UTC (permalink / raw)
  To: linux-omap; +Cc: broonie, lrg, Anuj Aggarwal

Adding member variables for USB internal LDOs in twl4030_platform_data
and registering them in twl-core.c if the variables are populated
from board-evm file.

Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
---
 drivers/mfd/twl-core.c  |   12 ++++++++++++
 include/linux/i2c/twl.h |    4 ++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
index 2a76065..6cde051 100644
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@ -791,6 +791,18 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
 		child = add_regulator(TWL4030_REG_VAUX4, pdata->vaux4);
 		if (IS_ERR(child))
 			return PTR_ERR(child);
+
+		child = add_regulator(TWL4030_REG_VUSB1V5, pdata->vusb1v5);
+		if (IS_ERR(child))
+			return PTR_ERR(child);
+
+		child = add_regulator(TWL4030_REG_VUSB1V8, pdata->vusb1v8);
+		if (IS_ERR(child))
+			return PTR_ERR(child);
+
+		child = add_regulator(TWL4030_REG_VUSB3V1, pdata->vusb3v1);
+		if (IS_ERR(child))
+			return PTR_ERR(child);
 	}
 
 	/* twl6030 regulators */
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
index bf1c5be..7be0b34 100644
--- a/include/linux/i2c/twl.h
+++ b/include/linux/i2c/twl.h
@@ -578,6 +578,10 @@ struct twl4030_platform_data {
 	struct regulator_init_data		*vintana1;
 	struct regulator_init_data		*vintana2;
 	struct regulator_init_data		*vintdig;
+	struct regulator_init_data		*vusb1v5;
+	struct regulator_init_data		*vusb1v8;
+	struct regulator_init_data		*vusb3v1;
+
 	/* TWL6030 LDO regulators */
 	struct regulator_init_data              *vmmc;
 	struct regulator_init_data              *vpp;
-- 
1.6.2.4


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

* Re: [PATCH 1/1] Regulator: Registering USB internal LDOs for TWL4030
  2010-01-11  9:25 [PATCH 1/1] Regulator: Registering USB internal LDOs for TWL4030 Anuj Aggarwal
@ 2010-01-11 10:56 ` Mark Brown
  2010-03-02  6:24   ` Aggarwal, Anuj
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2010-01-11 10:56 UTC (permalink / raw)
  To: Anuj Aggarwal; +Cc: linux-omap, lrg

On Mon, Jan 11, 2010 at 02:55:18PM +0530, Anuj Aggarwal wrote:
> Adding member variables for USB internal LDOs in twl4030_platform_data
> and registering them in twl-core.c if the variables are populated
> from board-evm file.

> Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>

Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

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

* RE: [PATCH 1/1] Regulator: Registering USB internal LDOs for TWL4030
  2010-01-11 10:56 ` Mark Brown
@ 2010-03-02  6:24   ` Aggarwal, Anuj
  2010-03-11 22:22     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Aggarwal, Anuj @ 2010-03-02  6:24 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap@vger.kernel.org, lrg@slimlogic.co.uk, Mark Brown

> -----Original Message-----
> From: Mark Brown [mailto:broonie@opensource.wolfsonmicro.com]
> Sent: Monday, January 11, 2010 4:26 PM
> To: Aggarwal, Anuj
> Cc: linux-omap@vger.kernel.org; lrg@slimlogic.co.uk
> Subject: Re: [PATCH 1/1] Regulator: Registering USB internal LDOs for
> TWL4030
> 
> On Mon, Jan 11, 2010 at 02:55:18PM +0530, Anuj Aggarwal wrote:
> > Adding member variables for USB internal LDOs in twl4030_platform_data
> > and registering them in twl-core.c if the variables are populated
> > from board-evm file.
> 
> > Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
> 
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tony,

Can you pull this patch? I have tried it on for-next tip, it applies
cleanly.

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

* Re: [PATCH 1/1] Regulator: Registering USB internal LDOs for TWL4030
  2010-03-02  6:24   ` Aggarwal, Anuj
@ 2010-03-11 22:22     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2010-03-11 22:22 UTC (permalink / raw)
  To: Aggarwal, Anuj
  Cc: linux-omap@vger.kernel.org, lrg@slimlogic.co.uk, Mark Brown

* Aggarwal, Anuj <anuj.aggarwal@ti.com> [100301 22:21]:
> > -----Original Message-----
> > From: Mark Brown [mailto:broonie@opensource.wolfsonmicro.com]
> > Sent: Monday, January 11, 2010 4:26 PM
> > To: Aggarwal, Anuj
> > Cc: linux-omap@vger.kernel.org; lrg@slimlogic.co.uk
> > Subject: Re: [PATCH 1/1] Regulator: Registering USB internal LDOs for
> > TWL4030
> > 
> > On Mon, Jan 11, 2010 at 02:55:18PM +0530, Anuj Aggarwal wrote:
> > > Adding member variables for USB internal LDOs in twl4030_platform_data
> > > and registering them in twl-core.c if the variables are populated
> > > from board-evm file.
> > 
> > > Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
> > 
> > Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> Tony,
> 
> Can you pull this patch? I have tried it on for-next tip, it applies
> cleanly.

This needs to go to Samuel, see MAINTAINERS file for MFD.

Tony

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11  9:25 [PATCH 1/1] Regulator: Registering USB internal LDOs for TWL4030 Anuj Aggarwal
2010-01-11 10:56 ` Mark Brown
2010-03-02  6:24   ` Aggarwal, Anuj
2010-03-11 22:22     ` Tony Lindgren

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