* [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency
@ 2012-05-01 22:50 Lucas Stach
2012-05-02 15:22 ` Stephen Warren
2012-05-03 0:14 ` Marek Vasut
0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2012-05-01 22:50 UTC (permalink / raw)
To: u-boot
This is needed for upcoming Toradex Colibri T20 upstream support.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
arch/arm/cpu/armv7/tegra2/clock.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv7/tegra2/clock.c b/arch/arm/cpu/armv7/tegra2/clock.c
index 39376ab..8084631 100644
--- a/arch/arm/cpu/armv7/tegra2/clock.c
+++ b/arch/arm/cpu/armv7/tegra2/clock.c
@@ -1027,7 +1027,10 @@ void clock_early_init(void)
clock_set_rate(CLOCK_ID_CGENERAL, 600, 26, 0, 8);
break;
- case CLOCK_OSC_FREQ_13_0:
+ case CLOCK_OSC_FREQ_13_0: /* OSC is 13Mhz */
+ clock_set_rate(CLOCK_ID_PERIPH, 432, 13, 1, 8);
+ clock_set_rate(CLOCK_ID_CGENERAL, 600, 13, 0, 8);
+ break;
case CLOCK_OSC_FREQ_19_2:
default:
/*
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency
2012-05-01 22:50 [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency Lucas Stach
@ 2012-05-02 15:22 ` Stephen Warren
2012-05-03 0:14 ` Marek Vasut
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Warren @ 2012-05-02 15:22 UTC (permalink / raw)
To: u-boot
On 05/01/2012 04:50 PM, Lucas Stach wrote:
> This is needed for upcoming Toradex Colibri T20 upstream support.
You probably want to CC the Tegra maintainer, so he notices this patch.
I've done so here.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency
2012-05-01 22:50 [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency Lucas Stach
2012-05-02 15:22 ` Stephen Warren
@ 2012-05-03 0:14 ` Marek Vasut
1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2012-05-03 0:14 UTC (permalink / raw)
To: u-boot
Dear Lucas Stach,
> This is needed for upcoming Toradex Colibri T20 upstream support.
Neat, you're doing support for this board? That'd be great to have :) Keep me in
CC, I have one and I'd be glad to review patches. (I hope you noticed the work
of antmicro on the tegra/u-boot)
>
> Signed-off-by: Lucas Stach <dev@lynxeye.de>
> ---
> arch/arm/cpu/armv7/tegra2/clock.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/armv7/tegra2/clock.c
> b/arch/arm/cpu/armv7/tegra2/clock.c index 39376ab..8084631 100644
> --- a/arch/arm/cpu/armv7/tegra2/clock.c
> +++ b/arch/arm/cpu/armv7/tegra2/clock.c
> @@ -1027,7 +1027,10 @@ void clock_early_init(void)
> clock_set_rate(CLOCK_ID_CGENERAL, 600, 26, 0, 8);
> break;
>
> - case CLOCK_OSC_FREQ_13_0:
> + case CLOCK_OSC_FREQ_13_0: /* OSC is 13Mhz */
> + clock_set_rate(CLOCK_ID_PERIPH, 432, 13, 1, 8);
> + clock_set_rate(CLOCK_ID_CGENERAL, 600, 13, 0, 8);
> + break;
> case CLOCK_OSC_FREQ_19_2:
> default:
> /*
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-03 0:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-01 22:50 [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency Lucas Stach
2012-05-02 15:22 ` Stephen Warren
2012-05-03 0:14 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox