]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/nios2-epcs.h
Merge branch 'master' of git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / include / nios2-epcs.h
index 2c9522cfd8975684d3239353a04fe132f47cbdac..325cf71f67159a526a3c412903ac7b2ca0050fd1 100644 (file)
@@ -29,7 +29,7 @@
 #define __NIOS2_EPCS_H__
 
 typedef struct epcs_devinfo_t {
-       const char      *name;          /* Device name */
+       const char      *name;          /* Device name */
        unsigned char   id;             /* Device silicon id */
        unsigned char   size;           /* Total size log2(bytes)*/
        unsigned char   num_sects;      /* Number of sectors */
@@ -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.
  */