mpc83xx: Add config of eTSEC emergency priority in SPCR
authorDave Liu <r63238@freescale.com>
Fri, 11 Jan 2008 10:46:50 +0000 (18:46 +0800)
committerKim Phillips <kim.phillips@freescale.com>
Wed, 16 Jan 2008 18:00:49 +0000 (12:00 -0600)
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: Dave Liu <daveliu@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
cpu/mpc83xx/cpu_init.c

index 2b92be01ad912e51c0bceac61c4d321e7ea986ac..18d5a76cf39888d45f13f627fc843ab1d8c91b43 100644 (file)
@@ -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);