spaces.h 1.5 KB

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