From: Alexander Feilke <[email protected]>

Clarify the intended use of the variable. While at it, increase the value to 
0xf0000,
fitting inside the SPI bootloader partition of MTDPARTS_DEFAULT. This fixes the 
SPI
update script refusing to flash because the size limit is exceeded.

Signed-off-by: Alexander Feilke <[email protected]>
---
 board/tq/tqma6/tqma6.env | 2 +-
 include/configs/tqma6.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/tq/tqma6/tqma6.env b/board/tq/tqma6/tqma6.env
index b1d7e5cbbcf..ee92bf0bd1d 100644
--- a/board/tq/tqma6/tqma6.env
+++ b/board/tq/tqma6/tqma6.env
@@ -29,7 +29,7 @@ uboot_mmc_start=TQMA6_MMC_UBOOT_SECTOR_START
 uboot_mmc_size=TQMA6_MMC_UBOOT_SECTOR_COUNT
 uboot_spi_sector_size=TQMA6_SPI_FLASH_SECTOR_SIZE
 uboot_spi_start=TQMA6_SPI_UBOOT_START
-uboot_spi_size=TQMA6_SPI_UBOOT_SIZE
+uboot_spi_size=TQMA6_SPI_UBOOT_MAX_SIZE
 
 #ifdef CONFIG_USB_FUNCTION_FASTBOOT
 
diff --git a/include/configs/tqma6.h b/include/configs/tqma6.h
index 00610e76869..d41b5fe418f 100644
--- a/include/configs/tqma6.h
+++ b/include/configs/tqma6.h
@@ -36,6 +36,6 @@
 
 #define TQMA6_SPI_FLASH_SECTOR_SIZE    SZ_64K
 #define TQMA6_SPI_UBOOT_START          0x400
-#define TQMA6_SPI_UBOOT_SIZE           0xc0000
+#define TQMA6_SPI_UBOOT_MAX_SIZE       0xf0000
 
 #endif /* __TQMA6_CONFIG_H */
-- 
2.43.0

Reply via email to