diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-05-05 02:07:44 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-05 04:18:18 -0400 |
commit | ce53fc660114a2c23e6e8adbc197008b36ca444d (patch) | |
tree | d898edc3bee4b2ffdf7cda31975ce6483c45c565 /arch/blackfin/cpu/cpu.c | |
parent | 53ea1505bb0686e041b6cf14e1fc4f87de04e887 (diff) | |
download | u-boot-imx-ce53fc660114a2c23e6e8adbc197008b36ca444d.zip u-boot-imx-ce53fc660114a2c23e6e8adbc197008b36ca444d.tar.gz u-boot-imx-ce53fc660114a2c23e6e8adbc197008b36ca444d.tar.bz2 |
Blackfin: set up simple NMI handlers for anomaly 05000219
Older on-chip Blackfin bootroms do not create a dummy NMI handler, so set
up one ourselves when anomaly 05000219 applies.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/cpu.c')
-rw-r--r-- | arch/blackfin/cpu/cpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/blackfin/cpu/cpu.c b/arch/blackfin/cpu/cpu.c index 2c8fd86..18dbdf7 100644 --- a/arch/blackfin/cpu/cpu.c +++ b/arch/blackfin/cpu/cpu.c @@ -91,7 +91,9 @@ int irq_init(void) #else bfin_write_SIC_IMASK(0); #endif - bfin_write_EVT2(evt_default); /* NMI */ + /* Set up a dummy NMI handler if needed. */ + if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_BYPASS || ANOMALY_05000219) + bfin_write_EVT2(evt_nmi); /* NMI */ bfin_write_EVT5(evt_default); /* hardware error */ bfin_write_EVT6(evt_default); /* core timer */ bfin_write_EVT7(evt_default); |