memmap-r8a7795.c 608 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2016 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <asm/armv8/mmu.h>
  8. static struct mm_region r8a7795_mem_map[] = {
  9. {
  10. .virt = 0x0UL,
  11. .phys = 0x0UL,
  12. .size = 0x80000000UL,
  13. .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
  14. PTE_BLOCK_INNER_SHARE
  15. }, {
  16. .virt = 0x80000000UL,
  17. .phys = 0x80000000UL,
  18. .size = 0x80000000UL,
  19. .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
  20. PTE_BLOCK_NON_SHARE |
  21. PTE_BLOCK_PXN | PTE_BLOCK_UXN
  22. }, {
  23. /* List terminator */
  24. 0,
  25. }
  26. };
  27. struct mm_region *mem_map = r8a7795_mem_map;