imx91.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef __IMX91_H__
  11. #define __IMX91_H__
  12. #include <rtthread.h>
  13. /* 'ARM_GIC_MAX_NR' is the number of cores, gicv3.c required */
  14. #define ARM_GIC_MAX_NR 1
  15. /* The platform maximum interrupts, interrupt.c required */
  16. #define ARM_GIC_NR_IRQS 256
  17. /* Number of interrupts in the Vector table, interrupt.c required */
  18. #define MAX_HANDLERS 256
  19. /* interrupt.c required. */
  20. rt_base_t platform_get_gic_dist_base(void);
  21. rt_base_t platform_get_gic_redist_base(void);
  22. rt_base_t platform_get_gic_cpu_base(void);
  23. /* interrupt.c required */
  24. #define GIC_IRQ_START 0
  25. /* gic.c required */
  26. #define __REG32(x) (*((volatile unsigned int *)(x)))
  27. #define KB_SIZE(x) ((x) * 1024)
  28. #define MB_SIZE(x) ((x) * 1024 * 1024)
  29. #define GIC_DISTRIBUTOR_SIZE KB_SIZE(64)
  30. #define GIC_REDISTRIBUTOR_SIZE KB_SIZE(768)
  31. #define LPUART1_SIZE KB_SIZE(64)
  32. #define CCM_CTRL_SIZE KB_SIZE(64)
  33. #endif /* __IMX91_H__ */