Patchwork [U-Boot] MPC837x: set i2c1_clk Running on mpc837x without CONFIG_FSL_ESDHC leads to i2c1_clk not being set at all. It is bound to clock of encryption module. fix this.

login
register
mail settings
Submitter Andre Schwarz
Date April 14, 2011, 12:53 p.m.
Message ID <1302785597-14449-1-git-send-email-andre.schwarz@matrix-vision.de>
Download mbox | patch
Permalink /patch/91227/
State Accepted
Commit 1bda1624b07ee1dff1a3e53c4a0c48f20ae4ec16
Headers show

Comments

Andre Schwarz - April 14, 2011, 12:53 p.m.
Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
---
 arch/powerpc/cpu/mpc83xx/speed.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Wolfgang Denk - April 30, 2011, 8:08 p.m.
Dear Andre Schwarz,

In message <1302785597-14449-1-git-send-email-andre.schwarz@matrix-vision.de> you wrote:
> 
> Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
> ---

Subject WAY TOO LONG. Please truncate, and provide a proper commit
message instead.

Best regards,

Wolfgang Denk

Patch

diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c
index 5e616dd..1eca1a8 100644
--- a/arch/powerpc/cpu/mpc83xx/speed.c
+++ b/arch/powerpc/cpu/mpc83xx/speed.c
@@ -327,6 +327,8 @@  int get_clocks(void)
 	i2c1_clk = enc_clk;
 #elif defined(CONFIG_FSL_ESDHC)
 	i2c1_clk = sdhc_clk;
+#elif defined(CONFIG_MPC837x)
+	i2c1_clk = enc_clk;
 #endif
 #if !defined(CONFIG_MPC832x)
 	i2c2_clk = csb_clk; /* i2c-2 clk is equal to csb clk */