[openwrt/openwrt] arm-trusted-firmware-mediatek: use UBI on new NAND targets
LEDE Commits
lede-commits at lists.infradead.org
Thu Feb 15 11:34:46 PST 2024
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7cecabbe34612f513df4a5489748e57c24f0f3d2
commit 7cecabbe34612f513df4a5489748e57c24f0f3d2
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Jan 12 02:36:59 2024 +0000
arm-trusted-firmware-mediatek: use UBI on new NAND targets
Make use of recently added UBI support in MediaTek's ARM
TrustedFirmware-A on new MT7988 SoC.
Load fip from static UBI volume instead of fixed offset on SPIM-NAND
and SNFI.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
.../boot/arm-trusted-firmware-mediatek/Makefile | 24 +++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/package/boot/arm-trusted-firmware-mediatek/Makefile b/package/boot/arm-trusted-firmware-mediatek/Makefile
index 07ec2e0609..bfa0b785dd 100644
--- a/package/boot/arm-trusted-firmware-mediatek/Makefile
+++ b/package/boot/arm-trusted-firmware-mediatek/Makefile
@@ -33,6 +33,7 @@ define Trusted-Firmware-A/Default
NAND_TYPE:=
BOARD_QFN:=
DRAM_USE_COMB:=
+ USE_UBI:=
endef
define Trusted-Firmware-A/mt7622-nor-1ddr
@@ -353,6 +354,15 @@ define Trusted-Firmware-A/mt7988-snand-comb
DRAM_USE_COMB:=1
endef
+define Trusted-Firmware-A/mt7988-snand-ubi-comb
+ NAME:=MediaTek MT7988 (SPI-NAND via SNFI, UBI)
+ BOOT_DEVICE:=snand
+ BUILD_SUBTARGET:=filogic
+ PLAT:=mt7988
+ DRAM_USE_COMB:=1
+ USE_UBI:=1
+endef
+
define Trusted-Firmware-A/mt7988-spim-nand-comb
NAME:=MediaTek MT7988 (SPI-NAND via SPIM)
BOOT_DEVICE:=spim-nand
@@ -361,6 +371,15 @@ define Trusted-Firmware-A/mt7988-spim-nand-comb
DRAM_USE_COMB:=1
endef
+define Trusted-Firmware-A/mt7988-spim-nand-ubi-comb
+ NAME:=MediaTek MT7988 (SPI-NAND via SPIM, UBI)
+ BOOT_DEVICE:=spim-nand
+ BUILD_SUBTARGET:=filogic
+ PLAT:=mt7988
+ DRAM_USE_COMB:=1
+ USE_UBI:=1
+endef
+
TFA_TARGETS:= \
mt7622-nor-1ddr \
mt7622-nor-2ddr \
@@ -402,7 +421,9 @@ TFA_TARGETS:= \
mt7988-nor-comb \
mt7988-sdmmc-comb \
mt7988-snand-comb \
- mt7988-spim-nand-comb
+ mt7988-snand-ubi-comb \
+ mt7988-spim-nand-comb \
+ mt7988-spim-nand-ubi-comb
TFA_MAKE_FLAGS += \
BOOT_DEVICE=$(BOOT_DEVICE) \
@@ -413,6 +434,7 @@ TFA_MAKE_FLAGS += \
HAVE_DRAM_OBJ_FILE=yes \
$(if $(DDR3_FLYBY),DDR3_FLYBY=1) \
$(if $(DRAM_USE_COMB),DRAM_USE_COMB=1) \
+ $(if $(USE_UBI),UBI=1) \
all
define Package/trusted-firmware-a/install
More information about the lede-commits
mailing list