diff mbox series

[11/12] configs: chip pro: fix the offsets

Message ID 20210625130547.2177920-12-maxime@cerno.tech
State RFC
Delegated to: Andre Przywara
Headers show
Series Random Fixes for the CHIP Pro | expand

Commit Message

Maxime Ripard June 25, 2021, 1:05 p.m. UTC
The CHIP Pro MTD partition table sets the U-Boot offset at
512kB (0x80000), and its backup at 2.5MB (0x280000).

However, the default value for both of these on sunxi is 8MB (0x800000),
which doesn't work in our case.

Fix this.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
 configs/CHIP_pro_defconfig | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig
index c8e2e2ae2ca3..d8b8f477772d 100644
--- a/configs/CHIP_pro_defconfig
+++ b/configs/CHIP_pro_defconfig
@@ -20,6 +20,8 @@  CONFIG_MTD_RAW_NAND=y
 CONFIG_SYS_NAND_BLOCK_SIZE=0x40000
 CONFIG_SYS_NAND_PAGE_SIZE=0x1000
 CONFIG_SYS_NAND_OOBSIZE=0x100
+CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000
+CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x280000
 CONFIG_AXP_ALDO3_VOLT=3300
 CONFIG_AXP_ALDO4_VOLT=3300
 CONFIG_CONS_INDEX=2