* [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap
[not found] <[RFC][PATCH 0/9] OMAP4: Add 4460 base support>
@ 2011-05-26 3:41 ` Nishanth Menon
2011-05-26 3:46 ` Pandita, Vikram
0 siblings, 1 reply; 3+ messages in thread
From: Nishanth Menon @ 2011-05-26 3:41 UTC (permalink / raw)
To: linux-omap; +Cc: Nishanth Menon
OMAP4430 and 4460 have slightly different functional clocks.
we need to map this back into hwmod database as well to ensure
sanity.
Signed-off-by: Nishanth Menon <nm@ti.com>
---
Depends on the series posted earlier for http://marc.info/?l=linux-omap&m=130637503008641&w=2
missed tracking this down after a last min update :(
Boot tested on both SDP4430 and SDP4460
arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 30 ++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index 27319c4..9ac9cac 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -762,11 +762,11 @@ static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
};
/* bandgap */
-static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
+static struct omap_hwmod_opt_clk bandgap443x_opt_clks[] = {
{ .role = "fclk", .clk = "bandgap_fclk" },
};
-static struct omap_hwmod omap44xx_bandgap_hwmod = {
+static struct omap_hwmod omap443x_bandgap_hwmod = {
.name = "bandgap",
.class = &omap44xx_bandgap_hwmod_class,
.prcm = {
@@ -774,9 +774,26 @@ static struct omap_hwmod omap44xx_bandgap_hwmod = {
.clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
},
},
- .opt_clks = bandgap_opt_clks,
- .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
- .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP44XX),
+ .opt_clks = bandgap443x_opt_clks,
+ .opt_clks_cnt = ARRAY_SIZE(bandgap443x_opt_clks),
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
+};
+
+static struct omap_hwmod_opt_clk bandgap446x_opt_clks[] = {
+ { .role = "fclk", .clk = "bandgap_ts_fclk" },
+};
+
+static struct omap_hwmod omap446x_bandgap_hwmod = {
+ .name = "bandgap",
+ .class = &omap44xx_bandgap_hwmod_class,
+ .prcm = {
+ .omap4 = {
+ .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
+ },
+ },
+ .opt_clks = bandgap446x_opt_clks,
+ .opt_clks_cnt = ARRAY_SIZE(bandgap446x_opt_clks),
+ .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4460),
};
/*
@@ -5074,7 +5091,8 @@ static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
/* &omap44xx_aess_hwmod, */
/* bandgap class */
- &omap44xx_bandgap_hwmod,
+ &omap443x_bandgap_hwmod,
+ &omap446x_bandgap_hwmod,
/* counter class */
/* &omap44xx_counter_32k_hwmod, */
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap
2011-05-26 3:41 ` [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap Nishanth Menon
@ 2011-05-26 3:46 ` Pandita, Vikram
2011-05-26 3:54 ` Menon, Nishanth
0 siblings, 1 reply; 3+ messages in thread
From: Pandita, Vikram @ 2011-05-26 3:46 UTC (permalink / raw)
To: Nishanth Menon; +Cc: linux-omap
On Wed, May 25, 2011 at 8:41 PM, Nishanth Menon <nm@ti.com> wrote:
> diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
<snip>
> +static struct omap_hwmod_opt_clk bandgap446x_opt_clks[] = {
> + { .role = "fclk", .clk = "bandgap_ts_fclk" },
> +};
> +
> +static struct omap_hwmod omap446x_bandgap_hwmod = {
> + .name = "bandgap",
> + .class = &omap44xx_bandgap_hwmod_class,
> + .prcm = {
> + .omap4 = {
> + .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
> + },
> + },
> + .opt_clks = bandgap446x_opt_clks,
> + .opt_clks_cnt = ARRAY_SIZE(bandgap446x_opt_clks),
> + .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4460),
Does it call for having CHIP_IS_OMAP446X instead of CHIP_IS_OMAP4460 ?
What happens when we get say es2.0 for 4460? how do you accommodate that?
Take care of that case when the new silicon arrives or fix it now :-)
--
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
* Re: [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap
2011-05-26 3:46 ` Pandita, Vikram
@ 2011-05-26 3:54 ` Menon, Nishanth
0 siblings, 0 replies; 3+ messages in thread
From: Menon, Nishanth @ 2011-05-26 3:54 UTC (permalink / raw)
To: Pandita, Vikram, Paul, Benoit Cousson; +Cc: linux-omap
On Wed, May 25, 2011 at 20:46, Pandita, Vikram <vikram.pandita@ti.com> wrote:
> On Wed, May 25, 2011 at 8:41 PM, Nishanth Menon <nm@ti.com> wrote:
>> diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
> <snip>
>> +static struct omap_hwmod_opt_clk bandgap446x_opt_clks[] = {
>> + { .role = "fclk", .clk = "bandgap_ts_fclk" },
>> +};
>> +
>> +static struct omap_hwmod omap446x_bandgap_hwmod = {
>> + .name = "bandgap",
>> + .class = &omap44xx_bandgap_hwmod_class,
>> + .prcm = {
>> + .omap4 = {
>> + .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
>> + },
>> + },
>> + .opt_clks = bandgap446x_opt_clks,
>> + .opt_clks_cnt = ARRAY_SIZE(bandgap446x_opt_clks),
>> + .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4460),
>
> Does it call for having CHIP_IS_OMAP446X instead of CHIP_IS_OMAP4460 ?
>
> What happens when we get say es2.0 for 4460? how do you accommodate that?
> Take care of that case when the new silicon arrives or fix it now :-)
Probably Paul/Benoit can state their preference.
Regards,
Nishanth Menon
--
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-05-26 3:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <[RFC][PATCH 0/9] OMAP4: Add 4460 base support>
2011-05-26 3:41 ` [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap Nishanth Menon
2011-05-26 3:46 ` Pandita, Vikram
2011-05-26 3:54 ` Menon, Nishanth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).