36
36
* Note that not all PXA2xx chips implement all those addresses, and the
37
37
* kernel only maps the minimum needed range of this mapping.
40
39
#define io_v2p(x) (0x3c000000 + ((x) & 0x01ffffff) + (((x) & 0x0e000000) << 1))
46
46
/* With indexed regs we don't want to feed the index through io_p2v()
47
47
especially if it is a variable, otherwise horrible code will result. */
51
51
# define __PREG(x) (io_v2p((u32)&(x)))
55
56
# define __REG(x) io_p2v(x)
56
57
# define __PREG(x) io_v2p(x)