Debian Codegraph @

drivers/nxp/drivers.mk

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