public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] OMAP4: add clk32kg data to omap4panda and blaze board file
@ 2011-02-09 15:37 Balaji T K
  2011-02-09 15:45 ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Balaji T K @ 2011-02-09 15:37 UTC (permalink / raw)
  To: tony, linux-omap; +Cc: broonie, lrg, sameo, Balaji T K

In Blaze and Panda, 32KHz clock - CLK32KG to WLAN is supplied
from Phoenix TWL6030.
Add CLK32KG platform data to blaze and omap4panda board file.

This patch has dependency on :-
[PATCH 1/2] regulator: twl: add clk32kg to twl-regulator

Signed-off-by: Balaji T K <balajitk@ti.com>
---
 arch/arm/mach-omap2/board-4430sdp.c    |   10 ++++++++++
 arch/arm/mach-omap2/board-omap4panda.c |   10 ++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 1b16525..0c52901 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -475,6 +475,15 @@ static struct regulator_init_data sdp4430_vusb = {
 	},
 };
 
+static struct regulator_init_data sdp4430_clk32kg = {
+	.constraints = {
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+};
+
 static struct twl4030_platform_data sdp4430_twldata = {
 	.irq_base	= TWL6030_IRQ_BASE,
 	.irq_end	= TWL6030_IRQ_END,
@@ -490,6 +499,7 @@ static struct twl4030_platform_data sdp4430_twldata = {
 	.vaux1		= &sdp4430_vaux1,
 	.vaux2		= &sdp4430_vaux2,
 	.vaux3		= &sdp4430_vaux3,
+	.clk32kg	= &sdp4430_clk32kg,
 	.usb		= &omap4_usbphy_data
 };
 
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 3686533..4c38b16 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -346,6 +346,15 @@ static struct regulator_init_data omap4_panda_vusb = {
 	},
 };
 
+static struct regulator_init_data omap4_panda_clk32kg = {
+	.constraints = {
+		.valid_modes_mask	= REGULATOR_MODE_NORMAL
+					| REGULATOR_MODE_STANDBY,
+		.valid_ops_mask		= REGULATOR_CHANGE_MODE
+					| REGULATOR_CHANGE_STATUS,
+	},
+};
+
 static struct twl4030_platform_data omap4_panda_twldata = {
 	.irq_base	= TWL6030_IRQ_BASE,
 	.irq_end	= TWL6030_IRQ_END,
@@ -361,6 +370,7 @@ static struct twl4030_platform_data omap4_panda_twldata = {
 	.vaux1		= &omap4_panda_vaux1,
 	.vaux2		= &omap4_panda_vaux2,
 	.vaux3		= &omap4_panda_vaux3,
+	.clk32kg	= &omap4_panda_clk32kg,
 	.usb		= &omap4_usbphy_data,
 };
 
-- 
1.7.0.4


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

* Re: [PATCH 2/2] OMAP4: add clk32kg data to omap4panda and blaze board file
  2011-02-09 15:37 [PATCH 2/2] OMAP4: add clk32kg data to omap4panda and blaze board file Balaji T K
@ 2011-02-09 15:45 ` Mark Brown
  2011-02-09 16:45   ` Krishnamoorthy, Balaji T
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2011-02-09 15:45 UTC (permalink / raw)
  To: Balaji T K; +Cc: tony, linux-omap, lrg, sameo

On Wed, Feb 09, 2011 at 09:07:31PM +0530, Balaji T K wrote:

> +	.constraints = {
> +		.valid_modes_mask	= REGULATOR_MODE_NORMAL
> +					| REGULATOR_MODE_STANDBY,
> +		.valid_ops_mask		= REGULATOR_CHANGE_MODE
> +					| REGULATOR_CHANGE_STATUS,

Does this really support mode setting?

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

* Re: [PATCH 2/2] OMAP4: add clk32kg data to omap4panda and blaze board file
  2011-02-09 15:45 ` Mark Brown
@ 2011-02-09 16:45   ` Krishnamoorthy, Balaji T
  0 siblings, 0 replies; 3+ messages in thread
From: Krishnamoorthy, Balaji T @ 2011-02-09 16:45 UTC (permalink / raw)
  To: Mark Brown; +Cc: tony, linux-omap, lrg, sameo

On Wed, Feb 9, 2011 at 9:15 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Wed, Feb 09, 2011 at 09:07:31PM +0530, Balaji T K wrote:
>
>> +     .constraints = {
>> +             .valid_modes_mask       = REGULATOR_MODE_NORMAL
>> +                                     | REGULATOR_MODE_STANDBY,
>> +             .valid_ops_mask         = REGULATOR_CHANGE_MODE
>> +                                     | REGULATOR_CHANGE_STATUS,
>
> Does this really support mode setting?
>

No, It didn't support mode setting.
will update valid_ops_mask for REGULATOR_CHANGE_STATUS only
and remove valid_modes_mask
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-02-09 16:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 15:37 [PATCH 2/2] OMAP4: add clk32kg data to omap4panda and blaze board file Balaji T K
2011-02-09 15:45 ` Mark Brown
2011-02-09 16:45   ` Krishnamoorthy, Balaji T

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