X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fnios2-epcs.h;h=325cf71f67159a526a3c412903ac7b2ca0050fd1;hb=9c90a2c8e87414007a016b7cd099ac1e32fd301b;hp=2c9522cfd8975684d3239353a04fe132f47cbdac;hpb=0c1c117cf18ffa3fdc0342dfc47c6003fc5fc5a0;p=u-boot diff --git a/include/nios2-epcs.h b/include/nios2-epcs.h index 2c9522cfd8..325cf71f67 100644 --- a/include/nios2-epcs.h +++ b/include/nios2-epcs.h @@ -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. */