~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise-security

« back to all changes in this revision

Viewing changes to arch/arm/mach-pxa/include/mach/hardware.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
38
38
 */
39
 
#define io_p2v(x) (0xf2000000 + ((x) & 0x01ffffff) + (((x) & 0x1c000000) >> 1))
40
39
#define io_v2p(x) (0x3c000000 + ((x) & 0x01ffffff) + (((x) & 0x0e000000) << 1))
 
40
#define io_p2v(x) IOMEM(0xf2000000 + ((x) & 0x01ffffff) + (((x) & 0x1c000000) >> 1))
41
41
 
42
42
#ifndef __ASSEMBLY__
43
 
 
44
 
# define __REG(x)       (*((volatile u32 *)io_p2v(x)))
 
43
# define IOMEM(x) ((void __iomem *)(x))
 
44
# define __REG(x)       (*((volatile u32 __iomem *)io_p2v(x)))
45
45
 
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. */
48
48
# define __REG2(x,y)    \
49
 
        (*(volatile u32 *)((u32)&__REG(x) + (y)))
 
49
        (*(volatile u32 __iomem*)((u32)&__REG(x) + (y)))
50
50
 
51
51
# define __PREG(x)      (io_v2p((u32)&(x)))
52
52
 
53
53
#else
54
54
 
 
55
# define IOMEM(x)       x 
55
56
# define __REG(x)       io_p2v(x)
56
57
# define __PREG(x)      io_v2p(x)
57
58
 
337
338
#endif
338
339
 
339
340
#if defined(CONFIG_MACH_ARMCORE) && defined(CONFIG_PCI)
340
 
#define PCIBIOS_MIN_IO          0
341
 
#define PCIBIOS_MIN_MEM         0
342
 
#define pcibios_assign_all_busses()     1
343
341
#define ARCH_HAS_DMA_SET_COHERENT_MASK
344
342
#endif
345
343