platform.mk 779 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # Copyright (c) 2018-2023, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Include imx7 common
  7. include plat/imx/imx7/common/imx7.mk
  8. # Platform
  9. PLAT_INCLUDES += -Iplat/imx/imx7/picopi/include \
  10. BL2_SOURCES += drivers/imx/usdhc/imx_usdhc.c \
  11. plat/imx/imx7/picopi/picopi_bl2_el3_setup.c \
  12. # Build config flags
  13. # ------------------
  14. ARM_CORTEX_A7 := yes
  15. WORKAROUND_CVE_2017_5715 := 0
  16. RESET_TO_BL31 := 0
  17. # Non-TF Boot ROM
  18. RESET_TO_BL2 := 1
  19. # Indicate single-core
  20. COLD_BOOT_SINGLE_CPU := 1
  21. # Have different sections for code and rodata
  22. SEPARATE_CODE_AND_RODATA := 1
  23. # Use Coherent memory
  24. USE_COHERENT_MEM := 1
  25. # Use multi console API
  26. PLAT_PICOPI_UART :=5
  27. $(eval $(call add_define,PLAT_PICOPI_UART))