Skip to content
Snippets Groups Projects
Commit b581626c authored by Norbert van Bolhuis's avatar Norbert van Bolhuis Committed by Kim Phillips
Browse files

mpc83xx: correctly set encryption and I2C bus 0 clock


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.

Signed-off-by: default avatarNorbert van Bolhuis <nvbolhuis@aimvalley.nl>
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
parent 3c922177
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ void cpu_init_f (volatile immap_t * im) ...@@ -106,7 +106,7 @@ void cpu_init_f (volatile immap_t * im)
#ifdef CONFIG_SYS_SCCR_ENCCM #ifdef CONFIG_SYS_SCCR_ENCCM
/* Encryption clock mode */ /* Encryption clock mode */
im->clk.sccr = (im->clk.sccr & ~SCCR_ENCCM) | im->clk.sccr = (im->clk.sccr & ~SCCR_ENCCM) |
(CONFIG_SYS_SCCR_ENCCM << SCCR_PCICM_SHIFT); (CONFIG_SYS_SCCR_ENCCM << SCCR_ENCCM_SHIFT);
#endif #endif
#ifdef CONFIG_SYS_SCCR_PCICM #ifdef CONFIG_SYS_SCCR_PCICM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment