summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-11-09 14:13:43 +0100
committerStefan Roese <sr@denx.de>2009-11-10 15:09:28 +0100
commitcdaed5dc31f4023610f180fe158ec8c6f5e855a3 (patch)
tree38e92b63d1dcf9e16d92acc7992253b76681c2cf /cpu
parent985edaccc4fbaef6d357d104aed08f839058a32f (diff)
downloadu-boot-imx-cdaed5dc31f4023610f180fe158ec8c6f5e855a3.zip
u-boot-imx-cdaed5dc31f4023610f180fe158ec8c6f5e855a3.tar.gz
u-boot-imx-cdaed5dc31f4023610f180fe158ec8c6f5e855a3.tar.bz2
ppc4xx: Switch to I2C bus numer 0 for chip_config command
All currently available 4xx derivats have the I2C bootstrap EEPROM located on I2C bus number 0. This patch now first sets this bus number, so that the chip_config command also works for board with multiple I2C busses, like Katmai. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/ppc4xx/cmd_chip_config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpu/ppc4xx/cmd_chip_config.c b/cpu/ppc4xx/cmd_chip_config.c
index d360d5b..ba57211 100644
--- a/cpu/ppc4xx/cmd_chip_config.c
+++ b/cpu/ppc4xx/cmd_chip_config.c
@@ -52,6 +52,12 @@ static int do_chip_config(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
int cur_config_nr = -1;
u8 cur_config[CONFIG_4xx_CONFIG_BLOCKSIZE];
+ /*
+ * First switch to correct I2C bus. This is I2C bus 0
+ * for all currently available 4xx derivats.
+ */
+ I2C_SET_BUS(0);
+
#ifdef CONFIG_CMD_EEPROM
ret = eeprom_read(CONFIG_4xx_CONFIG_I2C_EEPROM_ADDR,
CONFIG_4xx_CONFIG_I2C_EEPROM_OFFSET,