[PATCH 2/2] ARM: stm32: Increase default SF bus frequency to 50 MHz and enable SFDP
Patrice CHOTARD
patrice.chotard at foss.st.com
Mon Oct 25 08:53:24 CEST 2021
Hi Marek
On 10/23/21 8:33 PM, Marek Vasut wrote:
> Increase default SPI NOR bus frequency from 1 MHz to 50 MHz and
> enable SFDP parsing to obtain more accurate SPI NOR configuration.
>
> 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 | 4 +++-
> configs/stm32mp15_dhcor_basic_defconfig | 4 +++-
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
> index 083e199e511..8fe0456a56d 100644
> --- a/configs/stm32mp15_dhcom_basic_defconfig
> +++ b/configs/stm32mp15_dhcom_basic_defconfig
> @@ -70,7 +70,7 @@ CONFIG_ENV_SPI_BUS=0
> CONFIG_USE_ENV_SPI_CS=y
> CONFIG_ENV_SPI_CS=0
> CONFIG_USE_ENV_SPI_MAX_HZ=y
> -CONFIG_ENV_SPI_MAX_HZ=10000000
> +CONFIG_ENV_SPI_MAX_HZ=50000000
> CONFIG_USE_ENV_SPI_MODE=y
> CONFIG_ENV_SPI_MODE=0x0
> CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
> @@ -102,6 +102,8 @@ CONFIG_MTD=y
> CONFIG_DM_MTD=y
> CONFIG_SYS_MTDPARTS_RUNTIME=y
> CONFIG_DM_SPI_FLASH=y
> +CONFIG_SF_DEFAULT_SPEED=50000000
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> CONFIG_SPI_FLASH_MACRONIX=y
> CONFIG_SPI_FLASH_SPANSION=y
> CONFIG_SPI_FLASH_STMICRO=y
> diff --git a/configs/stm32mp15_dhcor_basic_defconfig b/configs/stm32mp15_dhcor_basic_defconfig
> index 01ac3edb93e..21f5c9e01b2 100644
> --- a/configs/stm32mp15_dhcor_basic_defconfig
> +++ b/configs/stm32mp15_dhcor_basic_defconfig
> @@ -67,7 +67,7 @@ CONFIG_ENV_SPI_BUS=0
> CONFIG_USE_ENV_SPI_CS=y
> CONFIG_ENV_SPI_CS=0
> CONFIG_USE_ENV_SPI_MAX_HZ=y
> -CONFIG_ENV_SPI_MAX_HZ=10000000
> +CONFIG_ENV_SPI_MAX_HZ=50000000
> CONFIG_USE_ENV_SPI_MODE=y
> CONFIG_ENV_SPI_MODE=0x0
> CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
> @@ -97,6 +97,8 @@ CONFIG_STM32_SDMMC2=y
> CONFIG_MTD=y
> CONFIG_DM_MTD=y
> CONFIG_DM_SPI_FLASH=y
> +CONFIG_SF_DEFAULT_SPEED=50000000
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> CONFIG_SPI_FLASH_MACRONIX=y
> CONFIG_SPI_FLASH_SPANSION=y
> CONFIG_SPI_FLASH_STMICRO=y
>
Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Thanks
Patrice
More information about the U-Boot
mailing list