]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
board: tqma7: update fastboot env
authorAlexander Feilke <alexander.feilke@ew.tq-group.com>
Fri, 22 May 2026 11:09:15 +0000 (13:09 +0200)
committerFabio Estevam <festevam@gmail.com>
Fri, 5 Jun 2026 11:59:25 +0000 (08:59 -0300)
Replace magic value with documented variable.
While at it, restrict fastboot env guard to USB
as its the only supported fastboot method.

Fixes d000ce5efee3 ("board: tqma7: add code for u-boot with spl")

Signed-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>
board/tq/tqma7/tqma7.env

index 857f16d11bb2ad70723ed202d6382ad8a3e370a4..05035078869a6544773caeb73fde0fbe04aa51f5 100644 (file)
@@ -28,8 +28,15 @@ uboot_spi_sector_size=TQMA7_SPI_FLASH_SECTOR_SIZE
 uboot_spi_start=TQMA7_SPI_UBOOT_START
 uboot_spi_size=TQMA7_SPI_UBOOT_SIZE
 
-#ifdef CONFIG_FASTBOOT_UUU_SUPPORT
+#ifdef CONFIG_USB_FUNCTION_FASTBOOT
+
+/* 0=user 1=boot1 2=boot2 */
+fastboot_mmc_boot_partition = 1
+
 fastboot_partition_alias_all=CONFIG_FASTBOOT_FLASH_MMC_DEV:0
-fastboot_raw_partition_bootloader=TQMA7_MMC_UBOOT_SECTOR_START TQMA7_MMC_UBOOT_SECTOR_COUNT mmcpart 1
+fastboot_raw_partition_bootloader=
+       TQMA7_MMC_UBOOT_SECTOR_START TQMA7_MMC_UBOOT_SECTOR_COUNT mmcpart
+       "${fastboot_mmc_boot_partition}"
 fastbootcmd=fastboot usb 0
+
 #endif