summaryrefslogtreecommitdiff
path: root/board/gateworks/gw_ventana/ventana_eeprom.h
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2014-08-07 22:35:45 -0700
committerStefano Babic <sbabic@denx.de>2014-08-20 13:08:37 +0200
commit9c0fe83eb58ed9cb9faa17646719240abe55f4bf (patch)
treef8be9487b5efae8454b510a6f9ed004dc11deeb0 /board/gateworks/gw_ventana/ventana_eeprom.h
parent6a9032112e1bca8bab974b5da9a03b37d49538a6 (diff)
imx: ventana: add econfig command
The Gateworks Ventana EEPROM contains a set of configuration bits that affect the removal of device-tree nodes that support peripherals that do not exist on sub-loaded boards. This patch adds: - a structure to define a config bit name, dt node alias, bit position - an array of supported configuration items - an econfig command to get/set/list configuration bits - use of the array when adjusting the FDT prior to boot Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board/gateworks/gw_ventana/ventana_eeprom.h')
-rw-r--r--board/gateworks/gw_ventana/ventana_eeprom.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/gateworks/gw_ventana/ventana_eeprom.h b/board/gateworks/gw_ventana/ventana_eeprom.h
index 5b065bea4e..d64b9107c6 100644
--- a/board/gateworks/gw_ventana/ventana_eeprom.h
+++ b/board/gateworks/gw_ventana/ventana_eeprom.h
@@ -110,8 +110,19 @@ enum {
GW53xx,
GW54xx,
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