* [U-Boot] arm, am335x: make mpu pll config configurable
@ 2013-06-04 9:01 Heiko Schocher
2013-06-04 21:29 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: Heiko Schocher @ 2013-06-04 9:01 UTC (permalink / raw)
To: u-boot
upcoming support for siemens boards switches mpu pll clk in board
code. So make this configurable.
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
---
arch/arm/cpu/armv7/am33xx/clock_am33xx.c | 9 +++++++--
arch/arm/include/asm/arch-am33xx/sys_proto.h | 1 +
2 Dateien ge?ndert, 8 Zeilen hinzugef?gt(+), 2 Zeilen entfernt(-)
diff --git a/arch/arm/cpu/armv7/am33xx/clock_am33xx.c b/arch/arm/cpu/armv7/am33xx/clock_am33xx.c
index a1efc75..9c4d0b4 100644
--- a/arch/arm/cpu/armv7/am33xx/clock_am33xx.c
+++ b/arch/arm/cpu/armv7/am33xx/clock_am33xx.c
@@ -246,7 +246,7 @@ static void enable_per_clocks(void)
;
}
-static void mpu_pll_config(void)
+void mpu_pll_config_val(int mpull_m)
{
u32 clkmode, clksel, div_m2;
@@ -260,7 +260,7 @@ static void mpu_pll_config(void)
;
clksel = clksel & (~CLK_SEL_MASK);
- clksel = clksel | ((MPUPLL_M << CLK_SEL_SHIFT) | MPUPLL_N);
+ clksel = clksel | ((mpull_m << CLK_SEL_SHIFT) | MPUPLL_N);
writel(clksel, &cmwkup->clkseldpllmpu);
div_m2 = div_m2 & ~CLK_DIV_MASK;
@@ -274,6 +274,11 @@ static void mpu_pll_config(void)
;
}
+static void mpu_pll_config(void)
+{
+ mpu_pll_config_val(CONFIG_SYS_MPUCLK);
+}
+
static void core_pll_config(void)
{
u32 clkmode, clksel, div_m4, div_m5, div_m6;
diff --git a/arch/arm/include/asm/arch-am33xx/sys_proto.h b/arch/arm/include/asm/arch-am33xx/sys_proto.h
index 2422924..fbeff1a 100644
--- a/arch/arm/include/asm/arch-am33xx/sys_proto.h
+++ b/arch/arm/include/asm/arch-am33xx/sys_proto.h
@@ -31,6 +31,7 @@ int print_cpuinfo(void);
extern struct ctrl_stat *cstat;
u32 get_device_type(void);
void setup_clocks_for_console(void);
+void mpu_pll_config_val(int mpull_m);
void ddr_pll_config(unsigned int ddrpll_M);
void sdelay(unsigned long);
--
1.7.11.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] arm, am335x: make mpu pll config configurable
2013-06-04 9:01 [U-Boot] arm, am335x: make mpu pll config configurable Heiko Schocher
@ 2013-06-04 21:29 ` Tom Rini
2013-06-05 5:26 ` Heiko Schocher
0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2013-06-04 21:29 UTC (permalink / raw)
To: u-boot
On Tue, Jun 04, 2013 at 11:01:06AM +0200, Heiko Schocher wrote:
> upcoming support for siemens boards switches mpu pll clk in board
> code. So make this configurable.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Tom Rini <trini@ti.com>
Wait, didn't we already something like this posted?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130604/998acda8/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] arm, am335x: make mpu pll config configurable
2013-06-04 21:29 ` Tom Rini
@ 2013-06-05 5:26 ` Heiko Schocher
2013-06-06 15:33 ` Tom Rini
0 siblings, 1 reply; 4+ messages in thread
From: Heiko Schocher @ 2013-06-05 5:26 UTC (permalink / raw)
To: u-boot
Hello Tom,
Am 04.06.2013 23:29, schrieb Tom Rini:
> On Tue, Jun 04, 2013 at 11:01:06AM +0200, Heiko Schocher wrote:
>
>> upcoming support for siemens boards switches mpu pll clk in board
>> code. So make this configurable.
>>
>> Signed-off-by: Heiko Schocher <hs@denx.de>
>> Cc: Tom Rini <trini@ti.com>
>
> Wait, didn't we already something like this posted?
Hmm.. did not found something like that, but maybe I missed it.
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] arm, am335x: make mpu pll config configurable
2013-06-05 5:26 ` Heiko Schocher
@ 2013-06-06 15:33 ` Tom Rini
0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2013-06-06 15:33 UTC (permalink / raw)
To: u-boot
On Wed, Jun 05, 2013 at 07:26:45AM +0200, Heiko Schocher wrote:
> Hello Tom,
>
> Am 04.06.2013 23:29, schrieb Tom Rini:
> > On Tue, Jun 04, 2013 at 11:01:06AM +0200, Heiko Schocher wrote:
> >
> >> upcoming support for siemens boards switches mpu pll clk in board
> >> code. So make this configurable.
> >>
> >> Signed-off-by: Heiko Schocher <hs@denx.de>
> >> Cc: Tom Rini <trini@ti.com>
> >
> > Wait, didn't we already something like this posted?
>
> Hmm.. did not found something like that, but maybe I missed it.
I guess we'll chalk it up to never got posted.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130606/7a70564c/attachment.pgp>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-06 15:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-04 9:01 [U-Boot] arm, am335x: make mpu pll config configurable Heiko Schocher
2013-06-04 21:29 ` Tom Rini
2013-06-05 5:26 ` Heiko Schocher
2013-06-06 15:33 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox