sysmap-owl.c 775 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Memory map for Actions Semi Owl series SoCs.
  4. *
  5. * Copyright (C) 2015 Actions Semi Co., Ltd.
  6. * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  7. */
  8. #include <common.h>
  9. #include <asm/armv8/mmu.h>
  10. static struct mm_region owl_mem_map[] = {
  11. {
  12. .virt = 0x0UL, /* DDR */
  13. .phys = 0x0UL, /* DDR */
  14. .size = 0x80000000UL,
  15. .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |
  16. PTE_BLOCK_INNER_SHARE
  17. }, {
  18. .virt = 0xE0000000UL, /* Peripheral block */
  19. .phys = 0xE0000000UL, /* Peripheral block */
  20. .size = 0x08000000UL,
  21. .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
  22. PTE_BLOCK_NON_SHARE |
  23. PTE_BLOCK_PXN | PTE_BLOCK_UXN
  24. }, {
  25. /* List terminator */
  26. 0,
  27. }
  28. };
  29. struct mm_region *mem_map = owl_mem_map;