arm: mvebu: clearfog: move ENV params to Kconfig
authorJoel Johnson <mrjoel@lixil.net>
Mon, 23 Mar 2020 20:21:38 +0000 (14:21 -0600)
committerStefan Roese <sr@denx.de>
Tue, 14 Apr 2020 11:16:42 +0000 (13:16 +0200)
Migrate the values for ENV_SIZE and ENV_OFFSET into board specific
Kconfig defaults so they're more accessible for configuration.

Signed-off-by: Joel Johnson <mrjoel@lixil.net>
Reviewed-by: Stefan Roese <sr@denx.de>
board/solidrun/clearfog/Kconfig
configs/clearfog_defconfig

index ea9c419472f3b0a287555dfb76951099159efb2b..e8c3f53d84a8eeebafa0a419c79e66aa3cf2ed4a 100644 (file)
@@ -39,6 +39,14 @@ config CLEARFOG_SFP_25GB
          SGMII connection (requires a supporting SFP). By default, transfer speed
          of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module.
 
+config ENV_SIZE
+       hex "Environment Size"
+       default 0x10000
+
+config ENV_OFFSET
+       hex "Environment offset"
+       default 0xF0000
+
 config ENV_SECT_SIZE
        hex "Environment Sector-Size"
        # Use SPI flash erase block size of 4 KiB
index c938448c3027035c512fdd815f56744197c0a8ad..6db8b8acf662d1644d6aa724a7f52c76f83e98f6 100644 (file)
@@ -9,8 +9,6 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_TARGET_CLEARFOG=y
 CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y
-CONFIG_ENV_SIZE=0x10000
-CONFIG_ENV_OFFSET=0xF0000
 CONFIG_DM_GPIO=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y