[PATCH 1/4] configs: j7200_evm_*_defconfig: Enable OSPI configs

Kumar, Udit u-kumar1 at ti.com
Wed Mar 6 14:11:17 CET 2024


On 3/6/2024 12:07 PM, Aniket Limaye wrote:
> Add the necessary configs required for OSPI functionality.
> Also update the ospi flash partition offsets as per the devicetree.
>
> Signed-off-by: Aniket Limaye <a-limaye at ti.com>
> ---
>   configs/j7200_evm_a72_defconfig | 10 ++++++++--
>   configs/j7200_evm_r5_defconfig  |  9 +++++++--
>   2 files changed, 15 insertions(+), 4 deletions(-)
>
> diff --git a/configs/j7200_evm_a72_defconfig b/configs/j7200_evm_a72_defconfig
> index 2863472794..9ded9b2707 100644
> --- a/configs/j7200_evm_a72_defconfig
> +++ b/configs/j7200_evm_a72_defconfig
> @@ -10,6 +10,8 @@ CONFIG_SOC_K3_J721E=y
>   CONFIG_TARGET_J7200_A72_EVM=y
>   CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
>   CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
> +CONFIG_SF_DEFAULT_SPEED=25000000
> +CONFIG_SF_DEFAULT_MODE=0
>   CONFIG_ENV_SIZE=0x20000
>   CONFIG_DM_GPIO=y
>   CONFIG_SPL_DM_SPI=y
> @@ -61,7 +63,7 @@ CONFIG_SPL_RAM_DEVICE=y
>   # CONFIG_SPL_SPI_FLASH_TINY is not set
>   CONFIG_SPL_SPI_FLASH_SFDP_SUPPORT=y
>   CONFIG_SPL_SPI_LOAD=y
> -CONFIG_SYS_SPI_U_BOOT_OFFS=0x280000
> +CONFIG_SYS_SPI_U_BOOT_OFFS=0x300000
>   CONFIG_SPL_YMODEM_SUPPORT=y
>   CONFIG_SYS_MAXARGS=64
>   CONFIG_CMD_ASKENV=y
> @@ -141,7 +143,11 @@ CONFIG_FLASH_CFI_MTD=y
>   CONFIG_SYS_FLASH_CFI=y
>   CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y
>   CONFIG_DM_SPI_FLASH=y
> -CONFIG_SPI_FLASH_STMICRO=y
> +CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> +CONFIG_SPI_FLASH_SOFT_RESET=y
> +CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y
> +CONFIG_SPI_FLASH_SPANSION=y
> +CONFIG_SPI_FLASH_S28HX_T=y
>   # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
>   CONFIG_SPI_FLASH_MTD=y
>   CONFIG_MULTIPLEXER=y
> diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig
> index 05eea55cfe..de5aaaece8 100644
> --- a/configs/j7200_evm_r5_defconfig
> +++ b/configs/j7200_evm_r5_defconfig
> @@ -10,6 +10,8 @@ CONFIG_K3_EARLY_CONS=y
>   CONFIG_TARGET_J7200_R5_EVM=y
>   CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
>   CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x41cf5bfc
> +CONFIG_SF_DEFAULT_SPEED=25000000
> +CONFIG_SF_DEFAULT_MODE=0
>   CONFIG_ENV_SIZE=0x20000
>   CONFIG_DM_GPIO=y
>   CONFIG_SPL_DM_SPI=y
> @@ -60,7 +62,7 @@ CONFIG_SPL_REMOTEPROC=y
>   # CONFIG_SPL_SPI_FLASH_TINY is not set
>   CONFIG_SPL_SPI_FLASH_SFDP_SUPPORT=y
>   CONFIG_SPL_SPI_LOAD=y
> -CONFIG_SYS_SPI_U_BOOT_OFFS=0x80000
> +CONFIG_SYS_SPI_U_BOOT_OFFS=0x100000
>   CONFIG_SPL_YMODEM_SUPPORT=y
>   CONFIG_HUSH_PARSER=y
>   CONFIG_SYS_MAXARGS=64
> @@ -117,7 +119,10 @@ CONFIG_SYS_FLASH_CFI=y
>   CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y
>   CONFIG_DM_SPI_FLASH=y
>   CONFIG_SPI_FLASH_SFDP_SUPPORT=y
> -CONFIG_SPI_FLASH_STMICRO=y
> +CONFIG_SPI_FLASH_SOFT_RESET=y
> +CONFIG_SPI_FLASH_SOFT_RESET_ON_BOOT=y
> +CONFIG_SPI_FLASH_SPANSION=y
> +CONFIG_SPI_FLASH_S28HX_T=y
>   CONFIG_PINCTRL=y
>   # CONFIG_PINCTRL_GENERIC is not set
>   CONFIG_SPL_PINCTRL=y

Reviewed-by: Udit Kumar <u-kumar1 at ti.com>




More information about the U-Boot mailing list