platform.mk 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Copyright (c) 2019-2023, Intel Corporation. All rights reserved.
  3. # Copyright (c) 2024, Altera Corporation. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-3-Clause
  6. #
  7. PLAT_INCLUDES := \
  8. -Iplat/intel/soc/n5x/include/ \
  9. -Iplat/intel/soc/common/drivers/ \
  10. -Iplat/intel/soc/common/include/
  11. # Include GICv2 driver files
  12. include drivers/arm/gic/v2/gicv2.mk
  13. DM_GICv2_SOURCES := \
  14. ${GICV2_SOURCES} \
  15. plat/common/plat_gicv2.c
  16. PLAT_BL_COMMON_SOURCES := \
  17. ${DM_GICv2_SOURCES} \
  18. drivers/delay_timer/delay_timer.c \
  19. drivers/delay_timer/generic_delay_timer.c \
  20. drivers/ti/uart/aarch64/16550_console.S \
  21. lib/xlat_tables/aarch64/xlat_tables.c \
  22. lib/xlat_tables/xlat_tables_common.c \
  23. plat/intel/soc/common/aarch64/platform_common.c \
  24. plat/intel/soc/common/aarch64/plat_helpers.S \
  25. plat/intel/soc/common/socfpga_delay_timer.c \
  26. plat/intel/soc/common/drivers/ccu/ncore_ccu.c
  27. BL2_SOURCES +=
  28. BL31_SOURCES += \
  29. drivers/arm/cci/cci.c \
  30. lib/cpus/aarch64/aem_generic.S \
  31. lib/cpus/aarch64/cortex_a53.S \
  32. plat/common/plat_psci_common.c \
  33. plat/intel/soc/n5x/bl31_plat_setup.c \
  34. plat/intel/soc/n5x/soc/n5x_clock_manager.c \
  35. plat/intel/soc/common/socfpga_psci.c \
  36. plat/intel/soc/common/socfpga_sip_svc.c \
  37. plat/intel/soc/common/socfpga_sip_svc_v2.c \
  38. plat/intel/soc/common/socfpga_topology.c \
  39. plat/intel/soc/common/sip/socfpga_sip_ecc.c \
  40. plat/intel/soc/common/sip/socfpga_sip_fcs.c \
  41. plat/intel/soc/common/soc/socfpga_mailbox.c \
  42. plat/intel/soc/common/soc/socfpga_reset_manager.c
  43. # Don't have the Linux kernel as a BL33 image by default
  44. ARM_LINUX_KERNEL_AS_BL33 := 0
  45. $(eval $(call assert_boolean,ARM_LINUX_KERNEL_AS_BL33))
  46. $(eval $(call add_define,ARM_LINUX_KERNEL_AS_BL33))
  47. $(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
  48. # Configs for Boot Source
  49. SOCFPGA_BOOT_SOURCE_SDMMC ?= 0
  50. SOCFPGA_BOOT_SOURCE_QSPI ?= 0
  51. SOCFPGA_BOOT_SOURCE_NAND ?= 0
  52. $(eval $(call assert_booleans,\
  53. $(sort \
  54. SOCFPGA_BOOT_SOURCE_SDMMC \
  55. SOCFPGA_BOOT_SOURCE_QSPI \
  56. SOCFPGA_BOOT_SOURCE_NAND \
  57. )))
  58. $(eval $(call add_defines,\
  59. $(sort \
  60. SOCFPGA_BOOT_SOURCE_SDMMC \
  61. SOCFPGA_BOOT_SOURCE_QSPI \
  62. SOCFPGA_BOOT_SOURCE_NAND \
  63. )))
  64. PROGRAMMABLE_RESET_ADDRESS := 0
  65. RESET_TO_BL2 := 1
  66. BL2_INV_DCACHE := 0
  67. USE_COHERENT_MEM := 1