ARM: realview: fix sparsemem build
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-realview / include / mach / memory.h
index 2022e092f0cade07c42efcbdf2768ac55658733a..db09170e3832fca5b8bef1f5c87374aac991e04c 100644 (file)
@@ -56,6 +56,8 @@
 #define PAGE_OFFSET1   (PAGE_OFFSET + 0x10000000)
 #define PAGE_OFFSET2   (PAGE_OFFSET + 0x30000000)
 
+#define PHYS_OFFSET PLAT_PHYS_OFFSET
+
 #define __phys_to_virt(phys)                                           \
        ((phys) >= 0x80000000 ? (phys) - 0x80000000 + PAGE_OFFSET2 :    \
         (phys) >= 0x20000000 ? (phys) - 0x20000000 + PAGE_OFFSET1 :    \