common.mk 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #
  2. # Copyright (c) 2018-2022, Renesas Electronics Corporation. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. PROGRAMMABLE_RESET_ADDRESS := 0
  7. COLD_BOOT_SINGLE_CPU := 1
  8. ARM_CCI_PRODUCT_ID := 500
  9. TRUSTED_BOARD_BOOT := 1
  10. RESET_TO_BL31 := 1
  11. GENERATE_COT := 1
  12. RESET_TO_BL2 := 1
  13. ENABLE_SVE_FOR_NS := 0
  14. CRASH_REPORTING := 1
  15. HANDLE_EA_EL3_FIRST_NS := 1
  16. # This option gets enabled automatically if the TRUSTED_BOARD_BOOT
  17. # is set via root Makefile, but Renesas support Trusted-Boot without
  18. # Crypto module.
  19. override CRYPTO_SUPPORT := 0
  20. $(eval $(call add_define,PLAT_EXTRA_LD_SCRIPT))
  21. ifeq (${SPD},none)
  22. SPD_NONE:=1
  23. $(eval $(call add_define,SPD_NONE))
  24. endif
  25. # LSI setting common define
  26. RCAR_H3:=0
  27. RCAR_M3:=1
  28. RCAR_M3N:=2
  29. RCAR_E3:=3
  30. RCAR_H3N:=4
  31. RCAR_D3:=5
  32. RCAR_V3M:=6
  33. RCAR_AUTO:=99
  34. RZ_G2M:=100
  35. RZ_G2H:=101
  36. RZ_G2N:=102
  37. RZ_G2E:=103
  38. $(eval $(call add_define,RCAR_H3))
  39. $(eval $(call add_define,RCAR_M3))
  40. $(eval $(call add_define,RCAR_M3N))
  41. $(eval $(call add_define,RCAR_E3))
  42. $(eval $(call add_define,RCAR_H3N))
  43. $(eval $(call add_define,RCAR_D3))
  44. $(eval $(call add_define,RCAR_V3M))
  45. $(eval $(call add_define,RCAR_AUTO))
  46. $(eval $(call add_define,RZ_G2M))
  47. $(eval $(call add_define,RZ_G2H))
  48. $(eval $(call add_define,RZ_G2N))
  49. $(eval $(call add_define,RZ_G2E))
  50. RCAR_CUT_10:=0
  51. RCAR_CUT_11:=1
  52. RCAR_CUT_13:=3
  53. RCAR_CUT_20:=10
  54. RCAR_CUT_30:=20
  55. $(eval $(call add_define,RCAR_CUT_10))
  56. $(eval $(call add_define,RCAR_CUT_11))
  57. $(eval $(call add_define,RCAR_CUT_13))
  58. $(eval $(call add_define,RCAR_CUT_20))
  59. $(eval $(call add_define,RCAR_CUT_30))
  60. # Enable workarounds for selected Cortex-A53 erratas.
  61. ERRATA_A53_835769 := 1
  62. ERRATA_A53_843419 := 1
  63. ERRATA_A53_855873 := 1
  64. ERRATA_A53_1530924 := 1
  65. # Enable workarounds for selected Cortex-A57 erratas.
  66. ERRATA_A57_859972 := 1
  67. ERRATA_A57_813419 := 1
  68. ERRATA_A57_1319537 := 1
  69. PLAT_INCLUDES := -Iplat/renesas/common/include/registers \
  70. -Iplat/renesas/common/include \
  71. -Iplat/renesas/common
  72. PLAT_BL_COMMON_SOURCES := drivers/renesas/common/iic_dvfs/iic_dvfs.c \
  73. plat/renesas/common/rcar_common.c
  74. include drivers/arm/gic/v2/gicv2.mk
  75. RCAR_GIC_SOURCES := ${GICV2_SOURCES} \
  76. plat/common/plat_gicv2.c
  77. BL2_SOURCES += ${RCAR_GIC_SOURCES} \
  78. lib/cpus/aarch64/cortex_a53.S \
  79. lib/cpus/aarch64/cortex_a57.S \
  80. ${LIBFDT_SRCS} \
  81. common/desc_image_load.c \
  82. plat/renesas/common/aarch64/platform_common.c \
  83. plat/renesas/common/aarch64/plat_helpers.S \
  84. plat/renesas/common/bl2_interrupt_error.c \
  85. plat/renesas/common/bl2_secure_setting.c \
  86. plat/renesas/common/plat_storage.c \
  87. plat/renesas/common/bl2_plat_mem_params_desc.c \
  88. plat/renesas/common/plat_image_load.c \
  89. plat/renesas/common/bl2_cpg_init.c \
  90. drivers/renesas/common/console/rcar_printf.c \
  91. drivers/renesas/common/scif/scif.S \
  92. drivers/renesas/common/common.c \
  93. drivers/renesas/common/io/io_emmcdrv.c \
  94. drivers/renesas/common/io/io_memdrv.c \
  95. drivers/renesas/common/io/io_rcar.c \
  96. drivers/renesas/common/auth/auth_mod.c \
  97. drivers/renesas/common/rpc/rpc_driver.c \
  98. drivers/renesas/common/dma/dma_driver.c \
  99. drivers/renesas/common/avs/avs_driver.c \
  100. drivers/renesas/common/delay/micro_delay.c \
  101. drivers/renesas/common/emmc/emmc_interrupt.c \
  102. drivers/renesas/common/emmc/emmc_utility.c \
  103. drivers/renesas/common/emmc/emmc_mount.c \
  104. drivers/renesas/common/emmc/emmc_init.c \
  105. drivers/renesas/common/emmc/emmc_read.c \
  106. drivers/renesas/common/emmc/emmc_cmd.c \
  107. drivers/renesas/common/watchdog/swdt.c \
  108. drivers/renesas/common/rom/rom_api.c \
  109. drivers/io/io_storage.c
  110. BL31_SOURCES += ${RCAR_GIC_SOURCES} \
  111. lib/cpus/aarch64/cortex_a53.S \
  112. lib/cpus/aarch64/cortex_a57.S \
  113. plat/common/plat_psci_common.c \
  114. plat/renesas/common/plat_topology.c \
  115. plat/renesas/common/aarch64/plat_helpers.S \
  116. plat/renesas/common/aarch64/platform_common.c \
  117. plat/renesas/common/bl31_plat_setup.c \
  118. plat/renesas/common/plat_pm.c \
  119. drivers/renesas/common/console/rcar_console.S \
  120. drivers/renesas/common/console/rcar_printf.c \
  121. drivers/renesas/common/delay/micro_delay.c \
  122. drivers/renesas/common/pwrc/call_sram.S \
  123. drivers/renesas/common/pwrc/pwrc.c \
  124. drivers/renesas/common/common.c \
  125. drivers/arm/cci/cci.c
  126. include lib/xlat_tables_v2/xlat_tables.mk
  127. PLAT_BL_COMMON_SOURCES += ${XLAT_TABLES_LIB_SRCS}