1*c9fede2aSMarkos Chandras /* 2*c9fede2aSMarkos Chandras * This file is subject to the terms and conditions of the GNU General Public 3*c9fede2aSMarkos Chandras * License. See the file "COPYING" in the main directory of this archive 4*c9fede2aSMarkos Chandras * for more details. 5*c9fede2aSMarkos Chandras * 6*c9fede2aSMarkos Chandras * Copyright (C) 2014 Imagination Technologies Ltd. 7*c9fede2aSMarkos Chandras */ 8*c9fede2aSMarkos Chandras 9*c9fede2aSMarkos Chandras #ifndef _ASM_MALTA_SPACES_H 10*c9fede2aSMarkos Chandras #define _ASM_MALTA_SPACES_H 11*c9fede2aSMarkos Chandras 12*c9fede2aSMarkos Chandras #ifdef CONFIG_EVA 13*c9fede2aSMarkos Chandras 14*c9fede2aSMarkos Chandras /* 15*c9fede2aSMarkos Chandras * Traditional Malta Board Memory Map for EVA 16*c9fede2aSMarkos Chandras * 17*c9fede2aSMarkos Chandras * 0x00000000 - 0x0fffffff: 1st RAM region, 256MB 18*c9fede2aSMarkos Chandras * 0x10000000 - 0x1bffffff: GIC and CPC Control Registers 19*c9fede2aSMarkos Chandras * 0x1c000000 - 0x1fffffff: I/O And Flash 20*c9fede2aSMarkos Chandras * 0x20000000 - 0x7fffffff: 2nd RAM region, 1.5GB 21*c9fede2aSMarkos Chandras * 0x80000000 - 0xffffffff: Physical memory aliases to 0x0 (2GB) 22*c9fede2aSMarkos Chandras * 23*c9fede2aSMarkos Chandras * The kernel is still located in 0x80000000(kseg0). However, 24*c9fede2aSMarkos Chandras * the physical mask has been shifted to 0x80000000 which exploits the alias 25*c9fede2aSMarkos Chandras * on the Malta board. As a result of which, we override the __pa_symbol 26*c9fede2aSMarkos Chandras * to peform direct mapping from virtual to physical addresses. In other 27*c9fede2aSMarkos Chandras * words, the 0x80000000 virtual address maps to 0x80000000 physical address 28*c9fede2aSMarkos Chandras * which in turn aliases to 0x0. We do this in order to be able to use a flat 29*c9fede2aSMarkos Chandras * 2GB of memory (0x80000000 - 0xffffffff) so we can avoid the I/O hole in 30*c9fede2aSMarkos Chandras * 0x10000000 - 0x1fffffff. 31*c9fede2aSMarkos Chandras * The last 64KB of physical memory are reserved for correct HIGHMEM 32*c9fede2aSMarkos Chandras * macros arithmetics. 33*c9fede2aSMarkos Chandras * 34*c9fede2aSMarkos Chandras */ 35*c9fede2aSMarkos Chandras 36*c9fede2aSMarkos Chandras #define PAGE_OFFSET _AC(0x0, UL) 37*c9fede2aSMarkos Chandras #define PHYS_OFFSET _AC(0x80000000, UL) 38*c9fede2aSMarkos Chandras #define HIGHMEM_START _AC(0xffff0000, UL) 39*c9fede2aSMarkos Chandras 40*c9fede2aSMarkos Chandras #define __pa_symbol(x) (RELOC_HIDE((unsigned long)(x), 0)) 41*c9fede2aSMarkos Chandras 42*c9fede2aSMarkos Chandras #endif /* CONFIG_EVA */ 43*c9fede2aSMarkos Chandras 44*c9fede2aSMarkos Chandras #include <asm/mach-generic/spaces.h> 45*c9fede2aSMarkos Chandras 46*c9fede2aSMarkos Chandras #endif /* _ASM_MALTA_SPACES_H */ 47