summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-ixp23xx/platform.h
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2006-06-22 10:30:56 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-22 10:30:56 +0100
commit8b76a68c6caafef5a91cdc80958aecaca76a8896 (patch)
treef22a684595267ee6b087381a00a543f46482c8a1 /include/asm-arm/arch-ixp23xx/platform.h
parent744da2cb598639767ddcc90ca855771bc524fe76 (diff)
[ARM] 3620/2: ixp23xx: add uengine loader support
Patch from Lennert Buytenhek This patch allows the ixp2000 uengine loader that is already in the tree to also be used on the ixp23xx. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-ixp23xx/platform.h')
-rw-r--r--include/asm-arm/arch-ixp23xx/platform.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-arm/arch-ixp23xx/platform.h b/include/asm-arm/arch-ixp23xx/platform.h
index e4d99060a04..19a73b39c86 100644
--- a/include/asm-arm/arch-ixp23xx/platform.h
+++ b/include/asm-arm/arch-ixp23xx/platform.h
@@ -14,6 +14,21 @@
#ifndef __ASSEMBLY__
+extern inline unsigned long ixp2000_reg_read(volatile void *reg)
+{
+ return *((volatile unsigned long *)reg);
+}
+
+extern inline void ixp2000_reg_write(volatile void *reg, unsigned long val)
+{
+ *((volatile unsigned long *)reg) = val;
+}
+
+extern inline void ixp2000_reg_wrb(volatile void *reg, unsigned long val)
+{
+ *((volatile unsigned long *)reg) = val;
+}
+
struct pci_sys_data;
void ixp23xx_map_io(void);