diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-03-29 16:06:03 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 17:22:08 +0200 |
commit | e598e47144e41e8429bf127266bc3e8017d1a5f4 (patch) | |
tree | 91f7eaeafa6dac3bb4821e97704732eb735f910a /arch/mips/mti-sead3 | |
parent | fbacc8dfd8bab24d326b3055d38246ca7a2e1da5 (diff) |
MIPS: SEAD3: Use symbolic addresses from sead-addr.h in I2C driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mti-sead3')
-rw-r--r-- | arch/mips/mti-sead3/sead3-i2c-drv.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/mips/mti-sead3/sead3-i2c-drv.c b/arch/mips/mti-sead3/sead3-i2c-drv.c index 6aaf6f88308b..a43b0503097c 100644 --- a/arch/mips/mti-sead3/sead3-i2c-drv.c +++ b/arch/mips/mti-sead3/sead3-i2c-drv.c @@ -4,6 +4,7 @@ * for more details. * * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. + * Copyright (C) 2015 Imagination Technologies, Inc. */ #include <linux/init.h> #include <linux/module.h> @@ -12,6 +13,8 @@ #include <linux/i2c.h> #include <linux/platform_device.h> +#include <asm/mips-boards/sead3-addr.h> + #define PIC32_I2CxCON 0x0000 #define PIC32_I2CCON_ON (1<<15) #define PIC32_I2CCON_ACKDT (1<<5) @@ -35,14 +38,14 @@ static DEFINE_SPINLOCK(pic32_bus_lock); -static void __iomem *bus_xfer = (void __iomem *)0xbf000600; -static void __iomem *bus_status = (void __iomem *)0xbf000060; +static void __iomem *bus_xfer = (void __iomem *)SEAD3_PIC32_REGISTERS; +static void __iomem *bus_status = (void __iomem *)SEAD3_PI_PIC32_USB_STATUS; #define DELAY() udelay(100) static inline unsigned int ioready(void) { - return readl(bus_status) & 1; + return readl(bus_status) & SEAD3_PI_PIC32_USB_STATUS_IO_RDY; } static inline void wait_ioready(void) |