From: Andre Schwarz Date: Thu, 14 Apr 2011 12:57:40 +0000 (+0200) Subject: MPC837x: set i2c1_clk X-Git-Tag: v2011.09-rc1~258 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1bda1624b07ee1dff1a3e53c4a0c48f20ae4ec16;p=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. Signed-off-by: Andre Schwarz Signed-off-by: Kim Phillips --- diff --git a/arch/powerpc/cpu/mpc83xx/speed.c b/arch/powerpc/cpu/mpc83xx/speed.c index 5e616dda7a..1eca1a8f26 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 */