Patchwork [U-Boot] powerpc/85xx: Corrected sdhc clock value for P1010

login
register
mail settings
Submitter Kumar Gala
Date March 7, 2011, 4:15 a.m.
Message ID <1299471359-26364-4-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/85656/
State Accepted
Commit 7d640e9bdf5e38f7f40f8becc47dc4036943f01a
Delegated to: Kumar Gala
Headers show

Comments

Kumar Gala - March 7, 2011, 4:15 a.m.
From: Priyanka Jain <Priyanka.Jain@freescale.com>

SDHC clock is equal to CCB on P1010 and P1014 not CCB/2.

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
Signed-off-by: Poonam Aggrwal <Poonam.Aggrwal@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/cpu/mpc85xx/speed.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Kumar Gala - March 25, 2011, 1:36 p.m.
On Mar 6, 2011, at 10:15 PM, Kumar Gala wrote:

> From: Priyanka Jain <Priyanka.Jain@freescale.com>
> 
> SDHC clock is equal to CCB on P1010 and P1014 not CCB/2.
> 
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> Signed-off-by: Poonam Aggrwal <Poonam.Aggrwal@freescale.com>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> arch/powerpc/cpu/mpc85xx/speed.c |    3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)

applied to 85xx next

- k

Patch

diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c
index 9d749c3..faca451 100644
--- a/arch/powerpc/cpu/mpc85xx/speed.c
+++ b/arch/powerpc/cpu/mpc85xx/speed.c
@@ -262,7 +262,8 @@  int get_clocks (void)
 	gd->i2c2_clk = gd->i2c1_clk;
 
 #if defined(CONFIG_FSL_ESDHC)
-#ifdef CONFIG_MPC8569
+#if defined(CONFIG_MPC8569) || defined(CONFIG_P1010) ||\
+       defined(CONFIG_P1014)
 	gd->sdhc_clk = gd->bus_clk;
 #else
 	gd->sdhc_clk = gd->bus_clk / 2;