summaryrefslogtreecommitdiff
path: root/board/keymile/common
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-03-12 07:37:34 +0100
committerWolfgang Denk <wd@denx.de>2009-03-18 20:50:05 +0100
commit1b6275dfb173bd2edb8f208dd050d6f47ae39654 (patch)
tree3a898a6950dec2d6f92778797f5c9dc41a815b17 /board/keymile/common
parentd044954fe2a7e7a3dd104eb9c9d2104e38da2911 (diff)
downloadu-boot-imx-1b6275dfb173bd2edb8f208dd050d6f47ae39654.zip
u-boot-imx-1b6275dfb173bd2edb8f208dd050d6f47ae39654.tar.gz
u-boot-imx-1b6275dfb173bd2edb8f208dd050d6f47ae39654.tar.bz2
8xx: add support for new keymile kmsupx4 board.
This patch adds support for the kmsupx4 board from Keymile, based on a Freescale MPC852T CPU - serial console on SMC1 - 32 MB SDRAM - 32 MB NOR Flash - Ethernet over SCC3 - I2C Bitbang Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/keymile/common')
-rw-r--r--board/keymile/common/common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/keymile/common/common.c b/board/keymile/common/common.c
index c3fa844..b2bd7fd 100644
--- a/board/keymile/common/common.c
+++ b/board/keymile/common/common.c
@@ -295,11 +295,14 @@ int ivm_analyze_eeprom (unsigned char *buf, int len)
int ivm_read_eeprom (void)
{
+#if defined(CONFIG_I2C_MUX)
I2C_MUX_DEVICE *dev = NULL;
+#endif
uchar i2c_buffer[CONFIG_SYS_IVM_EEPROM_MAX_LEN];
uchar *buf;
unsigned dev_addr = CONFIG_SYS_IVM_EEPROM_ADR;
+#if defined(CONFIG_I2C_MUX)
/* First init the Bus, select the Bus */
#if defined(CONFIG_SYS_I2C_IVM_BUS)
dev = i2c_mux_ident_muxstring ((uchar *)CONFIG_SYS_I2C_IVM_BUS);
@@ -313,6 +316,7 @@ int ivm_read_eeprom (void)
return -1;
}
i2c_set_bus_num (dev->busid);
+#endif
buf = (unsigned char *) getenv ("EEprom_ivm_addr");
if (buf != NULL)