platform.mk 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #
  2. # Copyright 2021-2024 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. # Translation tables library
  7. include lib/xlat_tables_v2/xlat_tables.mk
  8. # Include GICv3 driver files
  9. include drivers/arm/gic/v3/gicv3.mk
  10. PLAT_INCLUDES := -Iplat/imx/imx8ulp/include \
  11. -Iplat/imx/common/include \
  12. -Iplat/imx/imx8ulp/upower
  13. IMX_GIC_SOURCES := ${GICV3_SOURCES} \
  14. plat/common/plat_gicv3.c \
  15. plat/common/plat_psci_common.c \
  16. plat/imx/common/plat_imx8_gic.c
  17. BL31_SOURCES += plat/imx/common/lpuart_console.S \
  18. plat/imx/common/imx8_helpers.S \
  19. plat/imx/imx8ulp/imx8ulp_bl31_setup.c \
  20. plat/imx/imx8ulp/imx8ulp_psci.c \
  21. plat/imx/imx8ulp/apd_context.c \
  22. plat/imx/common/imx8_topology.c \
  23. plat/imx/common/imx_sip_svc.c \
  24. plat/imx/common/imx_sip_handler.c \
  25. plat/imx/common/imx_bl31_common.c \
  26. plat/common/plat_psci_common.c \
  27. lib/cpus/aarch64/cortex_a35.S \
  28. drivers/delay_timer/delay_timer.c \
  29. drivers/delay_timer/generic_delay_timer.c \
  30. plat/imx/imx8ulp/xrdc/xrdc_core.c \
  31. plat/imx/imx8ulp/imx8ulp_caam.c \
  32. plat/imx/imx8ulp/dram.c \
  33. drivers/scmi-msg/base.c \
  34. drivers/scmi-msg/entry.c \
  35. drivers/scmi-msg/smt.c \
  36. drivers/scmi-msg/power_domain.c \
  37. drivers/scmi-msg/sensor.c \
  38. plat/imx/imx8ulp/scmi/scmi.c \
  39. plat/imx/imx8ulp/scmi/scmi_pd.c \
  40. plat/imx/imx8ulp/scmi/scmi_sensor.c \
  41. plat/imx/imx8ulp/upower/upower_api.c \
  42. plat/imx/imx8ulp/upower/upower_hal.c \
  43. ${XLAT_TABLES_LIB_SRCS} \
  44. ${IMX_GIC_SOURCES}
  45. ifeq ($(findstring clang,$(notdir $(CC))),)
  46. TF_CFLAGS_aarch64 += -fno-strict-aliasing
  47. endif
  48. USE_COHERENT_MEM := 1
  49. RESET_TO_BL31 := 1
  50. SEPARATE_NOBITS_REGION := 1
  51. SEPARATE_RWDATA_REGION := 1
  52. PROGRAMMABLE_RESET_ADDRESS := 1
  53. COLD_BOOT_SINGLE_CPU := 1
  54. WARMBOOT_ENABLE_DCACHE_EARLY := 1
  55. BL32_BASE ?= 0xa6000000
  56. BL32_SIZE ?= 0x2000000
  57. $(eval $(call add_define,BL32_BASE))
  58. $(eval $(call add_define,BL32_SIZE))
  59. ifeq (${SPD},trusty)
  60. BL31_CFLAGS += -DPLAT_XLAT_TABLES_DYNAMIC=1
  61. endif