drivers.mk 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # Copyright 2021 NXP
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. #
  7. ###############################################################################
  8. PLAT_DRIVERS_PATH := drivers/nxp
  9. PLAT_DRIVERS_INCLUDE_PATH := include/drivers/nxp
  10. ifeq (${SMMU_NEEDED},yes)
  11. PLAT_INCLUDES += -Iinclude/drivers/nxp/smmu/
  12. endif
  13. ifeq (${DCFG_NEEDED},yes)
  14. include $(PLAT_DRIVERS_PATH)/dcfg/dcfg.mk
  15. endif
  16. ifeq (${CSU_NEEDED},yes)
  17. include $(PLAT_DRIVERS_PATH)/csu/csu.mk
  18. endif
  19. ifeq (${TIMER_NEEDED},yes)
  20. include $(PLAT_DRIVERS_PATH)/timer/timer.mk
  21. endif
  22. ifeq (${INTERCONNECT_NEEDED},yes)
  23. include ${PLAT_DRIVERS_PATH}/interconnect/interconnect.mk
  24. endif
  25. ifeq (${GIC_NEEDED},yes)
  26. include ${PLAT_DRIVERS_PATH}/gic/gic.mk
  27. endif
  28. ifeq (${SD_MMC_NEEDED},yes)
  29. include $(PLAT_DRIVERS_PATH)/sd/sd_mmc.mk
  30. endif
  31. ifeq (${CONSOLE_NEEDED},yes)
  32. include $(PLAT_DRIVERS_PATH)/console/console.mk
  33. endif
  34. ifeq (${SFP_NEEDED},yes)
  35. include $(PLAT_DRIVERS_PATH)/sfp/sfp.mk
  36. endif
  37. ifeq (${XSPI_NEEDED},yes)
  38. include $(PLAT_DRIVERS_PATH)/flexspi/nor/flexspi_nor.mk
  39. endif
  40. ifeq (${QSPI_NEEDED},yes)
  41. include $(PLAT_DRIVERS_PATH)/qspi/qspi.mk
  42. endif
  43. ifeq (${SNVS_NEEDED},yes)
  44. include $(PLAT_DRIVERS_PATH)/sec_mon/sec_mon.mk
  45. endif
  46. ifeq ($(I2C_NEEDED),yes)
  47. $(eval $(call add_define, I2C_INIT))
  48. include $(PLAT_DRIVERS_PATH)/i2c/i2c.mk
  49. endif
  50. ifeq ($(DDR_DRIVER_NEEDED),yes)
  51. $(eval $(call add_define, DDR_INIT))
  52. # define DDR_CNTRL_SOURCES
  53. ifeq ($(DDRCNTLR),MMDC)
  54. include $(PLAT_DRIVERS_PATH)/ddr/fsl-mmdc/ddr.mk
  55. else
  56. include $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/ddr.mk
  57. endif # DDR_CNTRL_SOURCES
  58. endif
  59. ifeq (${PMU_NEEDED},yes)
  60. include $(PLAT_DRIVERS_PATH)/pmu/pmu.mk
  61. endif
  62. ifeq (${CRYPTO_NEEDED},yes)
  63. include $(PLAT_DRIVERS_PATH)/crypto/caam/caam.mk
  64. endif
  65. ifeq (${TZASC_NEEDED},yes)
  66. include $(PLAT_DRIVERS_PATH)/tzc/tzc.mk
  67. endif
  68. ifeq (${GPIO_NEEDED},yes)
  69. include ${PLAT_DRIVERS_PATH}/gpio/gpio.mk
  70. endif
  71. ifeq (${IFC_NOR_NEEDED},yes)
  72. include ${PLAT_DRIVERS_PATH}/ifc/nor/ifc_nor.mk
  73. endif
  74. ifeq (${IFC_NAND_NEEDED},yes)
  75. include ${PLAT_DRIVERS_PATH}/ifc/nand/ifc_nand.mk
  76. endif