diff options
| -rw-r--r-- | include/asm-arm/arch-ixp2000/platform.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-arm/arch-ixp2000/platform.h b/include/asm-arm/arch-ixp2000/platform.h index aabeef2454dd..6e5b6a955abe 100644 --- a/include/asm-arm/arch-ixp2000/platform.h +++ b/include/asm-arm/arch-ixp2000/platform.h | |||
| @@ -15,11 +15,15 @@ | |||
| 15 | 15 | ||
| 16 | #ifndef __ASSEMBLY__ | 16 | #ifndef __ASSEMBLY__ |
| 17 | 17 | ||
| 18 | static inline unsigned long ixp2000_reg_read(volatile void *reg) | ||
| 19 | { | ||
| 20 | return *((volatile unsigned long *)reg); | ||
| 21 | } | ||
| 22 | |||
| 18 | static inline void ixp2000_reg_write(volatile void *reg, unsigned long val) | 23 | static inline void ixp2000_reg_write(volatile void *reg, unsigned long val) |
| 19 | { | 24 | { |
| 20 | *((volatile unsigned long *)reg) = val; | 25 | *((volatile unsigned long *)reg) = val; |
| 21 | } | 26 | } |
| 22 | #define ixp2000_reg_read(reg) (*((volatile unsigned long *)reg)) | ||
| 23 | 27 | ||
| 24 | /* | 28 | /* |
| 25 | * Boards may multiplex different devices on the 2nd channel of | 29 | * Boards may multiplex different devices on the 2nd channel of |
