Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 2014 Imagination Technologies Ltd.
0007  */
0008 
0009 #ifndef _ASM_MALTA_SPACES_H
0010 #define _ASM_MALTA_SPACES_H
0011 
0012 #ifdef CONFIG_EVA
0013 
0014 /*
0015  * Traditional Malta Board Memory Map for EVA
0016  *
0017  * 0x00000000 - 0x0fffffff: 1st RAM region, 256MB
0018  * 0x10000000 - 0x1bffffff: GIC and CPC Control Registers
0019  * 0x1c000000 - 0x1fffffff: I/O And Flash
0020  * 0x20000000 - 0x7fffffff: 2nd RAM region, 1.5GB
0021  * 0x80000000 - 0xffffffff: Physical memory aliases to 0x0 (2GB)
0022  *
0023  * The kernel is still located in 0x80000000(kseg0). However,
0024  * the physical mask has been shifted to 0x80000000 which exploits the alias
0025  * on the Malta board. As a result of which, we override the __pa_symbol
0026  * to peform direct mapping from virtual to physical addresses. In other
0027  * words, the 0x80000000 virtual address maps to 0x80000000 physical address
0028  * which in turn aliases to 0x0. We do this in order to be able to use a flat
0029  * 2GB of memory (0x80000000 - 0xffffffff) so we can avoid the I/O hole in
0030  * 0x10000000 - 0x1fffffff.
0031  * The last 64KB of physical memory are reserved for correct HIGHMEM
0032  * macros arithmetics.
0033  *
0034  */
0035 
0036 #define PAGE_OFFSET _AC(0x0, UL)
0037 #define PHYS_OFFSET _AC(0x80000000, UL)
0038 #define HIGHMEM_START   _AC(0xffff0000, UL)
0039 
0040 #define __pa_symbol(x)  (RELOC_HIDE((unsigned long)(x), 0))
0041 
0042 #endif /* CONFIG_EVA */
0043 
0044 #include <asm/mach-generic/spaces.h>
0045 
0046 #endif /* _ASM_MALTA_SPACES_H */