board.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #ifndef __BOARD_H__
  10. #define __BOARD_H__
  11. #include <rtconfig.h>
  12. #include "imx6ull.h"
  13. #include "mmu.h"
  14. #if defined(__CC_ARM)
  15. extern int Image$$RW_IRAM1$$ZI$$Limit;
  16. #define HEAP_BEGIN ((void*)&Image$$RW_IRAM1$$ZI$$Limit)
  17. #elif defined(__GNUC__)
  18. extern int __bss_end;
  19. #define HEAP_BEGIN ((void*)&__bss_end)
  20. #endif
  21. #ifdef RT_USING_SMART
  22. #define HEAP_END (void*)(KERNEL_VADDR_START + 16 * 1024 * 1024)
  23. #define PAGE_START HEAP_END
  24. #define PAGE_END (void*)(KERNEL_VADDR_START + 128 * 1024 * 1024)
  25. #else
  26. #define HEAP_END (void*)(0x80000000 + 64 * 1024 * 1024)
  27. #endif
  28. /*
  29. * memory map for peripherals
  30. */
  31. /*
  32. start addr - end addr , size
  33. 0x0090_0000 - 0x0091_FFFF, 128KB, OCRAM
  34. 0x0200_0000 - 0x020F_FFFF, 1MB, AIPS-1
  35. 0x0210_0000 - 0x021F_FFFF, 1MB, AIPS-2
  36. 0x0220_0000 - 0x022F_FFFF, 1MB, AIPS-3
  37. */
  38. void rt_hw_board_init(void);
  39. #endif