diff mbox series

[09/10] arm: mvebu: clearfog: move ENV params to Kconfig

Message ID 20200111193639.19022-9-mrjoel@lixil.net
State New
Headers show
Series [01/10] arm: mvebu: fix SerDes table alignment | expand

Commit Message

Joel Johnson Jan. 11, 2020, 7:36 p.m. UTC
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 at lixil.net>
---

 board/solidrun/clearfog/Kconfig | 8 ++++++++
 configs/clearfog_defconfig      | 2 --
 2 files changed, 8 insertions(+), 2 deletions(-)

Comments

Stefan Roese Jan. 13, 2020, 8:29 a.m. UTC | #1
On 11.01.20 20:36, Joel Johnson wrote:
> 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 at lixil.net>

The ENV macros have been moved to Kconfig in mainline. Please check
and drop this patch or submit a necessary change if required.

Thanks,
Stefan

> ---
> 
>   board/solidrun/clearfog/Kconfig | 8 ++++++++
>   configs/clearfog_defconfig      | 2 --
>   2 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/board/solidrun/clearfog/Kconfig b/board/solidrun/clearfog/Kconfig
> index ce7fcf653f..253b925ba1 100644
> --- a/board/solidrun/clearfog/Kconfig
> +++ b/board/solidrun/clearfog/Kconfig
> @@ -37,6 +37,14 @@ config CLEARFOG_2GB_SOM
>   	 Enable support for the 2GB RAM SOM variant. If this option is not
>   	 enabled then the more common 1GB version will be used.
>   
> +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
> diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig
> index 787c6360a7..0b55e63079 100644
> --- a/configs/clearfog_defconfig
> +++ b/configs/clearfog_defconfig
> @@ -11,8 +11,6 @@ CONFIG_TARGET_CLEARFOG=y
>   CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y
>   CONFIG_SPL_MMC_SUPPORT=y
>   CONFIG_SPL_SERIAL_SUPPORT=y
> -CONFIG_ENV_SIZE=0x10000
> -CONFIG_ENV_OFFSET=0xF0000
>   CONFIG_NR_DRAM_BANKS=2
>   CONFIG_SPL=y
>   CONFIG_DEBUG_UART_BASE=0xd0012000
> 

Viele Grüße,
Stefan
diff mbox series

Patch

diff --git a/board/solidrun/clearfog/Kconfig b/board/solidrun/clearfog/Kconfig
index ce7fcf653f..253b925ba1 100644
--- a/board/solidrun/clearfog/Kconfig
+++ b/board/solidrun/clearfog/Kconfig
@@ -37,6 +37,14 @@  config CLEARFOG_2GB_SOM
 	 Enable support for the 2GB RAM SOM variant. If this option is not
 	 enabled then the more common 1GB version will be used.
 
+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
diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig
index 787c6360a7..0b55e63079 100644
--- a/configs/clearfog_defconfig
+++ b/configs/clearfog_defconfig
@@ -11,8 +11,6 @@  CONFIG_TARGET_CLEARFOG=y
 CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
-CONFIG_ENV_SIZE=0x10000
-CONFIG_ENV_OFFSET=0xF0000
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SPL=y
 CONFIG_DEBUG_UART_BASE=0xd0012000