From 050a99a62f1df4de589be077b5b5fffe3c93afc7 Mon Sep 17 00:00:00 2001 From: Pankaj Gupta Date: Thu, 25 Mar 2021 15:15:52 +0530 Subject: [PATCH] refactor: moved drivers hdr files to include/drivers/nxp NXP drivers header files are moved: - from: drivers/nxp//*.h - to : include/drivers/nxp//*.h To accommodate these changes each drivers makefiles drivers/nxp//xx.mk, are updated. Signed-off-by: Pankaj Gupta Change-Id: I3979c509724d87e3d631a03dbafda1ee5ef07d21 --- drivers/nxp/auth/csf_hdr_parser/csf_hdr.mk | 4 ++-- drivers/nxp/console/console.mk | 2 +- drivers/nxp/crypto/caam/caam.mk | 7 +++---- drivers/nxp/csu/csu.mk | 8 +++----- drivers/nxp/dcfg/dcfg.mk | 8 +++----- drivers/nxp/ddr/fsl-mmdc/ddr.mk | 12 ++++++------ drivers/nxp/ddr/nxp-ddr/ddr.mk | 17 +++++++---------- drivers/nxp/drivers.mk | 5 +++-- drivers/nxp/gic/gic.mk | 4 ++-- drivers/nxp/gpio/gpio.mk | 6 ++---- drivers/nxp/i2c/i2c.mk | 8 ++++---- drivers/nxp/interconnect/interconnect.mk | 4 ++-- drivers/nxp/pmu/pmu.mk | 6 ++---- drivers/nxp/qspi/qspi.mk | 8 +++----- drivers/nxp/sd/sd_mmc.mk | 8 +++----- drivers/nxp/sec_mon/sec_mon.mk | 6 ++---- drivers/nxp/sfp/sfp.mk | 10 ++++------ drivers/nxp/timer/timer.mk | 6 ++---- drivers/nxp/tzc/tzc.mk | 6 ++---- .../drivers}/nxp/auth/csf_hdr_parser/csf_hdr.h | 2 +- .../drivers}/nxp/console/plat_console.h | 0 .../drivers/nxp/crypto/caam}/caam.h | 2 +- .../drivers/nxp/crypto/caam}/caam_io.h | 2 +- .../drivers/nxp/crypto/caam}/hash.h | 2 +- .../drivers/nxp/crypto/caam}/jobdesc.h | 2 +- .../drivers/nxp/crypto/caam}/jr_driver_config.h | 2 +- .../drivers/nxp/crypto/caam}/rsa.h | 2 +- .../drivers/nxp/crypto/caam}/sec_hw_specific.h | 2 +- .../drivers/nxp/crypto/caam}/sec_jr_driver.h | 2 +- {drivers => include/drivers}/nxp/csu/csu.h | 2 +- {drivers => include/drivers}/nxp/dcfg/dcfg.h | 2 +- .../drivers}/nxp/dcfg/dcfg_lsch2.h | 2 +- .../drivers}/nxp/dcfg/dcfg_lsch3.h | 2 +- {drivers => include/drivers}/nxp/dcfg/scfg.h | 2 +- .../include => include/drivers/nxp/ddr}/ddr.h | 0 .../drivers/nxp/ddr}/ddr_io.h | 0 .../include => include/drivers/nxp/ddr}/dimm.h | 0 .../drivers}/nxp/ddr/fsl-mmdc/fsl_mmdc.h | 0 .../include => include/drivers/nxp/ddr}/immap.h | 0 .../include => include/drivers/nxp/ddr}/opts.h | 0 .../include => include/drivers/nxp/ddr}/regs.h | 0 .../drivers/nxp/ddr}/utility.h | 0 .../drivers/nxp/gic}/gicv2/plat_gic.h | 0 .../drivers/nxp/gic}/gicv3/plat_gic.h | 0 .../drivers}/nxp/gpio/nxp_gpio.h | 0 {drivers => include/drivers}/nxp/i2c/i2c.h | 2 +- .../drivers}/nxp/interconnect/ls_interconnect.h | 2 +- {drivers => include/drivers}/nxp/pmu/pmu.h | 0 {drivers => include/drivers}/nxp/qspi/qspi.h | 0 {drivers => include/drivers}/nxp/sd/sd_mmc.h | 2 +- {drivers => include/drivers}/nxp/sec_mon/snvs.h | 0 .../drivers}/nxp/sfp/fuse_prov.h | 0 {drivers => include/drivers}/nxp/sfp/sfp.h | 0 .../drivers}/nxp/sfp/sfp_error_codes.h | 0 .../drivers}/nxp/timer/nxp_timer.h | 0 .../drivers}/nxp/tzc/plat_tzc400.h | 0 56 files changed, 73 insertions(+), 96 deletions(-) rename {drivers => include/drivers}/nxp/auth/csf_hdr_parser/csf_hdr.h (99%) rename {drivers => include/drivers}/nxp/console/plat_console.h (100%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/caam.h (97%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/caam_io.h (98%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/hash.h (98%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/jobdesc.h (98%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/jr_driver_config.h (99%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/rsa.h (96%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/sec_hw_specific.h (99%) rename {drivers/nxp/crypto/caam/include => include/drivers/nxp/crypto/caam}/sec_jr_driver.h (99%) rename {drivers => include/drivers}/nxp/csu/csu.h (97%) rename {drivers => include/drivers}/nxp/dcfg/dcfg.h (98%) rename {drivers => include/drivers}/nxp/dcfg/dcfg_lsch2.h (98%) rename {drivers => include/drivers}/nxp/dcfg/dcfg_lsch3.h (98%) rename {drivers => include/drivers}/nxp/dcfg/scfg.h (98%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/ddr.h (100%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/ddr_io.h (100%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/dimm.h (100%) rename {drivers => include/drivers}/nxp/ddr/fsl-mmdc/fsl_mmdc.h (100%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/immap.h (100%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/opts.h (100%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/regs.h (100%) rename {drivers/nxp/ddr/include => include/drivers/nxp/ddr}/utility.h (100%) rename {drivers/nxp/gic/include => include/drivers/nxp/gic}/gicv2/plat_gic.h (100%) rename {drivers/nxp/gic/include => include/drivers/nxp/gic}/gicv3/plat_gic.h (100%) rename {drivers => include/drivers}/nxp/gpio/nxp_gpio.h (100%) rename {drivers => include/drivers}/nxp/i2c/i2c.h (98%) rename {drivers => include/drivers}/nxp/interconnect/ls_interconnect.h (92%) rename {drivers => include/drivers}/nxp/pmu/pmu.h (100%) rename {drivers => include/drivers}/nxp/qspi/qspi.h (100%) rename {drivers => include/drivers}/nxp/sd/sd_mmc.h (99%) rename {drivers => include/drivers}/nxp/sec_mon/snvs.h (100%) rename {drivers => include/drivers}/nxp/sfp/fuse_prov.h (100%) rename {drivers => include/drivers}/nxp/sfp/sfp.h (100%) rename {drivers => include/drivers}/nxp/sfp/sfp_error_codes.h (100%) rename {drivers => include/drivers}/nxp/timer/nxp_timer.h (100%) rename {drivers => include/drivers}/nxp/tzc/plat_tzc400.h (100%) diff --git a/drivers/nxp/auth/csf_hdr_parser/csf_hdr.mk b/drivers/nxp/auth/csf_hdr_parser/csf_hdr.mk index d518dbba9..1af51f809 100644 --- a/drivers/nxp/auth/csf_hdr_parser/csf_hdr.mk +++ b/drivers/nxp/auth/csf_hdr_parser/csf_hdr.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -9,7 +9,7 @@ CSF_HDR_SOURCES := $(PLAT_DRIVERS_PATH)/auth/csf_hdr_parser/csf_hdr_parser.c CSF_HDR_SOURCES += $(PLAT_DRIVERS_PATH)/auth/csf_hdr_parser/plat_img_parser.c -PLAT_INCLUDES += -I$(PLAT_DRIVERS_PATH)/auth/csf_hdr_parser/ +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/auth/csf_hdr_parser/ $(eval $(call add_define, CSF_HEADER_PREPENDED)) diff --git a/drivers/nxp/console/console.mk b/drivers/nxp/console/console.mk index 22d13360e..6174650d1 100644 --- a/drivers/nxp/console/console.mk +++ b/drivers/nxp/console/console.mk @@ -14,7 +14,7 @@ ifeq (${ADD_CONSOLE},) ADD_CONSOLE := 1 -PLAT_INCLUDES += -I$(PLAT_DRIVERS_PATH)/console +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/console ifeq ($(CONSOLE), NS16550) NXP_CONSOLE := NS16550 diff --git a/drivers/nxp/crypto/caam/caam.mk b/drivers/nxp/crypto/caam/caam.mk index 548c7b147..f929f5395 100644 --- a/drivers/nxp/crypto/caam/caam.mk +++ b/drivers/nxp/crypto/caam/caam.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2020-2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -8,11 +8,10 @@ ifeq (${ADD_CAAM},) ADD_CAAM := 1 -CAAM_DRIVER_PATH := drivers/nxp/crypto/caam -CAAM_DRIVER_SOURCES += $(wildcard $(CAAM_DRIVER_PATH)/src/*.c) +CAAM_DRIVER_SOURCES += $(wildcard $(PLAT_DRIVERS_PATH)/crypto/caam/src/*.c) -PLAT_INCLUDES += -I$(CAAM_DRIVER_PATH)/include +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/crypto/caam ifeq (${BL_COMM_CRYPTO_NEEDED},yes) BL_COMMON_SOURCES += ${CAAM_DRIVER_SOURCES} diff --git a/drivers/nxp/csu/csu.mk b/drivers/nxp/csu/csu.mk index ebdf67483..bc16035ef 100644 --- a/drivers/nxp/csu/csu.mk +++ b/drivers/nxp/csu/csu.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -8,11 +8,9 @@ ifeq (${CSU_ADDED},) CSU_ADDED := 1 -CSU_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/csu +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/csu -PLAT_INCLUDES += -I$(CSU_DRIVERS_PATH) - -CSU_SOURCES += $(CSU_DRIVERS_PATH)/csu.c +CSU_SOURCES += $(PLAT_DRIVERS_PATH)/csu/csu.c ifeq (${BL_COMM_CSU_NEEDED},yes) BL_COMMON_SOURCES += ${CSU_SOURCES} diff --git a/drivers/nxp/dcfg/dcfg.mk b/drivers/nxp/dcfg/dcfg.mk index 61d185045..206595f10 100644 --- a/drivers/nxp/dcfg/dcfg.mk +++ b/drivers/nxp/dcfg/dcfg.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -8,11 +8,9 @@ ifeq (${ADD_DCFG},) ADD_DCFG := 1 -DCFG_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/dcfg +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/dcfg -PLAT_INCLUDES += -I$(DCFG_DRIVERS_PATH) - -DCFG_SOURCES += $(DCFG_DRIVERS_PATH)/dcfg.c +DCFG_SOURCES += $(PLAT_DRIVERS_PATH)/dcfg/dcfg.c ifeq (${BL_COMM_DCFG_NEEDED},yes) BL_COMMON_SOURCES += ${DCFG_SOURCES} diff --git a/drivers/nxp/ddr/fsl-mmdc/ddr.mk b/drivers/nxp/ddr/fsl-mmdc/ddr.mk index e6cc7c1d0..afccb623d 100644 --- a/drivers/nxp/ddr/fsl-mmdc/ddr.mk +++ b/drivers/nxp/ddr/fsl-mmdc/ddr.mk @@ -9,11 +9,11 @@ DDR_DRIVERS_PATH := drivers/nxp/ddr -DDR_CNTLR_SOURCES := ${DDR_DRIVERS_PATH}/fsl-mmdc/fsl_mmdc.c \ - ${DDR_DRIVERS_PATH}/nxp-ddr/utility.c \ - ${DDR_DRIVERS_PATH}/nxp-ddr/ddr.c \ - ${DDR_DRIVERS_PATH}/nxp-ddr/ddrc.c +DDR_CNTLR_SOURCES := ${PLAT_DRIVERS_PATH}/ddr/fsl-mmdc/fsl_mmdc.c \ + ${PLAT_DRIVERS_PATH}/ddr/nxp-ddr/utility.c \ + ${PLAT_DRIVERS_PATH}/ddr/nxp-ddr/ddr.c \ + ${PLAT_DRIVERS_PATH}/ddr/nxp-ddr/ddrc.c -PLAT_INCLUDES += -I$(DDR_DRIVERS_PATH)/include \ - -I$(DDR_DRIVERS_PATH)/fsl-mmdc +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ddr \ + -I$(PLAT_DRIVERS_INCLUDE_PATH)/ddr/fsl-mmdc #------------------------------------------------ diff --git a/drivers/nxp/ddr/nxp-ddr/ddr.mk b/drivers/nxp/ddr/nxp-ddr/ddr.mk index 866c09216..6bdd947c2 100644 --- a/drivers/nxp/ddr/nxp-ddr/ddr.mk +++ b/drivers/nxp/ddr/nxp-ddr/ddr.mk @@ -4,8 +4,6 @@ # SPDX-License-Identifier: BSD-3-Clause # -DDR_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/ddr - ifeq ($(PLAT_DDR_PHY), PHY_GEN2) $(eval $(call add_define, PHY_GEN2)) PLAT_DDR_PHY_DIR := phy-gen2 @@ -68,12 +66,11 @@ ifeq ($(DEBUG_DDR_INPUT_CONFIG), yes) $(eval $(call add_define, DEBUG_DDR_INPUT_CONFIG)) endif -DDR_CNTLR_SOURCES := $(DDR_DRIVERS_PATH)/nxp-ddr/ddr.c \ - $(DDR_DRIVERS_PATH)/nxp-ddr/ddrc.c \ - $(DDR_DRIVERS_PATH)/nxp-ddr/dimm.c \ - $(DDR_DRIVERS_PATH)/nxp-ddr/regs.c \ - $(DDR_DRIVERS_PATH)/nxp-ddr/utility.c \ - $(DDR_DRIVERS_PATH)/$(PLAT_DDR_PHY_DIR)/phy.c +DDR_CNTLR_SOURCES := $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/ddr.c \ + $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/ddrc.c \ + $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/dimm.c \ + $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/regs.c \ + $(PLAT_DRIVERS_PATH)/ddr/nxp-ddr/utility.c \ + $(PLAT_DRIVERS_PATH)/ddr/$(PLAT_DDR_PHY_DIR)/phy.c -PLAT_INCLUDES += -I$(DDR_DRIVERS_PATH)/nxp-ddr \ - -I$(DDR_DRIVERS_PATH)/include +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ddr diff --git a/drivers/nxp/drivers.mk b/drivers/nxp/drivers.mk index c6d55411d..c2db363c8 100644 --- a/drivers/nxp/drivers.mk +++ b/drivers/nxp/drivers.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -8,7 +8,8 @@ ############################################################################### -PLAT_DRIVERS_PATH := drivers/nxp +PLAT_DRIVERS_PATH := drivers/nxp +PLAT_DRIVERS_INCLUDE_PATH := include/drivers/nxp ifeq (${SMMU_NEEDED},yes) PLAT_INCLUDES += -Iinclude/drivers/nxp/smmu/ diff --git a/drivers/nxp/gic/gic.mk b/drivers/nxp/gic/gic.mk index 68091e8c3..d75e07119 100644 --- a/drivers/nxp/gic/gic.mk +++ b/drivers/nxp/gic/gic.mk @@ -17,7 +17,7 @@ GIC_SOURCES += ${GICV2_SOURCES} GIC_SOURCES += ${PLAT_DRIVERS_PATH}/gic/ls_gicv2.c \ plat/common/plat_gicv2.c -PLAT_INCLUDES += -I${PLAT_DRIVERS_PATH}/gic/include/gicv2 +PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/gic/gicv2 else ifeq ($(GIC), GIC500) include drivers/arm/gic/v3/gicv3.mk @@ -25,7 +25,7 @@ GIC_SOURCES += ${GICV3_SOURCES} GIC_SOURCES += ${PLAT_DRIVERS_PATH}/gic/ls_gicv3.c \ plat/common/plat_gicv3.c -PLAT_INCLUDES += -I${PLAT_DRIVERS_PATH}/gic/include/gicv3 +PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/gic/gicv3 else $(error -> GIC type not set!) endif diff --git a/drivers/nxp/gpio/gpio.mk b/drivers/nxp/gpio/gpio.mk index 157c60a16..74f0dc4bf 100644 --- a/drivers/nxp/gpio/gpio.mk +++ b/drivers/nxp/gpio/gpio.mk @@ -9,11 +9,9 @@ ifeq (${GPIO_ADDED},) GPIO_ADDED := 1 -GPIO_DRIVERS_PATH := drivers/nxp/gpio +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/gpio -PLAT_INCLUDES += -I$(GPIO_DRIVERS_PATH) - -GPIO_SOURCES := $(GPIO_DRIVERS_PATH)/nxp_gpio.c +GPIO_SOURCES := $(PLAT_DRIVERS_PATH)/gpio/nxp_gpio.c ifeq (${BL_COMM_GPIO_NEEDED},yes) BL_COMMON_SOURCES += ${GPIO_SOURCES} diff --git a/drivers/nxp/i2c/i2c.mk b/drivers/nxp/i2c/i2c.mk index ae89115f8..716e14a82 100644 --- a/drivers/nxp/i2c/i2c.mk +++ b/drivers/nxp/i2c/i2c.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -7,10 +7,10 @@ ifeq (${ADD_I2C},) ADD_I2C := 1 -I2C_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/i2c -I2C_SOURCES += $(I2C_DRIVERS_PATH)/i2c.c -PLAT_INCLUDES += -I$(I2C_DRIVERS_PATH) +I2C_SOURCES += $(PLAT_DRIVERS_PATH)/i2c/i2c.c + +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/i2c ifeq (${BL_COMM_I2C_NEEDED},yes) BL_COMMON_SOURCES += ${I2C_SOURCES} diff --git a/drivers/nxp/interconnect/interconnect.mk b/drivers/nxp/interconnect/interconnect.mk index 81e3fa972..aa51be4cb 100644 --- a/drivers/nxp/interconnect/interconnect.mk +++ b/drivers/nxp/interconnect/interconnect.mk @@ -1,4 +1,4 @@ -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -12,7 +12,7 @@ ifeq (${ADD_INTERCONNECT},) ADD_INTERCONNECT := 1 -PLAT_INCLUDES += -I${PLAT_DRIVERS_PATH}/interconnect +PLAT_INCLUDES += -I${PLAT_DRIVERS_INCLUDE_PATH}/interconnect ifeq (, $(filter $(INTERCONNECT), CCI400 CCN502 CCN504 CCN508)) $(error -> Interconnect type not set!) diff --git a/drivers/nxp/pmu/pmu.mk b/drivers/nxp/pmu/pmu.mk index 56b04229e..8d2ef07c4 100644 --- a/drivers/nxp/pmu/pmu.mk +++ b/drivers/nxp/pmu/pmu.mk @@ -8,11 +8,9 @@ ifeq (${PMU_ADDED},) PMU_ADDED := 1 -PMU_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/pmu +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/pmu -PLAT_INCLUDES += -I$(PMU_DRIVERS_PATH) - -PMU_SOURCES += $(PMU_DRIVERS_PATH)/pmu.c +PMU_SOURCES += $(PLAT_DRIVERS_PATH)/pmu/pmu.c ifeq (${BL_COMM_PMU_NEEDED},yes) BL_COMMON_SOURCES += ${PMU_SOURCES} diff --git a/drivers/nxp/qspi/qspi.mk b/drivers/nxp/qspi/qspi.mk index 3e2c7350a..b83dee2c5 100644 --- a/drivers/nxp/qspi/qspi.mk +++ b/drivers/nxp/qspi/qspi.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -8,11 +8,9 @@ ifeq (${QSPI_ADDED},) QSPI_ADDED := 1 -QSPI_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/qspi +QSPI_SOURCES := $(PLAT_DRIVERS_PATH)/qspi/qspi.c -QSPI_SOURCES := $(QSPI_DRIVERS_PATH)/qspi.c - -PLAT_INCLUDES += -I$(QSPI_DRIVERS_PATH) +PLAT_INCLUDES += -I$(PLAT_DRIVERS_PATH)/qspi ifeq (${BL_COMM_QSPI_NEEDED},yes) BL_COMMON_SOURCES += ${QSPI_SOURCES} diff --git a/drivers/nxp/sd/sd_mmc.mk b/drivers/nxp/sd/sd_mmc.mk index af91b1f14..c83b1bd18 100644 --- a/drivers/nxp/sd/sd_mmc.mk +++ b/drivers/nxp/sd/sd_mmc.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -8,12 +8,10 @@ ifeq (${ADD_SD_MMC},) ADD_SD_MMC := 1 -SD_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sd - -SD_MMC_BOOT_SOURCES += ${SD_DRIVERS_PATH}/sd_mmc.c \ +SD_MMC_BOOT_SOURCES += ${PLAT_DRIVERS_PATH}/sd/sd_mmc.c \ drivers/io/io_block.c -PLAT_INCLUDES += -I$(SD_DRIVERS_PATH) +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sd ifeq (${BL_COMM_SD_MMC_NEEDED},yes) BL_COMMON_SOURCES += ${SD_MMC_BOOT_SOURCES} diff --git a/drivers/nxp/sec_mon/sec_mon.mk b/drivers/nxp/sec_mon/sec_mon.mk index 51e3e8636..aaac53f88 100644 --- a/drivers/nxp/sec_mon/sec_mon.mk +++ b/drivers/nxp/sec_mon/sec_mon.mk @@ -8,11 +8,9 @@ ifeq (${ADD_SNVS},) ADD_SNVS := 1 -SNVS_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sec_mon +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sec_mon -PLAT_INCLUDES += -I$(SNVS_DRIVERS_PATH) - -SNVS_SOURCES += $(SNVS_DRIVERS_PATH)/snvs.c +SNVS_SOURCES += $(PLAT_DRIVERS_PATH)/sec_mon/snvs.c ifeq (${BL_COMM_SNVS_NEEDED},yes) BL_COMMON_SOURCES += ${SNVS_SOURCES} diff --git a/drivers/nxp/sfp/sfp.mk b/drivers/nxp/sfp/sfp.mk index 2546dc281..de708c5df 100644 --- a/drivers/nxp/sfp/sfp.mk +++ b/drivers/nxp/sfp/sfp.mk @@ -1,5 +1,5 @@ # -# Copyright 2020 NXP +# Copyright 2021 NXP # # SPDX-License-Identifier: BSD-3-Clause # @@ -9,14 +9,12 @@ ifeq (${SFP_ADDED},) SFP_ADDED := 1 $(eval $(call add_define, NXP_SFP_ENABLED)) -SFP_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sfp +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sfp -PLAT_INCLUDES += -I$(SFP_DRIVERS_PATH) - -SFP_SOURCES += $(SFP_DRIVERS_PATH)/sfp.c +SFP_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/sfp.c ifeq (${FUSE_PROG}, 1) -SFP_BL2_SOURCES += $(SFP_DRIVERS_PATH)/fuse_prov.c +SFP_BL2_SOURCES += $(PLAT_DRIVERS_PATH)/sfp/fuse_prov.c endif ifeq (${BL_COMM_SFP_NEEDED},yes) diff --git a/drivers/nxp/timer/timer.mk b/drivers/nxp/timer/timer.mk index b9e298f2f..d658d19f1 100644 --- a/drivers/nxp/timer/timer.mk +++ b/drivers/nxp/timer/timer.mk @@ -8,10 +8,8 @@ ifeq (${ADD_TIMER},) ADD_TIMER := 1 -TIMER_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/timer - -PLAT_INCLUDES += -I$(TIMER_DRIVERS_PATH) -TIMER_SOURCES += drivers/delay_timer/delay_timer.c \ +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/timer +TIMER_SOURCES += drivers/delay_timer/delay_timer.c \ $(PLAT_DRIVERS_PATH)/timer/nxp_timer.c ifeq (${BL_COMM_TIMER_NEEDED},yes) diff --git a/drivers/nxp/tzc/tzc.mk b/drivers/nxp/tzc/tzc.mk index 830d78ed5..3fba28fd3 100644 --- a/drivers/nxp/tzc/tzc.mk +++ b/drivers/nxp/tzc/tzc.mk @@ -8,13 +8,11 @@ ifeq (${ADD_TZASC},) ADD_TZASC := 1 -TZASC_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/tzc - -PLAT_INCLUDES += -I$(TZASC_DRIVERS_PATH) +PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/tzc ifeq ($(TZC_ID), TZC400) TZASC_SOURCES += drivers/arm/tzc/tzc400.c\ - $(TZASC_DRIVERS_PATH)/plat_tzc400.c + $(PLAT_DRIVERS_PATH)/tzc/plat_tzc400.c else ifeq ($(TZC_ID), NONE) $(info -> No TZC present on platform) else diff --git a/drivers/nxp/auth/csf_hdr_parser/csf_hdr.h b/include/drivers/nxp/auth/csf_hdr_parser/csf_hdr.h similarity index 99% rename from drivers/nxp/auth/csf_hdr_parser/csf_hdr.h rename to include/drivers/nxp/auth/csf_hdr_parser/csf_hdr.h index eaead7614..ae56d3b65 100644 --- a/drivers/nxp/auth/csf_hdr_parser/csf_hdr.h +++ b/include/drivers/nxp/auth/csf_hdr_parser/csf_hdr.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/console/plat_console.h b/include/drivers/nxp/console/plat_console.h similarity index 100% rename from drivers/nxp/console/plat_console.h rename to include/drivers/nxp/console/plat_console.h diff --git a/drivers/nxp/crypto/caam/include/caam.h b/include/drivers/nxp/crypto/caam/caam.h similarity index 97% rename from drivers/nxp/crypto/caam/include/caam.h rename to include/drivers/nxp/crypto/caam/caam.h index 580e133fc..4984b5423 100644 --- a/drivers/nxp/crypto/caam/include/caam.h +++ b/include/drivers/nxp/crypto/caam/caam.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/caam_io.h b/include/drivers/nxp/crypto/caam/caam_io.h similarity index 98% rename from drivers/nxp/crypto/caam/include/caam_io.h rename to include/drivers/nxp/crypto/caam/caam_io.h index 4fdb04d6d..b68f836c9 100644 --- a/drivers/nxp/crypto/caam/include/caam_io.h +++ b/include/drivers/nxp/crypto/caam/caam_io.h @@ -1,5 +1,5 @@ /* - * Copyright 2018-2020 NXP + * Copyright 2018-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/hash.h b/include/drivers/nxp/crypto/caam/hash.h similarity index 98% rename from drivers/nxp/crypto/caam/include/hash.h rename to include/drivers/nxp/crypto/caam/hash.h index 946087d46..9136dca2d 100644 --- a/drivers/nxp/crypto/caam/include/hash.h +++ b/include/drivers/nxp/crypto/caam/hash.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/jobdesc.h b/include/drivers/nxp/crypto/caam/jobdesc.h similarity index 98% rename from drivers/nxp/crypto/caam/include/jobdesc.h rename to include/drivers/nxp/crypto/caam/jobdesc.h index 5921f7be3..efef228fb 100644 --- a/drivers/nxp/crypto/caam/include/jobdesc.h +++ b/include/drivers/nxp/crypto/caam/jobdesc.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/jr_driver_config.h b/include/drivers/nxp/crypto/caam/jr_driver_config.h similarity index 99% rename from drivers/nxp/crypto/caam/include/jr_driver_config.h rename to include/drivers/nxp/crypto/caam/jr_driver_config.h index f25c42e4d..1b3c447ae 100644 --- a/drivers/nxp/crypto/caam/include/jr_driver_config.h +++ b/include/drivers/nxp/crypto/caam/jr_driver_config.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/rsa.h b/include/drivers/nxp/crypto/caam/rsa.h similarity index 96% rename from drivers/nxp/crypto/caam/include/rsa.h rename to include/drivers/nxp/crypto/caam/rsa.h index bd5dc7114..dd9ecdc98 100644 --- a/drivers/nxp/crypto/caam/include/rsa.h +++ b/include/drivers/nxp/crypto/caam/rsa.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/sec_hw_specific.h b/include/drivers/nxp/crypto/caam/sec_hw_specific.h similarity index 99% rename from drivers/nxp/crypto/caam/include/sec_hw_specific.h rename to include/drivers/nxp/crypto/caam/sec_hw_specific.h index a82a1a019..a4fc0221f 100644 --- a/drivers/nxp/crypto/caam/include/sec_hw_specific.h +++ b/include/drivers/nxp/crypto/caam/sec_hw_specific.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/crypto/caam/include/sec_jr_driver.h b/include/drivers/nxp/crypto/caam/sec_jr_driver.h similarity index 99% rename from drivers/nxp/crypto/caam/include/sec_jr_driver.h rename to include/drivers/nxp/crypto/caam/sec_jr_driver.h index 1381eaba9..57e0fa0ee 100644 --- a/drivers/nxp/crypto/caam/include/sec_jr_driver.h +++ b/include/drivers/nxp/crypto/caam/sec_jr_driver.h @@ -1,5 +1,5 @@ /* - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/csu/csu.h b/include/drivers/nxp/csu/csu.h similarity index 97% rename from drivers/nxp/csu/csu.h rename to include/drivers/nxp/csu/csu.h index 9f82feb0a..3a43e45a6 100644 --- a/drivers/nxp/csu/csu.h +++ b/include/drivers/nxp/csu/csu.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 NXP + * Copyright 2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/dcfg/dcfg.h b/include/drivers/nxp/dcfg/dcfg.h similarity index 98% rename from drivers/nxp/dcfg/dcfg.h rename to include/drivers/nxp/dcfg/dcfg.h index 161e2950f..3f4855ae5 100644 --- a/drivers/nxp/dcfg/dcfg.h +++ b/include/drivers/nxp/dcfg/dcfg.h @@ -1,5 +1,5 @@ /* - * Copyright 2018-2020 NXP + * Copyright 2018-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/dcfg/dcfg_lsch2.h b/include/drivers/nxp/dcfg/dcfg_lsch2.h similarity index 98% rename from drivers/nxp/dcfg/dcfg_lsch2.h rename to include/drivers/nxp/dcfg/dcfg_lsch2.h index c021aa163..2838aca98 100644 --- a/drivers/nxp/dcfg/dcfg_lsch2.h +++ b/include/drivers/nxp/dcfg/dcfg_lsch2.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 NXP + * Copyright 2020-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/dcfg/dcfg_lsch3.h b/include/drivers/nxp/dcfg/dcfg_lsch3.h similarity index 98% rename from drivers/nxp/dcfg/dcfg_lsch3.h rename to include/drivers/nxp/dcfg/dcfg_lsch3.h index 814454253..40f02c190 100644 --- a/drivers/nxp/dcfg/dcfg_lsch3.h +++ b/include/drivers/nxp/dcfg/dcfg_lsch3.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 NXP + * Copyright 2020-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/dcfg/scfg.h b/include/drivers/nxp/dcfg/scfg.h similarity index 98% rename from drivers/nxp/dcfg/scfg.h rename to include/drivers/nxp/dcfg/scfg.h index 81df9a61a..b6e3df566 100644 --- a/drivers/nxp/dcfg/scfg.h +++ b/include/drivers/nxp/dcfg/scfg.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 NXP + * Copyright 2020-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/ddr/include/ddr.h b/include/drivers/nxp/ddr/ddr.h similarity index 100% rename from drivers/nxp/ddr/include/ddr.h rename to include/drivers/nxp/ddr/ddr.h diff --git a/drivers/nxp/ddr/include/ddr_io.h b/include/drivers/nxp/ddr/ddr_io.h similarity index 100% rename from drivers/nxp/ddr/include/ddr_io.h rename to include/drivers/nxp/ddr/ddr_io.h diff --git a/drivers/nxp/ddr/include/dimm.h b/include/drivers/nxp/ddr/dimm.h similarity index 100% rename from drivers/nxp/ddr/include/dimm.h rename to include/drivers/nxp/ddr/dimm.h diff --git a/drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.h b/include/drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.h similarity index 100% rename from drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.h rename to include/drivers/nxp/ddr/fsl-mmdc/fsl_mmdc.h diff --git a/drivers/nxp/ddr/include/immap.h b/include/drivers/nxp/ddr/immap.h similarity index 100% rename from drivers/nxp/ddr/include/immap.h rename to include/drivers/nxp/ddr/immap.h diff --git a/drivers/nxp/ddr/include/opts.h b/include/drivers/nxp/ddr/opts.h similarity index 100% rename from drivers/nxp/ddr/include/opts.h rename to include/drivers/nxp/ddr/opts.h diff --git a/drivers/nxp/ddr/include/regs.h b/include/drivers/nxp/ddr/regs.h similarity index 100% rename from drivers/nxp/ddr/include/regs.h rename to include/drivers/nxp/ddr/regs.h diff --git a/drivers/nxp/ddr/include/utility.h b/include/drivers/nxp/ddr/utility.h similarity index 100% rename from drivers/nxp/ddr/include/utility.h rename to include/drivers/nxp/ddr/utility.h diff --git a/drivers/nxp/gic/include/gicv2/plat_gic.h b/include/drivers/nxp/gic/gicv2/plat_gic.h similarity index 100% rename from drivers/nxp/gic/include/gicv2/plat_gic.h rename to include/drivers/nxp/gic/gicv2/plat_gic.h diff --git a/drivers/nxp/gic/include/gicv3/plat_gic.h b/include/drivers/nxp/gic/gicv3/plat_gic.h similarity index 100% rename from drivers/nxp/gic/include/gicv3/plat_gic.h rename to include/drivers/nxp/gic/gicv3/plat_gic.h diff --git a/drivers/nxp/gpio/nxp_gpio.h b/include/drivers/nxp/gpio/nxp_gpio.h similarity index 100% rename from drivers/nxp/gpio/nxp_gpio.h rename to include/drivers/nxp/gpio/nxp_gpio.h diff --git a/drivers/nxp/i2c/i2c.h b/include/drivers/nxp/i2c/i2c.h similarity index 98% rename from drivers/nxp/i2c/i2c.h rename to include/drivers/nxp/i2c/i2c.h index 925bbc0e6..85e6eb4cf 100644 --- a/drivers/nxp/i2c/i2c.h +++ b/include/drivers/nxp/i2c/i2c.h @@ -1,5 +1,5 @@ /* - * Copyright 2016-2020 NXP + * Copyright 2016-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/interconnect/ls_interconnect.h b/include/drivers/nxp/interconnect/ls_interconnect.h similarity index 92% rename from drivers/nxp/interconnect/ls_interconnect.h rename to include/drivers/nxp/interconnect/ls_interconnect.h index 26787fb4d..777089c80 100644 --- a/drivers/nxp/interconnect/ls_interconnect.h +++ b/include/drivers/nxp/interconnect/ls_interconnect.h @@ -1,5 +1,5 @@ /* - * Copyright 2020 NXP + * Copyright 2020-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/pmu/pmu.h b/include/drivers/nxp/pmu/pmu.h similarity index 100% rename from drivers/nxp/pmu/pmu.h rename to include/drivers/nxp/pmu/pmu.h diff --git a/drivers/nxp/qspi/qspi.h b/include/drivers/nxp/qspi/qspi.h similarity index 100% rename from drivers/nxp/qspi/qspi.h rename to include/drivers/nxp/qspi/qspi.h diff --git a/drivers/nxp/sd/sd_mmc.h b/include/drivers/nxp/sd/sd_mmc.h similarity index 99% rename from drivers/nxp/sd/sd_mmc.h rename to include/drivers/nxp/sd/sd_mmc.h index 29ad32873..32b41f137 100644 --- a/drivers/nxp/sd/sd_mmc.h +++ b/include/drivers/nxp/sd/sd_mmc.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2015, 2016 Freescale Semiconductor, Inc. - * Copyright 2017-2020 NXP + * Copyright 2017-2021 NXP * * SPDX-License-Identifier: BSD-3-Clause * diff --git a/drivers/nxp/sec_mon/snvs.h b/include/drivers/nxp/sec_mon/snvs.h similarity index 100% rename from drivers/nxp/sec_mon/snvs.h rename to include/drivers/nxp/sec_mon/snvs.h diff --git a/drivers/nxp/sfp/fuse_prov.h b/include/drivers/nxp/sfp/fuse_prov.h similarity index 100% rename from drivers/nxp/sfp/fuse_prov.h rename to include/drivers/nxp/sfp/fuse_prov.h diff --git a/drivers/nxp/sfp/sfp.h b/include/drivers/nxp/sfp/sfp.h similarity index 100% rename from drivers/nxp/sfp/sfp.h rename to include/drivers/nxp/sfp/sfp.h diff --git a/drivers/nxp/sfp/sfp_error_codes.h b/include/drivers/nxp/sfp/sfp_error_codes.h similarity index 100% rename from drivers/nxp/sfp/sfp_error_codes.h rename to include/drivers/nxp/sfp/sfp_error_codes.h diff --git a/drivers/nxp/timer/nxp_timer.h b/include/drivers/nxp/timer/nxp_timer.h similarity index 100% rename from drivers/nxp/timer/nxp_timer.h rename to include/drivers/nxp/timer/nxp_timer.h diff --git a/drivers/nxp/tzc/plat_tzc400.h b/include/drivers/nxp/tzc/plat_tzc400.h similarity index 100% rename from drivers/nxp/tzc/plat_tzc400.h rename to include/drivers/nxp/tzc/plat_tzc400.h