ARM: vexpress: Get rid of MMIO_P2V
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-vexpress / core.h
index f4397159c173277da92d7c1bb0dbb60549bab8f2..3508f6ef78ea15af992928934e9268825dec060f 100644 (file)
@@ -1,6 +1,3 @@
-#define __MMIO_P2V(x)  (((x) & 0xfffff) | (((x) & 0x0f000000) >> 4) | 0xf8000000)
-#define MMIO_P2V(x)    ((void __iomem *)__MMIO_P2V(x))
-
 #define AMBA_DEVICE(name,busid,base,plat)      \
 struct amba_device name##_device = {           \
        .dev            = {                     \
@@ -17,3 +14,9 @@ struct amba_device name##_device = {          \
        .irq            = IRQ_##base,           \
        /* .dma         = DMA_##base,*/         \
 }
+
+/* 2MB large area for motherboard's peripherals static mapping */
+#define V2M_PERIPH 0xf8000000
+
+/* Tile's peripherals static mappings should start here */
+#define V2T_PERIPH 0xf8200000