summaryrefslogtreecommitdiff
path: root/include/nios2-epcs.h
diff options
context:
space:
mode:
authorScott McNutt <smcnutt@psyent.com>2006-06-08 12:08:12 -0400
committerScott McNutt <smcnutt@psyent.com>2006-06-08 12:08:12 -0400
commit1f6ce8f5ba013b9cfd2b8f9cea051d70f3b1bc43 (patch)
treec3334c350ad666a82f7a00797c8b86d26a6017d1 /include/nios2-epcs.h
parent3d22d0b89bb3d669e27ff98d15ab013fbe04ee87 (diff)
downloadu-boot-imx-1f6ce8f5ba013b9cfd2b8f9cea051d70f3b1bc43.zip
u-boot-imx-1f6ce8f5ba013b9cfd2b8f9cea051d70f3b1bc43.tar.gz
u-boot-imx-1f6ce8f5ba013b9cfd2b8f9cea051d70f3b1bc43.tar.bz2
Nios II - Add EPCS Controller bootrom work-around
-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. Patch by Scott McNutt, 08 Jun 2006
Diffstat (limited to 'include/nios2-epcs.h')
-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.
*/