platform.mk 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #
  2. # Copyright (c) 2023, ARM Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. RK_PLAT := plat/rockchip
  7. RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
  8. RK_PLAT_COMMON := ${RK_PLAT}/common
  9. DISABLE_BIN_GENERATION := 1
  10. GICV3_SUPPORT_GIC600 := 1
  11. include lib/coreboot/coreboot.mk
  12. include lib/libfdt/libfdt.mk
  13. include lib/xlat_tables_v2/xlat_tables.mk
  14. # GIC-600 configuration
  15. GICV3_IMPL := GIC600
  16. # Include GICv3 driver files
  17. include drivers/arm/gic/v3/gicv3.mk
  18. PLAT_INCLUDES := -Iinclude/bl31 \
  19. -Iinclude/common \
  20. -Iinclude/drivers \
  21. -Iinclude/drivers/arm \
  22. -Iinclude/drivers/auth \
  23. -Iinclude/drivers/io \
  24. -Iinclude/drivers/ti/uart \
  25. -Iinclude/lib \
  26. -Iinclude/lib/cpus/${ARCH} \
  27. -Iinclude/lib/el3_runtime \
  28. -Iinclude/lib/pmf \
  29. -Iinclude/lib/psci \
  30. -Iinclude/plat/common \
  31. -Iinclude/services \
  32. -Iinclude/plat/common/ \
  33. -Idrivers/arm/gic/v3/ \
  34. -I${RK_PLAT_COMMON}/ \
  35. -I${RK_PLAT_COMMON}/pmusram/ \
  36. -I${RK_PLAT_COMMON}/include/ \
  37. -I${RK_PLAT_COMMON}/drivers/pmu/ \
  38. -I${RK_PLAT_COMMON}/drivers/parameter/ \
  39. -I${RK_PLAT_SOC}/ \
  40. -I${RK_PLAT_SOC}/drivers/pmu/ \
  41. -I${RK_PLAT_SOC}/drivers/soc/ \
  42. -I${RK_PLAT_SOC}/include/
  43. RK_GIC_SOURCES := ${GICV3_SOURCES} \
  44. plat/common/plat_gicv3.c \
  45. ${RK_PLAT}/common/rockchip_gicv3.c
  46. PLAT_BL_COMMON_SOURCES := ${XLAT_TABLES_LIB_SRCS} \
  47. common/desc_image_load.c \
  48. plat/common/aarch64/crash_console_helpers.S \
  49. lib/bl_aux_params/bl_aux_params.c \
  50. plat/common/plat_psci_common.c
  51. ifneq (${ENABLE_STACK_PROTECTOR},0)
  52. PLAT_BL_COMMON_SOURCES += ${RK_PLAT_COMMON}/rockchip_stack_protector.c
  53. endif
  54. BL31_SOURCES += ${RK_GIC_SOURCES} \
  55. drivers/arm/cci/cci.c \
  56. lib/cpus/aarch64/cortex_a55.S \
  57. drivers/ti/uart/aarch64/16550_console.S \
  58. drivers/delay_timer/delay_timer.c \
  59. drivers/delay_timer/generic_delay_timer.c \
  60. $(LIBFDT_SRCS) \
  61. ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
  62. ${RK_PLAT_COMMON}/bl31_plat_setup.c \
  63. ${RK_PLAT_COMMON}/params_setup.c \
  64. ${RK_PLAT_COMMON}/plat_pm.c \
  65. ${RK_PLAT_COMMON}/plat_topology.c \
  66. ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
  67. ${RK_PLAT_COMMON}/pmusram/cpus_on_fixed_addr.S \
  68. ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c \
  69. ${RK_PLAT_COMMON}/aarch64/platform_common.c \
  70. ${RK_PLAT_SOC}/drivers/soc/soc.c \
  71. ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
  72. ${RK_PLAT_SOC}/plat_sip_calls.c
  73. ENABLE_PLAT_COMPAT := 0
  74. MULTI_CONSOLE_API := 1
  75. # System coherency is managed in hardware
  76. HW_ASSISTED_COHERENCY := 1
  77. #Enable errata for cortex_a55
  78. ERRATA_A55_1530923 := 1
  79. # When building for systems with hardware-assisted coherency, there's no need to
  80. # use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
  81. USE_COHERENT_MEM := 0
  82. $(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))
  83. $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
  84. # Do not enable SVE
  85. ENABLE_SVE_FOR_NS := 0