aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop32x/common.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2006-09-18 23:15:21 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-25 10:25:38 +0100
commite25d64f1242e8586f6e20c26fd876a4d956a6c45 (patch)
tree1a68da7173716896254847708dcd1675102a24ac /arch/arm/mach-iop32x/common.c
parent7ae1f7ec525c32db441836ab0ab010b85cb819a2 (diff)
downloadkernel_samsung_smdk4412-e25d64f1242e8586f6e20c26fd876a4d956a6c45.zip
kernel_samsung_smdk4412-e25d64f1242e8586f6e20c26fd876a4d956a6c45.tar.gz
kernel_samsung_smdk4412-e25d64f1242e8586f6e20c26fd876a4d956a6c45.tar.bz2
[ARM] 3819/1: iop3xx: factor out shared i2c code
Move the i2c bits shared between iop32x and iop33x to plat-iop/i2c.c and include/asm-arm/hardware/iop3xx.h. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-iop32x/common.c')
-rw-r--r--arch/arm/mach-iop32x/common.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/arm/mach-iop32x/common.c b/arch/arm/mach-iop32x/common.c
index 8044af6..17e7d65 100644
--- a/arch/arm/mach-iop32x/common.c
+++ b/arch/arm/mach-iop32x/common.c
@@ -14,6 +14,7 @@
#include <linux/delay.h>
#include <asm/hardware.h>
+#include <asm/hardware/iop3xx.h>
/*
* Shared variables
@@ -39,23 +40,23 @@ void ep80219_power_off(void)
*/
/* Send the Address byte w/ the start condition */
- *IOP321_IDBR1 = 0x60;
- *IOP321_ICR1 = 0xE9;
+ *IOP3XX_IDBR1 = 0x60;
+ *IOP3XX_ICR1 = 0xE9;
mdelay(1);
/* Send the START_MSG byte w/ no start or stop condition */
- *IOP321_IDBR1 = 0x0F;
- *IOP321_ICR1 = 0xE8;
+ *IOP3XX_IDBR1 = 0x0F;
+ *IOP3XX_ICR1 = 0xE8;
mdelay(1);
/* Send the SHUTDOWN_COMPLETE Message ID byte w/ no start or stop condition */
- *IOP321_IDBR1 = 0x03;
- *IOP321_ICR1 = 0xE8;
+ *IOP3XX_IDBR1 = 0x03;
+ *IOP3XX_ICR1 = 0xE8;
mdelay(1);
/* Send an ignored byte w/ stop condition */
- *IOP321_IDBR1 = 0x00;
- *IOP321_ICR1 = 0xEA;
+ *IOP3XX_IDBR1 = 0x00;
+ *IOP3XX_ICR1 = 0xEA;
while (1) ;
}