board.h 815 B

12345678910111213141516171819202122232425262728293031323334
  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. * 2025-09-15 Siwei Xu Fix LPUART driver
  10. * 2025-12-10 Siwei Xu Fix ioremap issues
  11. */
  12. #ifndef __BOARD_H__
  13. #define __BOARD_H__
  14. #include "imx91.h"
  15. #include "rtconfig.h"
  16. #ifndef KERNEL_BOOT_ADDR
  17. #define KERNEL_BOOT_ADDR (ARCH_RAM_OFFSET + ARCH_TEXT_OFFSET)
  18. #endif
  19. /* defined in linker script */
  20. extern unsigned char __bss_end;
  21. #define BOARD_PAGE_START RT_ALIGN((rt_base_t) & __bss_end, KB_SIZE(4))
  22. #define BOARD_PAGE_END (BOARD_PAGE_START + MB_SIZE(1))
  23. #define BOARD_HEAP_BEGIN (BOARD_PAGE_END)
  24. #define BOARD_HEAP_END (BOARD_HEAP_BEGIN + MB_SIZE(32))
  25. void rt_hw_board_init(void);
  26. #endif