summaryrefslogtreecommitdiff
path: root/lib_nios2
diff options
context:
space:
mode:
authorHeiko Schocher <hs@pollux.denx.de>2006-04-20 12:49:05 +0200
committerHeiko Schocher <hs@pollux.denx.de>2006-04-20 12:49:05 +0200
commit7fd392c2d0b27e372a1771e0bda877820b30d6e0 (patch)
tree71222692aef61104cb12e504846e354bc83a6555 /lib_nios2
parent60e270a4903b3379d6859418d99aeef1d0d0cdff (diff)
downloadu-boot-imx-7fd392c2d0b27e372a1771e0bda877820b30d6e0.zip
u-boot-imx-7fd392c2d0b27e372a1771e0bda877820b30d6e0.tar.gz
u-boot-imx-7fd392c2d0b27e372a1771e0bda877820b30d6e0.tar.bz2
* Add EPCS Controller bootrom work-around for Nios-II
Patch from Scott McNutt 11, Aug 2005 -When booting from an epcs controller, the epcs bootrom may leave the slave select in an asserted state causing soft reset hang. This patch ensures slave select is negated at reset.
Diffstat (limited to 'lib_nios2')
-rw-r--r--lib_nios2/board.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib_nios2/board.c b/lib_nios2/board.c
index cd23037..7ffb3f0 100644
--- a/lib_nios2/board.c
+++ b/lib_nios2/board.c
@@ -31,6 +31,9 @@
#ifdef CONFIG_STATUS_LED
#include <status_led.h>
#endif
+#if defined(CFG_NIOS_EPCSBASE)
+#include <nios2-epcs.h>
+#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -93,6 +96,9 @@ init_fnc_t *init_sequence[] = {
#if defined(CONFIG_BOARD_EARLY_INIT_F)
board_early_init_f, /* Call board-specific init code early.*/
#endif
+#if defined(CFG_NIOS_EPCSBASE)
+ epcs_reset,
+#endif
env_init,
serial_init,
@@ -165,6 +171,10 @@ void board_init (void)
WATCHDOG_RESET ();
interrupt_init ();
+#if defined(CONFIG_BOARD_LATE_INIT)
+ board_late_init ();
+#endif
+
/* main_loop */
for (;;) {
WATCHDOG_RESET ();