aboutsummaryrefslogtreecommitdiff
path: root/env/Kconfig
diff options
context:
space:
mode:
authorJagan Teki2019-12-21 13:24:36 +0530
committerKever Yang2020-01-30 11:44:01 +0800
commit54b85a94e56e26dcc01846b6d38478ae06d87183 (patch)
treee7c2cad776b0349a1562946286e44cd2e1f6a4a8 /env/Kconfig
parentd7b433e40b037733f47b83b8e2f385f91035924b (diff)
env: Enable SPI flash env for rockchip
Most of the SPI flash devices in rockchip are 16MiB size. So, keeping U-Boot proper offset start from 128MiB with 1MiB size and then start env of 8KiB would be a compatible location between all variants of flash sizes. This patch add env start from 0x14000 with a size of 8KiB. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'env/Kconfig')
-rw-r--r--env/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig
index ac7b8f7e4e5..0d6f559b39d 100644
--- a/env/Kconfig
+++ b/env/Kconfig
@@ -492,6 +492,7 @@ config ENV_OFFSET
depends on ENV_IS_IN_EEPROM || ENV_IS_IN_MMC || ENV_IS_IN_NAND || \
ENV_IS_IN_SPI_FLASH
default 0x3f8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
+ default 0x140000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
default 0x88000 if ARCH_SUNXI
default 0xE0000 if ARCH_ZYNQ
default 0x1E00000 if ARCH_ZYNQMP
@@ -515,6 +516,7 @@ config ENV_SIZE
default 0x40000 if ENV_IS_IN_SPI_FLASH && ARCH_ZYNQMP
default 0x20000 if ARCH_SUNXI || ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
default 0x8000 if ARCH_ROCKCHIP && ENV_IS_IN_MMC
+ default 0x2000 if ARCH_ROCKCHIP && ENV_IS_IN_SPI_FLASH
default 0x8000 if ARCH_ZYNQMP || ARCH_VERSAL
default 0x4000 if ARC
default 0x1f000
@@ -524,6 +526,7 @@ config ENV_SIZE
config ENV_SECT_SIZE
hex "Environment Sector-Size"
depends on ENV_IS_IN_FLASH || ENV_IS_IN_SPI_FLASH
+ default 0x2000 if ARCH_ROCKCHIP
default 0x40000 if ARCH_ZYNQMP || ARCH_VERSAL
default 0x20000 if ARCH_ZYNQ || ARCH_OMAP2PLUS || ARCH_AT91
help