diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2013-05-06 02:54:38 +0000 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2013-07-23 08:34:56 +0200 |
commit | 67bfae36fa365f911fa258b44eb65ca29d1bad03 (patch) | |
tree | 217bbdcc83b32dc878680573a242fae5ed44e190 /include/configs/km/km_arm.h | |
parent | 880540decfb855e96bc14ac84ac7784669e4b382 (diff) | |
download | u-boot-imx-67bfae36fa365f911fa258b44eb65ca29d1bad03.zip u-boot-imx-67bfae36fa365f911fa258b44eb65ca29d1bad03.tar.gz u-boot-imx-67bfae36fa365f911fa258b44eb65ca29d1bad03.tar.bz2 |
arm/km: fix u-boot update functionality
Due to the new I2C framework we need to adapt the u-boot update
function. Due to the new framework all i2c leafs behind a mux are
present in the system and not only those who are defined and used. So it
is bus number 5 after the rework.
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
cc: Heiko Schocher <hs@denx.de>
cc: Prafulla Wadaskar <prafulla@marvell.com>
Diffstat (limited to 'include/configs/km/km_arm.h')
-rw-r--r-- | include/configs/km/km_arm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h index ebbfa84..4da54d5 100644 --- a/include/configs/km/km_arm.h +++ b/include/configs/km/km_arm.h @@ -295,7 +295,8 @@ int get_scl(void); #else #define CONFIG_KM_NEW_ENV \ "newenv=setenv addr 0x100000 && " \ - "i2c dev 1; mw.b ${addr} 0 4 && " \ + "i2c dev " __stringify(CONFIG_I2C_ENV_EEPROM_BUS) "; " \ + "mw.b ${addr} 0 4 && " \ "eeprom write " __stringify(CONFIG_SYS_DEF_EEPROM_ADDR) \ " ${addr} " __stringify(CONFIG_ENV_OFFSET) " 4 && " \ "eeprom write " __stringify(CONFIG_SYS_DEF_EEPROM_ADDR) \ |