[PATCH] arm: mach-k3: j721s2_init: Enable memory with CONFIG_K3_J721E_DDRSS

Nishanth Menon nm at ti.com
Fri Aug 11 14:02:42 CEST 2023


On 12:04-20230811, Dominik Haller wrote:
> Make that condition more generic by checking if the memory controller
> driver is enabled instead of using the EVM's config.
> 
> Signed-off-by: Dominik Haller <d.haller at phytec.de>
> ---
>  arch/arm/mach-k3/j721s2_init.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-k3/j721s2_init.c b/arch/arm/mach-k3/j721s2_init.c
> index 712a7e253fa8..a5be84b147c0 100644
> --- a/arch/arm/mach-k3/j721s2_init.c
> +++ b/arch/arm/mach-k3/j721s2_init.c
> @@ -219,7 +219,7 @@ void k3_mem_init(void)
>  	struct udevice *dev;
>  	int ret;
>  
> -	if (IS_ENABLED(CONFIG_TARGET_J721S2_R5_EVM)) {
> +	if (IS_ENABLED(CONFIG_K3_J721E_DDRSS)) {
>  		ret = uclass_get_device_by_name(UCLASS_MISC, "msmc", &dev);
>  		if (ret)
>  			panic("Probe of msmc failed: %d\n", ret);
> -- 
> 2.25.1
> 

Reviewed-by: Nishanth Menon <nm at ti.com>
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D


More information about the U-Boot mailing list