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