platform.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Translation tables library
  7. include lib/xlat_tables_v2/xlat_tables.mk
  8. PLAT_INCLUDES := -Iplat/imx/imx8qm/include \
  9. -Iplat/imx/common/include \
  10. # Include GICv3 driver files
  11. include drivers/arm/gic/v3/gicv3.mk
  12. IMX_GIC_SOURCES := ${GICV3_SOURCES} \
  13. plat/common/plat_gicv3.c \
  14. plat/common/plat_psci_common.c \
  15. plat/imx/common/plat_imx8_gic.c
  16. BL31_SOURCES += plat/imx/common/lpuart_console.S \
  17. plat/imx/common/imx8_helpers.S \
  18. plat/imx/imx8qm/imx8qm_bl31_setup.c \
  19. plat/imx/imx8qm/imx8qm_psci.c \
  20. plat/imx/common/imx8_topology.c \
  21. plat/imx/common/imx8_psci.c \
  22. plat/imx/common/imx_sip_svc.c \
  23. plat/imx/common/imx_sip_handler.c \
  24. lib/cpus/aarch64/cortex_a53.S \
  25. lib/cpus/aarch64/cortex_a72.S \
  26. drivers/arm/cci/cci.c \
  27. ${XLAT_TABLES_LIB_SRCS} \
  28. ${IMX_GIC_SOURCES} \
  29. include plat/imx/common/sci/sci_api.mk
  30. USE_COHERENT_MEM := 1
  31. RESET_TO_BL31 := 1
  32. A53_DISABLE_NON_TEMPORAL_HINT := 0
  33. ERRATA_A72_859971 := 1
  34. ERRATA_A53_835769 := 1
  35. ERRATA_A53_843419 := 1
  36. ERRATA_A53_855873 := 1
  37. IMX_DEBUG_UART ?= 0
  38. $(eval $(call add_define,IMX_USE_UART${IMX_DEBUG_UART}))
  39. DEBUG_CONSOLE ?= 0
  40. $(eval $(call add_define,DEBUG_CONSOLE))