Skip to content
Snippets Groups Projects
Commit b05884ef authored by Dave Liu's avatar Dave Liu Committed by Kim Phillips
Browse files

mpc83xx: Add config of eTSEC emergency priority in SPCR


The TSEC emergency priority definition of 831x/837x
is different than the definition of 834x in SPCR register.

Add the other config of TSEC emergency priority into
cpu_init.c

Signed-off-by: default avatarDave Liu <daveliu@freescale.com>
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
parent 9b958234
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,11 @@ void cpu_init_f (volatile immap_t * im) ...@@ -73,6 +73,11 @@ void cpu_init_f (volatile immap_t * im)
(CFG_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT); (CFG_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
#endif #endif
#ifdef CFG_SPCR_TSECEP
/* eTSEC Emergency priority */
im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSECEP) | (CFG_SPCR_TSECEP << SPCR_TSECEP_SHIFT);
#endif
#ifdef CFG_SPCR_TSEC1EP #ifdef CFG_SPCR_TSEC1EP
/* TSEC1 Emergency priority */ /* TSEC1 Emergency priority */
im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC1EP) | (CFG_SPCR_TSEC1EP << SPCR_TSEC1EP_SHIFT); im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC1EP) | (CFG_SPCR_TSEC1EP << SPCR_TSEC1EP_SHIFT);
......
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