···11+/*22+ * This file is subject to the terms and conditions of the GNU General Public33+ * License. See the file "COPYING" in the main directory of this archive44+ * for more details.55+ *66+ * Copyright (C) 2014 Imagination Technologies Ltd.77+ */88+99+#ifndef _ASM_MALTA_SPACES_H1010+#define _ASM_MALTA_SPACES_H1111+1212+#ifdef CONFIG_EVA1313+1414+/*1515+ * Traditional Malta Board Memory Map for EVA1616+ *1717+ * 0x00000000 - 0x0fffffff: 1st RAM region, 256MB1818+ * 0x10000000 - 0x1bffffff: GIC and CPC Control Registers1919+ * 0x1c000000 - 0x1fffffff: I/O And Flash2020+ * 0x20000000 - 0x7fffffff: 2nd RAM region, 1.5GB2121+ * 0x80000000 - 0xffffffff: Physical memory aliases to 0x0 (2GB)2222+ *2323+ * The kernel is still located in 0x80000000(kseg0). However,2424+ * the physical mask has been shifted to 0x80000000 which exploits the alias2525+ * on the Malta board. As a result of which, we override the __pa_symbol2626+ * to peform direct mapping from virtual to physical addresses. In other2727+ * words, the 0x80000000 virtual address maps to 0x80000000 physical address2828+ * which in turn aliases to 0x0. We do this in order to be able to use a flat2929+ * 2GB of memory (0x80000000 - 0xffffffff) so we can avoid the I/O hole in3030+ * 0x10000000 - 0x1fffffff.3131+ * The last 64KB of physical memory are reserved for correct HIGHMEM3232+ * macros arithmetics.3333+ *3434+ */3535+3636+#define PAGE_OFFSET _AC(0x0, UL)3737+#define PHYS_OFFSET _AC(0x80000000, UL)3838+#define HIGHMEM_START _AC(0xffff0000, UL)3939+4040+#define __pa_symbol(x) (RELOC_HIDE((unsigned long)(x), 0))4141+4242+#endif /* CONFIG_EVA */4343+4444+#include <asm/mach-generic/spaces.h>4545+4646+#endif /* _ASM_MALTA_SPACES_H */