platform.mk 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Copyright (c) 2015-2022, ARM Limited and Contributors. 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. PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
  9. -I${MTK_PLAT}/include/ \
  10. -Iinclude/plat/arm/common/aarch64 \
  11. -I${MTK_PLAT_SOC}/drivers/crypt/ \
  12. -I${MTK_PLAT_SOC}/drivers/mtcmos/ \
  13. -I${MTK_PLAT_SOC}/drivers/pmic/ \
  14. -I${MTK_PLAT_SOC}/drivers/rtc/ \
  15. -I${MTK_PLAT_SOC}/drivers/spm/ \
  16. -I${MTK_PLAT_SOC}/drivers/timer/ \
  17. -I${MTK_PLAT_SOC}/drivers/wdt/ \
  18. -I${MTK_PLAT_SOC}/include/
  19. PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
  20. lib/xlat_tables/aarch64/xlat_tables.c \
  21. plat/arm/common/arm_gicv2.c \
  22. plat/common/plat_gicv2.c \
  23. plat/common/aarch64/crash_console_helpers.S
  24. BL31_SOURCES += common/desc_image_load.c \
  25. drivers/arm/cci/cci.c \
  26. drivers/arm/gic/common/gic_common.c \
  27. drivers/arm/gic/v2/gicv2_main.c \
  28. drivers/arm/gic/v2/gicv2_helpers.c \
  29. drivers/delay_timer/delay_timer.c \
  30. drivers/delay_timer/generic_delay_timer.c \
  31. drivers/ti/uart/aarch64/16550_console.S \
  32. lib/cpus/aarch64/aem_generic.S \
  33. lib/cpus/aarch64/cortex_a53.S \
  34. lib/cpus/aarch64/cortex_a57.S \
  35. lib/cpus/aarch64/cortex_a72.S \
  36. ${MTK_PLAT}/common/mtk_plat_common.c \
  37. ${MTK_PLAT}/common/mtk_sip_svc.c \
  38. ${MTK_PLAT}/drivers/pmic_wrap/pmic_wrap_init.c \
  39. ${MTK_PLAT}/drivers/rtc/rtc_common.c \
  40. ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
  41. ${MTK_PLAT_SOC}/aarch64/platform_common.c \
  42. ${MTK_PLAT_SOC}/bl31_plat_setup.c \
  43. ${MTK_PLAT_SOC}/drivers/crypt/crypt.c \
  44. ${MTK_PLAT_SOC}/drivers/mtcmos/mtcmos.c \
  45. ${MTK_PLAT_SOC}/drivers/rtc/rtc.c \
  46. ${MTK_PLAT_SOC}/drivers/spm/spm.c \
  47. ${MTK_PLAT_SOC}/drivers/spm/spm_hotplug.c \
  48. ${MTK_PLAT_SOC}/drivers/spm/spm_mcdi.c \
  49. ${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c \
  50. ${MTK_PLAT_SOC}/drivers/timer/mt_cpuxgpt.c \
  51. ${MTK_PLAT_SOC}/drivers/wdt/wdt.c \
  52. ${MTK_PLAT_SOC}/plat_pm.c \
  53. ${MTK_PLAT_SOC}/plat_sip_calls.c \
  54. ${MTK_PLAT_SOC}/plat_topology.c \
  55. ${MTK_PLAT_SOC}/power_tracer.c \
  56. ${MTK_PLAT_SOC}/scu.c
  57. # Enable workarounds for selected Cortex-A53 erratas.
  58. ERRATA_A53_826319 := 1
  59. ERRATA_A53_836870 := 1
  60. ERRATA_A53_855873 := 1
  61. # indicate the reset vector address can be programmed
  62. PROGRAMMABLE_RESET_ADDRESS := 1
  63. $(eval $(call add_define,MTK_SIP_SET_AUTHORIZED_SECURE_REG_ENABLE))
  64. # Do not enable SVE
  65. ENABLE_SVE_FOR_NS := 0