From 19f0e93041dbfe22f8d39b98e4f7f9ea87b77803 Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Tue, 24 Feb 2009 11:30:34 +0100 Subject: 83xx, kmeter1: add I2C, dtt, eeprom support This patch adds I2C support for the Keymile kmeter1 board. It uses the First I2C Controller from the CPU, for accessing 4 temperature sensors, an eeprom with IVM data and the booteeprom over a pca9547 mux. Signed-off-by: Heiko Schocher Signed-off-by: Kim Phillips --- board/keymile/common/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/keymile/common') diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c index 1338950814..48ce613b7e 100644 --- a/board/keymile/common/common.c +++ b/board/keymile/common/common.c @@ -318,7 +318,7 @@ int ivm_read_eeprom (void) if (buf != NULL) dev_addr = simple_strtoul ((char *)buf, NULL, 16); - if (eeprom_read (dev_addr, 0, i2c_buffer, CONFIG_SYS_IVM_EEPROM_MAX_LEN) != 0) { + if (i2c_read(dev_addr, 0, 1, i2c_buffer, CONFIG_SYS_IVM_EEPROM_MAX_LEN) != 0) { printf ("Error reading EEprom\n"); return -2; } -- cgit v1.2.1