]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MPC837x: set i2c1_clk
authorAndre Schwarz <andre.schwarz@matrix-vision.de>
Thu, 14 Apr 2011 12:57:40 +0000 (14:57 +0200)
committerKim Phillips <kim.phillips@freescale.com>
Thu, 7 Jul 2011 00:09:27 +0000 (19:09 -0500)
 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 <andre.schwarz@matrix-vision.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
arch/powerpc/cpu/mpc83xx/speed.c

index 5e616dda7aeb5c625e1f392baa7c693b75a905b1..1eca1a8f2636b7a2ee1096aa4a0cb597d56e5f87 100644 (file)
@@ -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 */