]> git.sur5r.net Git - u-boot/blobdiff - board/gateworks/gw_ventana/ventana_eeprom.h
Merge git://git.denx.de/u-boot-spi
[u-boot] / board / gateworks / gw_ventana / ventana_eeprom.h
index 434b604542045537b85bfc2d5e66f2702ea4f967..8a42d67ba190f8b0266ff3ee47492cb11c1325e5 100644 (file)
@@ -103,4 +103,32 @@ enum {
        EECONFIG_RES15,
 };
 
+enum {
+       GW54proto, /* original GW5400-A prototype */
+       GW51xx,
+       GW52xx,
+       GW53xx,
+       GW54xx,
+       GW551x,
+       GW552x,
+       GW553x,
+       GW560x,
+       GW5903,
+       GW5904,
+       GW_UNKNOWN,
+       GW_BADCRC,
+};
+
+/* config items */
+struct ventana_eeprom_config {
+       const char *name;       /* name of item */
+       const char *dtalias;    /* name of dt node to remove if not set */
+       int bit;                /* bit within config */
+};
+
+extern struct ventana_eeprom_config econfig[];
+extern struct ventana_board_info ventana_info;
+
+int read_eeprom(int bus, struct ventana_board_info *);
+
 #endif