summaryrefslogtreecommitdiffstats
path: root/drivers/nxp/drivers.mk
blob: d77e9854960eaa6aa2c5acc13a484572bd91ee05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# Copyright 2021 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
#
#

###############################################################################


PLAT_DRIVERS_PATH		:=	drivers/nxp
PLAT_DRIVERS_INCLUDE_PATH	:=	include/drivers/nxp

ifeq (${SMMU_NEEDED},yes)
PLAT_INCLUDES	+= -Iinclude/drivers/nxp/smmu/
endif

ifeq (${DCFG_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/dcfg/dcfg.mk
endif

ifeq (${CSU_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/csu/csu.mk
endif

ifeq (${TIMER_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/timer/timer.mk
endif

ifeq (${INTERCONNECT_NEEDED},yes)
include ${PLAT_DRIVERS_PATH}/interconnect/interconnect.mk
endif

ifeq (${GIC_NEEDED},yes)
include ${PLAT_DRIVERS_PATH}/gic/gic.mk
endif

ifeq (${SD_MMC_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/sd/sd_mmc.mk
endif

ifeq (${CONSOLE_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/console/console.mk
endif

ifeq (${SFP_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/sfp/sfp.mk
endif

ifeq (${XSPI_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/flexspi/nor/flexspi_nor.mk
endif

ifeq (${QSPI_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/qspi/qspi.mk
endif

ifeq (${SNVS_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/sec_mon/sec_mon.mk
endif

ifeq ($(I2C_NEEDED),yes)
$(eval $(call add_define, I2C_INIT))
include $(PLAT_DRIVERS_PATH)/i2c/i2c.mk
endif

ifeq ($(DDR_DRIVER_NEEDED),yes)
$(eval $(call add_define, DDR_INIT))
# define DDR_CNTRL_SOURCES
ifeq ($(DDRCNTLR),MMDC)
include $(PLAT_DRIVERS_PATH)/ddr/fsl-mmdc/ddr.mk
else
include $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/ddr.mk
endif # DDR_CNTRL_SOURCES
endif

ifeq (${PMU_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/pmu/pmu.mk
endif

ifeq (${CRYPTO_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/crypto/caam/caam.mk
endif

ifeq (${TZASC_NEEDED},yes)
include $(PLAT_DRIVERS_PATH)/tzc/tzc.mk
endif

ifeq (${GPIO_NEEDED},yes)
include ${PLAT_DRIVERS_PATH}/gpio/gpio.mk
endif

ifeq (${IFC_NOR_NEEDED},yes)
include ${PLAT_DRIVERS_PATH}/ifc/nor/ifc_nor.mk
endif

ifeq (${IFC_NAND_NEEDED},yes)
include ${PLAT_DRIVERS_PATH}/ifc/nand/ifc_nand.mk
endif