|
@@ -40,7 +40,6 @@
|
|
#define io_p2v(x) IOMEM(0xf2000000 + ((x) & 0x01ffffff) + (((x) & 0x1c000000) >> 1))
|
|
#define io_p2v(x) IOMEM(0xf2000000 + ((x) & 0x01ffffff) + (((x) & 0x1c000000) >> 1))
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#ifndef __ASSEMBLY__
|
|
-# define IOMEM(x) ((void __iomem *)(x))
|
|
|
|
# define __REG(x) (*((volatile u32 __iomem *)io_p2v(x)))
|
|
# define __REG(x) (*((volatile u32 __iomem *)io_p2v(x)))
|
|
|
|
|
|
/* With indexed regs we don't want to feed the index through io_p2v()
|
|
/* With indexed regs we don't want to feed the index through io_p2v()
|
|
@@ -52,7 +51,6 @@
|
|
|
|
|
|
#else
|
|
#else
|
|
|
|
|
|
-# define IOMEM(x) x
|
|
|
|
# define __REG(x) io_p2v(x)
|
|
# define __REG(x) io_p2v(x)
|
|
# define __PREG(x) io_v2p(x)
|
|
# define __PREG(x) io_v2p(x)
|
|
|
|
|