mpc5200: digsy_mtc: fix extension board EEPROM I2C address for rev5

On newer rev5 hardware the extension board EEPROM I2C address
has been changed to 0x54. Make this I2C address configurable
depending on CONFIG_DIGSY_REV5 so that extention board presence
detection works correctly on newer hardware.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
Anatolij Gustschin
2011-08-01 04:16:29 +00:00
committed by Wolfgang Denk
parent 780f13a9e1
commit eccfb49046
2 changed files with 8 additions and 4 deletions

View File

@@ -288,6 +288,13 @@
#define CONFIG_SYS_DS1339_TCR_VAL 0xAB /* diode + 4k resistor */
#endif
/* ExBo I2C Addresses */
#if defined(CONFIG_DIGSY_REV5)
#define CONFIG_SYS_EXBO_EE_I2C_ADDRESS 0x54
#else
#define CONFIG_SYS_EXBO_EE_I2C_ADDRESS 0x56
#endif
/*
* Flash configuration
*/