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