[PATCH] ARM: stm32: Set environment sector size to 4k on DHSOM
Patrice CHOTARD
patrice.chotard at foss.st.com
Mon Aug 9 14:36:54 CEST 2021
Hi Marek
On 8/9/21 2:08 PM, Marek Vasut wrote:
> The DHSOM SPI NOR is using 4k erase blocks, make use of it
> and define the default environment sector size to 4k.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> configs/stm32mp15_dhcom_basic_defconfig | 2 +-
> configs/stm32mp15_dhcor_basic_defconfig | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
> index 266fdbd9028..7439cd268f6 100644
> --- a/configs/stm32mp15_dhcom_basic_defconfig
> +++ b/configs/stm32mp15_dhcom_basic_defconfig
> @@ -4,6 +4,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x3000
> CONFIG_SYS_MEMTEST_START=0xc0000000
> CONFIG_SYS_MEMTEST_END=0xc4000000
> CONFIG_ENV_SIZE=0x4000
> +CONFIG_ENV_SECT_SIZE=0x1000
> CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
> CONFIG_SPL_DM_SPI=y
> CONFIG_DEFAULT_DEVICE_TREE="stm32mp15xx-dhcom-pdk2"
> @@ -102,7 +103,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
> CONFIG_SPI_FLASH_SPANSION=y
> CONFIG_SPI_FLASH_STMICRO=y
> CONFIG_SPI_FLASH_WINBOND=y
> -# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> CONFIG_SPI_FLASH_MTD=y
> CONFIG_DM_ETH=y
> CONFIG_DWC_ETH_QOS=y
> diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
> index 9a449d76dff..7e2d7fed3d4 100644
> --- a/configs/stm32mp15_dhcor_basic_defconfig
> +++ b/configs/stm32mp15_dhcor_basic_defconfig
> @@ -2,6 +2,7 @@ CONFIG_ARM=y
> CONFIG_ARCH_STM32MP=y
> CONFIG_SYS_MALLOC_F_LEN=0x3000
> CONFIG_ENV_SIZE=0x4000
> +CONFIG_ENV_SECT_SIZE=0x1000
> CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
> CONFIG_SPL_DM_SPI=y
> CONFIG_DEFAULT_DEVICE_TREE="stm32mp15xx-dhcor-avenger96"
> @@ -97,7 +98,6 @@ CONFIG_SPI_FLASH_MACRONIX=y
> CONFIG_SPI_FLASH_SPANSION=y
> CONFIG_SPI_FLASH_STMICRO=y
> CONFIG_SPI_FLASH_WINBOND=y
> -# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
> CONFIG_SPI_FLASH_MTD=y
> CONFIG_DM_ETH=y
> CONFIG_DWC_ETH_QOS=y
>
Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Thanks
Patrice
More information about the U-Boot
mailing list