diff mbox series

[U-Boot,1/3] configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block alignment

Message ID 1525851026-16621-2-git-send-email-eugen.hristev@microchip.com
State Accepted
Commit e32f240630e344aed80c78e3473c19ff51b21452
Delegated to: Tom Rini
Headers show
Series Adjust at91 boards config offset for all boards | expand

Commit Message

Eugen Hristev May 9, 2018, 7:30 a.m. UTC
From: Nicolas Ferre <nicolas.ferre@microchip.com>

Fix the unaligned environment address.
This address matches our NAND flash map available at:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
[eugen.hristev@microchip.com: rework on latest version of u-boot]
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---
 include/configs/at91-sama5_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini May 24, 2018, 12:40 p.m. UTC | #1
On Wed, May 09, 2018 at 10:30:24AM +0300, Eugen Hristev wrote:

> From: Nicolas Ferre <nicolas.ferre@microchip.com>
> 
> Fix the unaligned environment address.
> This address matches our NAND flash map available at:
> http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map
> 
> Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> [eugen.hristev@microchip.com: rework on latest version of u-boot]
> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/configs/at91-sama5_common.h b/include/configs/at91-sama5_common.h
index 5af7d1d..30c6cd4 100644
--- a/include/configs/at91-sama5_common.h
+++ b/include/configs/at91-sama5_common.h
@@ -57,7 +57,7 @@ 
 
 #ifdef CONFIG_NAND_BOOT
 /* u-boot env in nand flash */
-#define CONFIG_ENV_OFFSET		0xc0000
+#define CONFIG_ENV_OFFSET		0x140000
 #define CONFIG_ENV_OFFSET_REDUND	0x100000
 #define CONFIG_ENV_SIZE			0x20000
 #define CONFIG_BOOTCOMMAND		"nand read 0x21000000 0x180000 0x80000;"	\