summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Feilke <[email protected]>2026-05-22 13:09:15 +0200
committerFabio Estevam <[email protected]>2026-06-05 08:59:25 -0300
commit76b12586eb91ebbaa58f1fd8e75c33992febb3f1 (patch)
tree433c7942c0345bf7959fbd03e5525780a4438b44
parent2d47fbc31d3db4d43d9c9b33432e9ef04d33bf0c (diff)
board: tqma7: update fastboot env
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 <[email protected]>
-rw-r--r--board/tq/tqma7/tqma7.env11
1 files changed, 9 insertions, 2 deletions
diff --git a/board/tq/tqma7/tqma7.env b/board/tq/tqma7/tqma7.env
index 857f16d11bb..05035078869 100644
--- a/board/tq/tqma7/tqma7.env
+++ b/board/tq/tqma7/tqma7.env
@@ -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