MPC837x: set i2c1_clk
PATCH v2 1/1 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.
---
Changes for v2:
- fix commit message mangling in subject line.
arch/powerpc/cpu/mpc83xx/speed.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/cpu/mpc83xx/speed.c +2 -0
@@ -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 */
Signature · 1 line
1.7.0.4
PATCH v2 1/1 MPC837x: set i2c1_clk
Quoted 9 lines · On Thu, 14 Apr 2011 14:57:40 +0200 Andre Schwarz…
Running on mpc837x without
CONFIG_FSL_ESDHCleads toi2c1_clknot being set at all. It is bound to clock of encryption module. fix this.Signed-off-by Andre Schwarz <[email protected]>---
Changes for v2:
- fix commit message mangling in subject line.
thanks for listing change matter, subsequent versions of patches should inherit prior versions "In-reply-to:" and "References:" headers.
Quoted 8 lines
arch/powerpc/cpu/mpc83xx/speed.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)arch/powerpc/cpu/mpc83xx/speed.c +0
-0
arch/powerpc/cpu/mpc83xx/speed.c int get_clocks(void) · line 332
Quoted 6 lines
arch/powerpc/cpu/mpc83xx/speed.c +2
-0@@ -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
can you consolidate this and the other i2c1_clk-to-enc_clk assignments in one #elif defined(...) || defined(...), etc.
not sure if the FSL_ESDHC ifdef would need to be moved above that.
btw, subjects in this patchseries should be of the form [PATCH x/y].
Thanks,
Kim
PATCH v2 1/1 MPC837x: set i2c1_clk
In reply to Andre SchwarzQuoted 7 lines · On Thu, 14 Apr 2011 14:57:40 +0200 Andre Schwarz…
Running on mpc837x without
CONFIG_FSL_ESDHCleads toi2c1_clknot being set at all. It is bound to clock of encryption module. fix this.Signed-off-by Andre Schwarz <[email protected]>---
applied to u-boot-mpc83xx.
Thanks,
Kim