platform.mk 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. #Copyright (c) 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. -Iinclude/plat/common/ \
  14. -I${RK_PLAT_COMMON}/ \
  15. -I${RK_PLAT_COMMON}/include/ \
  16. -I${RK_PLAT_COMMON}/drivers/parameter/ \
  17. -I${RK_PLAT_COMMON}/pmusram \
  18. -I${RK_PLAT_SOC}/ \
  19. -I${RK_PLAT_SOC}/drivers/pmu/ \
  20. -I${RK_PLAT_SOC}/drivers/secure/ \
  21. -I${RK_PLAT_SOC}/drivers/soc/ \
  22. -I${RK_PLAT_SOC}/include/
  23. RK_GIC_SOURCES := ${GICV2_SOURCES} \
  24. plat/common/plat_gicv2.c \
  25. plat/common/aarch64/crash_console_helpers.S \
  26. ${RK_PLAT}/common/rockchip_gicv2.c
  27. PLAT_BL_COMMON_SOURCES := lib/bl_aux_params/bl_aux_params.c \
  28. lib/xlat_tables/xlat_tables_common.c \
  29. lib/xlat_tables/aarch64/xlat_tables.c \
  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. common/desc_image_load.c \
  36. drivers/arm/cci/cci.c \
  37. drivers/delay_timer/delay_timer.c \
  38. drivers/delay_timer/generic_delay_timer.c \
  39. drivers/ti/uart/aarch64/16550_console.S \
  40. lib/cpus/aarch64/cortex_a35.S \
  41. ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \
  42. ${RK_PLAT_COMMON}/aarch64/platform_common.c \
  43. ${RK_PLAT_COMMON}/bl31_plat_setup.c \
  44. ${RK_PLAT_COMMON}/params_setup.c \
  45. ${RK_PLAT_COMMON}/pmusram/cpus_on_fixed_addr.S \
  46. ${RK_PLAT_COMMON}/plat_pm.c \
  47. ${RK_PLAT_COMMON}/plat_topology.c \
  48. ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
  49. ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
  50. ${RK_PLAT_SOC}/drivers/secure/secure.c \
  51. ${RK_PLAT_SOC}/drivers/soc/soc.c \
  52. ${RK_PLAT_SOC}/plat_sip_calls.c
  53. ifdef PLAT_RK_SECURE_DDR_MINILOADER
  54. BL31_SOURCES += ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c
  55. endif
  56. ENABLE_PLAT_COMPAT := 0
  57. include lib/libfdt/libfdt.mk
  58. $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
  59. $(eval $(call add_define,PLAT_SKIP_OPTEE_S_EL1_INT_REGISTER))
  60. $(eval $(call add_define,PLAT_WARMBOOT_ADDR_NOT_ALIGN))