summaryrefslogtreecommitdiff
path: root/include/configs/turris_omnia.h
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2019-05-24 15:57:50 +0300
committerStefan Roese <sr@denx.de>2019-07-11 11:58:02 +0300
commit305a82217de391bbadce1dc5faac508daa11beaa (patch)
tree8baef8898cb1427dc169b8d636a4454d1d48b0f5 /include/configs/turris_omnia.h
parentb0045b1c112d36faa8e876cdbef35e514b747a79 (diff)
downloadu-boot-305a82217de391bbadce1dc5faac508daa11beaa.tar.xz
arm: mvebu: turris_omnia: change environment address in SPI flash
The U-Boot partition is 1 MiB and environment is 64 KiB. It does not make sense to have environment at 0xc0000 when it could be at 0xf0000 and we can have more space for U-Boot binary. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/turris_omnia.h')
-rw-r--r--include/configs/turris_omnia.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h
index 290828d73e..8e3d5cc8cf 100644
--- a/include/configs/turris_omnia.h
+++ b/include/configs/turris_omnia.h
@@ -22,9 +22,9 @@
#define CONFIG_EHCI_IS_TDI
/* Environment in SPI NOR flash */
-#define CONFIG_ENV_OFFSET (3*(1 << 18)) /* 768KiB in */
#define CONFIG_ENV_SIZE (64 << 10) /* 64KiB */
-#define CONFIG_ENV_SECT_SIZE (256 << 10) /* 256KiB sectors */
+#define CONFIG_ENV_OFFSET ((1 << 20) - CONFIG_ENV_SIZE)
+#define CONFIG_ENV_SECT_SIZE (64 << 10) /* 64KiB */
#define PHY_ANEG_TIMEOUT 8000 /* PHY needs a longer aneg time */