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