mmu_def.h 714 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2018-2020 NXP
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. #ifndef MMU_MAP_DEF_H
  8. #define MMU_MAP_DEF_H
  9. #include <lib/xlat_tables/xlat_tables_defs.h>
  10. #include <platform_def.h>
  11. #define LS_MAP_CCSR MAP_REGION_FLAT(NXP_CCSR_ADDR, \
  12. NXP_CCSR_SIZE, \
  13. MT_DEVICE | MT_RW | MT_SECURE)
  14. #ifdef NXP_DCSR_ADDR
  15. #define LS_MAP_DCSR MAP_REGION_FLAT(NXP_DCSR_ADDR, \
  16. NXP_DCSR_SIZE, \
  17. MT_DEVICE | MT_RW | MT_SECURE)
  18. #endif
  19. #define LS_MAP_CONSOLE MAP_REGION_FLAT(NXP_DUART1_ADDR, \
  20. NXP_DUART_SIZE, \
  21. MT_DEVICE | MT_RW | MT_NS)
  22. #define LS_MAP_OCRAM MAP_REGION_FLAT(NXP_OCRAM_ADDR, \
  23. NXP_OCRAM_SIZE, \
  24. MT_DEVICE | MT_RW | MT_SECURE)
  25. #endif /* MMU_MAP_DEF_H */