plat_mmap.c 776 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2024, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <stdint.h>
  7. #include <platform_def.h>
  8. #include <mtk_mmap_pool.h>
  9. static const mmap_region_t plat_mmap[] = {
  10. MAP_REGION_FLAT(MT_GIC_BASE, MTK_GIC_REG_SIZE,
  11. MT_DEVICE | MT_RW | MT_SECURE),
  12. MAP_REGION_FLAT(MTK_DEV_RNG1_BASE, MTK_DEV_RNG1_SIZE,
  13. MT_DEVICE | MT_RW | MT_SECURE),
  14. MAP_REGION_FLAT(CPU_IDLE_SRAM_BASE, CPU_IDLE_SRAM_SIZE,
  15. MT_DEVICE | MT_RW | MT_SECURE),
  16. MAP_REGION_FLAT(DP_SEC_BASE, DP_SEC_SIZE,
  17. MT_DEVICE | MT_RW | MT_SECURE),
  18. MAP_REGION_FLAT(EDP_SEC_BASE, EDP_SEC_SIZE,
  19. MT_DEVICE | MT_RW | MT_SECURE),
  20. MAP_REGION_FLAT(APU_MBOX0, APU_MBOX0_SZ,
  21. MT_DEVICE | MT_RW | MT_SECURE),
  22. { 0 }
  23. };
  24. DECLARE_MTK_MMAP_REGIONS(plat_mmap);