platform.mk 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright (c) 2022-2024, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. MTK_PLAT := plat/mediatek
  7. MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
  8. MTK_SOC := ${PLAT}
  9. include plat/mediatek/build_helpers/mtk_build_helpers.mk
  10. include drivers/arm/gic/v3/gicv3.mk
  11. include lib/xlat_tables_v2/xlat_tables.mk
  12. PLAT_INCLUDES := -I${MTK_PLAT}/common \
  13. -I${MTK_PLAT}/include \
  14. -I${MTK_PLAT}/include/${ARCH_VERSION} \
  15. -I${MTK_PLAT} \
  16. -I${MTK_PLAT_SOC}/include \
  17. -Idrivers/arm/gic \
  18. MODULES-y += $(MTK_PLAT)/common
  19. MODULES-y += $(MTK_PLAT)/common/lpm
  20. MODULES-y += $(MTK_PLAT)/lib/mtk_init
  21. MODULES-y += $(MTK_PLAT)/lib/pm
  22. MODULES-y += $(MTK_PLAT)/lib/system_reset
  23. MODULES-y += $(MTK_PLAT)/drivers/apusys
  24. MODULES-y += $(MTK_PLAT)/drivers/audio
  25. MODULES-y += $(MTK_PLAT)/drivers/cirq
  26. MODULES-y += $(MTK_PLAT)/drivers/cpu_pm
  27. MODULES-y += $(MTK_PLAT)/drivers/dcm
  28. MODULES-y += $(MTK_PLAT)/drivers/dfd
  29. MODULES-y += $(MTK_PLAT)/drivers/dp
  30. MODULES-y += $(MTK_PLAT)/drivers/emi_mpu
  31. MODULES-y += $(MTK_PLAT)/drivers/gic600
  32. MODULES-y += $(MTK_PLAT)/drivers/gpio
  33. MODULES-y += $(MTK_PLAT)/drivers/iommu
  34. MODULES-y += $(MTK_PLAT)/drivers/mcusys
  35. MODULES-y += $(MTK_PLAT)/drivers/pmic
  36. MODULES-y += $(MTK_PLAT)/drivers/pmic_wrap
  37. MODULES-y += $(MTK_PLAT)/drivers/ptp3
  38. ifeq (${TRNG_SUPPORT},1)
  39. MODULES-y += $(MTK_PLAT)/drivers/rng
  40. endif
  41. MODULES-y += $(MTK_PLAT)/drivers/rtc
  42. MODULES-y += $(MTK_PLAT)/drivers/spm
  43. MODULES-y += $(MTK_PLAT)/drivers/timer
  44. MODULES-y += $(MTK_PLAT)/drivers/usb
  45. MODULES-y += $(MTK_PLAT)/helpers
  46. MODULES-y += $(MTK_PLAT)/topology
  47. PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
  48. drivers/ti/uart/aarch64/16550_console.S \
  49. lib/bl_aux_params/bl_aux_params.c
  50. BL31_SOURCES += drivers/delay_timer/delay_timer.c \
  51. drivers/delay_timer/generic_delay_timer.c \
  52. lib/cpus/aarch64/cortex_a55.S \
  53. lib/cpus/aarch64/cortex_a78.S \
  54. ${GICV3_SOURCES} \
  55. ${XLAT_TABLES_LIB_SRCS} \
  56. plat/common/plat_gicv3.c \
  57. plat/common/plat_psci_common.c \
  58. plat/common/aarch64/crash_console_helpers.S \
  59. ${MTK_PLAT}/common/mtk_plat_common.c \
  60. ${MTK_PLAT}/common/params_setup.c \
  61. $(MTK_PLAT)/$(MTK_SOC)/plat_mmap.c
  62. include plat/mediatek/build_helpers/mtk_build_helpers_epilogue.mk
  63. include lib/coreboot/coreboot.mk