diff options
author | Stefano Babic <sbabic@denx.de> | 2011-01-19 22:46:26 +0000 |
---|---|---|
committer | Albert Aribaud <albert.aribaud@free.fr> | 2011-02-02 00:54:42 +0100 |
commit | 04220612f69a7148f7f6d045638c8046bd265b29 (patch) | |
tree | c750d0bbf48208885a70af0e5dd11a1a0e50f0de /drivers | |
parent | 1b22b0d35bb18b86ac6a5b2a8ae1ddba7822bc47 (diff) | |
download | bootable_bootloader_goldelico_gta04-04220612f69a7148f7f6d045638c8046bd265b29.zip bootable_bootloader_goldelico_gta04-04220612f69a7148f7f6d045638c8046bd265b29.tar.gz bootable_bootloader_goldelico_gta04-04220612f69a7148f7f6d045638c8046bd265b29.tar.bz2 |
mxc_i2c: Add support for the i.MX35 processor
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/mxc_i2c.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 1ebec14..7f669ff 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -29,9 +29,8 @@ #if defined(CONFIG_MX31) #include <asm/arch/mx31.h> #include <asm/arch/mx31-regs.h> -#endif - -#if defined(CONFIG_MX53) +#else +#include <asm/arch/imx-regs.h> #include <asm/arch/clock.h> #endif @@ -66,8 +65,10 @@ #define I2C_BASE I2C1_BASE_ADDR #elif defined(CONFIG_SYS_I2C_MX53_PORT2) #define I2C_BASE I2C2_BASE_ADDR +#elif defined(CONFIG_SYS_I2C_MX35_PORT1) +#define I2C_BASE I2C_BASE_ADDR #else -#error "define CONFIG_SYS_I2C_MXxx_PORTx to use the I2C driver" +#error "define CONFIG_SYS_I2C_MX<Processor>_PORTx to use the mx I2C driver" #endif #ifdef DEBUG |