summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/nios2-epcs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nios2-epcs.h b/include/nios2-epcs.h
index 2c9522c..20e0c87 100644
--- a/include/nios2-epcs.h
+++ b/include/nios2-epcs.h
@@ -38,6 +38,11 @@ typedef struct epcs_devinfo_t {
unsigned char prot_mask; /* Protection mask */
}epcs_devinfo_t;
+/* Resets the epcs controller -- to prevent (potential) soft-reset
+ * problems when booting from the epcs controller
+ */
+extern int epcs_reset (void);
+
/* Returns the devinfo struct if EPCS device is found;
* NULL otherwise.
*/