Skip to contentSkip to conversation

arm: mvebu: Use 4K sector for Thecus N2350 SPI flash

PATCH In review Tony Dinh 2 participants 3 messages Feb 17, 2023 – Mar 6, 2023

lore
Share & tools
lore

Tony Dinh

author
#0 lore raw

PATCH 1/1 arm: mvebu: Use 4K sector for Thecus N2350 SPI flash

Since the SPI flash chip mx25l3205d on this board has 4K-sector capability, enable it for the envs.

---

 configs/n2350_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/n2350_defconfig +1 -1
index dcb2c96791..b85ef0dfeb 100644
@@ -14,7 +14,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000
 CONFIG_TARGET_N2350=y
 CONFIG_ENV_SIZE=0x10000
 CONFIG_ENV_OFFSET=0x100000
-CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x1000
 CONFIG_DEFAULT_DEVICE_TREE="armada-385-thecus-n2350"
 CONFIG_SPL_TEXT_BASE=0x40000030
 CONFIG_SYS_PROMPT="N2350 > "
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tony Dinh

Since the SPI flash chip mx25l3205d on this board has 4K-sector capability, enable it for the envs.

Thanks,
Stefan

Quoted 10 lines

---

  configs/n2350_defconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configs/n2350_defconfig +0 -0
index dcb2c96791..b85ef0dfeb 100644

configs/n2350_defconfig CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000 · line 20

Quoted 8 lines
configs/n2350_defconfig +1 -1
@@ -14,7 +14,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000
  CONFIG_TARGET_N2350=y
  CONFIG_ENV_SIZE=0x10000
  CONFIG_ENV_OFFSET=0x100000
-CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x1000
  CONFIG_DEFAULT_DEVICE_TREE="armada-385-thecus-n2350"
  CONFIG_SPL_TEXT_BASE=0x40000030
  CONFIG_SYS_PROMPT="N2350 > "

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#2 lore raw
In reply to Tony Dinh
Quoted 4 lines · Tony Dinh

Since the SPI flash chip mx25l3205d on this board has 4K-sector capability, enable it for the envs.

Applied to u-boot-marvell/master

Thanks,
Stefan

Quoted 10 lines

---

  configs/n2350_defconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configs/n2350_defconfig +0 -0
index dcb2c96791..b85ef0dfeb 100644

configs/n2350_defconfig CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000 · line 20

Quoted 8 lines
configs/n2350_defconfig +1 -1
@@ -14,7 +14,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000
  CONFIG_TARGET_N2350=y
  CONFIG_ENV_SIZE=0x10000
  CONFIG_ENV_OFFSET=0x100000
-CONFIG_ENV_SECT_SIZE=0x10000
+CONFIG_ENV_SECT_SIZE=0x1000
  CONFIG_DEFAULT_DEVICE_TREE="armada-385-thecus-n2350"
  CONFIG_SPL_TEXT_BASE=0x40000030
  CONFIG_SYS_PROMPT="N2350 > "

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]