summaryrefslogtreecommitdiff
path: root/include/configs
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 /include/configs
parent6a9032112e1bca8bab974b5da9a03b37d49538a6 (diff)
downloadu-boot-imx-9c0fe83eb58ed9cb9faa17646719240abe55f4bf.zip
u-boot-imx-9c0fe83eb58ed9cb9faa17646719240abe55f4bf.tar.gz
u-boot-imx-9c0fe83eb58ed9cb9faa17646719240abe55f4bf.tar.bz2
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 'include/configs')
-rw-r--r--include/configs/gw_ventana.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h
index 8197a72..b991b09 100644
--- a/include/configs/gw_ventana.h
+++ b/include/configs/gw_ventana.h
@@ -95,7 +95,9 @@
#define CONFIG_CMD_I2C
#define CONFIG_SYS_I2C
#define CONFIG_SYS_I2C_MXC
-#define CONFIG_SYS_I2C_SPEED 100000
+#define CONFIG_SYS_I2C_SPEED 100000
+#define CONFIG_I2C_GSC 0
+#define CONFIG_I2C_PMIC 1
/* MMC Configs */
#define CONFIG_FSL_ESDHC
@@ -164,6 +166,7 @@
#define CONFIG_CMD_SETEXPR
#define CONFIG_CMD_BOOTZ
#define CONFIG_CMD_GSC
+#define CONFIG_CMD_EECONFIG /* Gateworks EEPROM config cmd */
#define CONFIG_CMD_UBI
#define CONFIG_RBTREE
#define CONFIG_LZO