All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] 83xx: correctly set encryption and I2C bus 0 clock
@ 2009-03-11  7:27 Norbert van Bolhuis
  2009-03-11  8:33 ` Heiko Schocher
  0 siblings, 1 reply; 9+ messages in thread
From: Norbert van Bolhuis @ 2009-03-11  7:27 UTC (permalink / raw)
  To: u-boot

This patch makes sure the correct mask is applied when setting
the encryption and I2C bus 0 clock in SCCR.
Failing to do so may lead to ENCCM being 0 in which case I2C bus 0
won't function.


--- cpu/mpc83xx/cpu_init.c.org  2009-03-11 07:56:57.000000000 +0100
+++ cpu/mpc83xx/cpu_init.c      2009-03-11 07:57:37.000000000 +0100
@@ -106,7 +106,7 @@ void cpu_init_f (volatile immap_t * im)
  #ifdef CONFIG_SYS_SCCR_ENCCM
         /* Encryption clock mode */
         im->clk.sccr = (im->clk.sccr & ~SCCR_ENCCM) |
-                      (CONFIG_SYS_SCCR_ENCCM << SCCR_PCICM_SHIFT);
+                      (CONFIG_SYS_SCCR_ENCCM << SCCR_ENCCM_SHIFT);
  #endif

  #ifdef CONFIG_SYS_SCCR_PCICM


Signed-off-by: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-14 23:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-11  7:27 [U-Boot] [PATCH] 83xx: correctly set encryption and I2C bus 0 clock Norbert van Bolhuis
2009-03-11  8:33 ` Heiko Schocher
2009-03-11 17:57   ` Kim Phillips
2009-03-11 18:22     ` Scott Wood
2009-03-11 20:05       ` Kim Phillips
2009-03-12  6:57         ` Norbert van Bolhuis
2009-03-12 10:06           ` Wolfgang Denk
2009-03-13  7:58             ` Norbert van Bolhuis
2009-03-14 23:01               ` Kim Phillips

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.