diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2012-08-31 15:10:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-04 11:16:48 +0200 |
commit | f8e0d6821492074183b366173588d0dda4c8a27d (patch) | |
tree | 8a0dbdb1592541f1c3a38f99b00a7ab05f76b980 /arch/ppc/mach-mpc85xx | |
parent | b977801ac156531d1edfd0bc6ab325ed632857af (diff) | |
download | barebox-f8e0d6821492074183b366173588d0dda4c8a27d.tar.gz barebox-f8e0d6821492074183b366173588d0dda4c8a27d.tar.xz |
i2c: adapt the i2c-imx driver to mpc85xx machines
A function to calculate the frequency divider and digital filter sampling rate
for the 85xx processors is added to the i2c-imx driver. Hence, this driver is
usable on IMX and 85xx machines.
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/mach-mpc85xx')
-rw-r--r-- | arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h index b80224952d..b686a09b6a 100644 --- a/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h +++ b/arch/ppc/mach-mpc85xx/include/mach/immap_85xx.h @@ -129,4 +129,7 @@ #define MPC85xx_DEVDISR_TB1 0x00001000 #define MPC85xx_GUTS_RSTCR_OFFSET 0xb0 +#define I2C1_BASE_ADDR (CFG_IMMR + 0x3000) +#define I2C2_BASE_ADDR (CFG_IMMR + 0x3100) + #endif /*__IMMAP_85xx__*/ |