imx91.c 703 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2006-2025, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2025-08-10 Siwei Xu Add i.MX91 SDK
  9. */
  10. #include "imx91.h"
  11. #include "MIMX9131.h"
  12. #include <rtconfig.h>
  13. #include <ioremap.h>
  14. rt_base_t platform_get_gic_dist_base(void)
  15. {
  16. return (rt_base_t)rt_ioremap((void *)GIC_DISTRIBUTOR_BASE, GIC_DISTRIBUTOR_SIZE);
  17. }
  18. rt_base_t platform_get_gic_redist_base(void)
  19. {
  20. return (rt_base_t)rt_ioremap((void *)GIC_REDISTRIBUTOR_BASE, GIC_REDISTRIBUTOR_SIZE);
  21. }
  22. rt_base_t platform_get_gic_cpu_base(void)
  23. {
  24. return (rt_base_t)rt_ioremap((void *)GIC_REDISTRIBUTOR_BASE, GIC_REDISTRIBUTOR_SIZE);
  25. }