Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
87311b4c
"vscode:/vscode.git/clone" did not exist on "6cc12e031ea8744a0dedb3c25ba3d73fe062772d"
Commit
87311b4c
authored
Aug 03, 2021
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Aug 03, 2021
Browse files
Merge "refactor: moved drivers hdr files to include/drivers/nxp" into integration
parents
5e4e13e1
050a99a6
Changes
56
Show whitespace changes
Inline
Side-by-side
drivers/nxp/auth/csf_hdr_parser/csf_hdr.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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))
...
...
drivers/nxp/console/console.mk
View file @
87311b4c
...
...
@@ -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
...
...
drivers/nxp/crypto/caam/caam.mk
View file @
87311b4c
#
# 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
_DRIVER
S
_PATH)
/
crypto/caam/
src/
*
.c
)
PLAT_INCLUDES
+=
-I
$(
CAAM
_DRIVER
_PATH)
/include
PLAT_INCLUDES
+=
-I
$(
PLAT
_DRIVER
S_INCLUDE_PATH)
/crypto/caam
ifeq
(${BL_COMM_CRYPTO_NEEDED},yes)
BL_COMMON_SOURCES
+=
${CAAM_DRIVER_SOURCES}
...
...
drivers/nxp/csu/csu.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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}
...
...
drivers/nxp/dcfg/dcfg.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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}
...
...
drivers/nxp/ddr/fsl-mmdc/ddr.mk
View file @
87311b4c
...
...
@@ -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
#------------------------------------------------
drivers/nxp/ddr/nxp-ddr/ddr.mk
View file @
87311b4c
...
...
@@ -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
drivers/nxp/drivers.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
NXP
#
# SPDX-License-Identifier: BSD-3-Clause
#
...
...
@@ -9,6 +9,7 @@
PLAT_DRIVERS_PATH
:=
drivers/nxp
PLAT_DRIVERS_INCLUDE_PATH
:=
include/drivers/nxp
ifeq
(${SMMU_NEEDED},yes)
PLAT_INCLUDES
+=
-Iinclude
/drivers/nxp/smmu/
...
...
drivers/nxp/gic/gic.mk
View file @
87311b4c
...
...
@@ -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
...
...
drivers/nxp/gpio/gpio.mk
View file @
87311b4c
...
...
@@ -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}
...
...
drivers/nxp/i2c/i2c.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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}
...
...
drivers/nxp/interconnect/interconnect.mk
View file @
87311b4c
# Copyright 202
0
NXP
# Copyright 202
1
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!)
...
...
drivers/nxp/pmu/pmu.mk
View file @
87311b4c
...
...
@@ -8,11 +8,9 @@ ifeq (${PMU_ADDED},)
PMU_ADDED
:=
1
P
MU_DRIVERS_PATH
:=
${
PLAT_DRIVERS_PATH
}
/pmu
P
LAT_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}
...
...
drivers/nxp/qspi/qspi.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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}
...
...
drivers/nxp/sd/sd_mmc.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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}
...
...
drivers/nxp/sec_mon/sec_mon.mk
View file @
87311b4c
...
...
@@ -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}
...
...
drivers/nxp/sfp/sfp.mk
View file @
87311b4c
#
# Copyright 202
0
NXP
# Copyright 202
1
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)
...
...
drivers/nxp/timer/timer.mk
View file @
87311b4c
...
...
@@ -8,9 +8,7 @@ ifeq (${ADD_TIMER},)
ADD_TIMER
:=
1
TIMER_DRIVERS_PATH
:=
${PLAT_DRIVERS_PATH}
/timer
PLAT_INCLUDES
+=
-I
$(TIMER_DRIVERS_PATH)
PLAT_INCLUDES
+=
-I
$(PLAT_DRIVERS_INCLUDE_PATH)
/timer
TIMER_SOURCES
+=
drivers/delay_timer/delay_timer.c
\
$(PLAT_DRIVERS_PATH)
/timer/nxp_timer.c
...
...
drivers/nxp/tzc/tzc.mk
View file @
87311b4c
...
...
@@ -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
...
...
drivers/nxp/auth/csf_hdr_parser/csf_hdr.h
→
include/
drivers/nxp/auth/csf_hdr_parser/csf_hdr.h
View file @
87311b4c
/*
* Copyright 2017-202
0
NXP
* Copyright 2017-202
1
NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment