platform.mk 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #
  2. # Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. include drivers/arm/gic/v2/gicv2.mk
  7. RK_PLAT := plat/rockchip
  8. RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
  9. RK_PLAT_COMMON := ${RK_PLAT}/common
  10. DISABLE_BIN_GENERATION := 1
  11. PLAT_INCLUDES := -Idrivers/arm/gic/common/ \
  12. -Idrivers/arm/gic/v2/ \
  13. -I${RK_PLAT_COMMON}/ \
  14. -I${RK_PLAT_COMMON}/include/ \
  15. -I${RK_PLAT_COMMON}/aarch64/ \
  16. -I${RK_PLAT_COMMON}/drivers/pmu/ \
  17. -I${RK_PLAT_COMMON}/drivers/parameter/ \
  18. -I${RK_PLAT_SOC}/ \
  19. -I${RK_PLAT_SOC}/drivers/pmu/ \
  20. -I${RK_PLAT_SOC}/drivers/soc/ \
  21. -I${RK_PLAT_SOC}/include/
  22. RK_GIC_SOURCES := ${GICV2_SOURCES} \
  23. plat/common/plat_gicv2.c \
  24. ${RK_PLAT}/common/rockchip_gicv2.c
  25. PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
  26. lib/bl_aux_params/bl_aux_params.c \
  27. lib/xlat_tables/aarch64/xlat_tables.c \
  28. lib/xlat_tables/xlat_tables_common.c \
  29. plat/common/aarch64/crash_console_helpers.S \
  30. plat/common/plat_psci_common.c
  31. ifneq (${ENABLE_STACK_PROTECTOR},0)
  32. PLAT_BL_COMMON_SOURCES += ${RK_PLAT_COMMON}/rockchip_stack_protector.c
  33. endif
  34. BL31_SOURCES += ${RK_GIC_SOURCES} \
  35. drivers/arm/cci/cci.c \
  36. drivers/ti/uart/aarch64/16550_console.S \
  37. drivers/delay_timer/delay_timer.c \
  38. drivers/delay_timer/generic_delay_timer.c \
  39. lib/cpus/aarch64/aem_generic.S \
  40. lib/cpus/aarch64/cortex_a53.S \
  41. ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
  42. ${RK_PLAT_COMMON}/params_setup.c \
  43. ${RK_PLAT_COMMON}/bl31_plat_setup.c \
  44. ${RK_PLAT_COMMON}/aarch64/pmu_sram_cpus_on.S \
  45. ${RK_PLAT_COMMON}/plat_pm.c \
  46. ${RK_PLAT_COMMON}/plat_topology.c \
  47. ${RK_PLAT_COMMON}/aarch64/platform_common.c \
  48. ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
  49. ${RK_PLAT_SOC}/drivers/soc/soc.c
  50. ifdef PLAT_RK_SECURE_DDR_MINILOADER
  51. BL31_SOURCES += ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c
  52. endif
  53. include lib/coreboot/coreboot.mk
  54. include lib/libfdt/libfdt.mk
  55. # Enable workarounds for selected Cortex-A53 errata
  56. ERRATA_A53_855873 := 1
  57. ERRATA_A53_1530924 := 1
  58. $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
  59. $(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))
  60. # Do not enable SVE
  61. ENABLE_SVE_FOR_NS := 0
  62. WORKAROUND_CVE_2017_5715 := 0