Skip to contentSkip to conversation

mpc83xx: Add config of eTSEC emergency priority in SPCR

PATCH New Dave Liu 2 participants 2 messages Jan 11, 2008 – Jan 14, 2008

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 3/4 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

---
 cpu/mpc83xx/cpu_init.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
cpu/mpc83xx/cpu_init.c +5 -0
index 2b92be0..18d5a76 100644
@@ -73,6 +73,11 @@ void cpu_init_f (volatile immap_t * im)
 			  (CFG_ACR_PIPE_DEP << ACR_PIPE_DEP_SHIFT);
 #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
 	/* TSEC1 Emergency priority */
 	im->sysconf.spcr = (im->sysconf.spcr & ~SPCR_TSEC1EP) | (CFG_SPCR_TSEC1EP << SPCR_TSEC1EP_SHIFT);
Signature · 1 line
1.5.3.5.643.g40e25
Applied
#1 lore raw

PATCH 3/4 mpc83xx: Add config of eTSEC emergency priority in SPCR

Quoted 8 lines · On Fri, 11 Jan 2008 18:46:50 +0800 Dave Liu <[email protected]> wrote:

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

---

applied.

Thanks,

Kim