mem_map.c 628 B

1234567891011121314151617181920212223242526272829
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com>
  4. */
  5. #include <common.h>
  6. #include <linux/types.h>
  7. #include <asm/armv8/mmu.h>
  8. static struct mm_region uniphier_mem_map[] = {
  9. {
  10. .virt = 0x00000000,
  11. .phys = 0x00000000,
  12. .size = 0x80000000,
  13. .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
  14. PTE_BLOCK_NON_SHARE |
  15. PTE_BLOCK_PXN | PTE_BLOCK_UXN
  16. },
  17. {
  18. .virt = 0x80000000,
  19. .phys = 0x80000000,
  20. .size = 0xc0000000,
  21. .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
  22. PTE_BLOCK_INNER_SHARE
  23. },
  24. { /* sentinel */ }
  25. };
  26. struct mm_region *mem_map = uniphier_mem_map;