arm: mach-k3: j721s2_init: Enable memory with CONFIG_K3_J721E_DDRSS
Subsystems (2)
PATCH 1/1 arm: mach-k3: j721s2_init: Enable memory with CONFIG_K3_J721E_DDRSS
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 <[email protected]>
--- arch/arm/mach-k3/j721s2_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-k3/j721s2_init.c +1 -1
@@ -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);
Signature · 1 line
2.25.1
Quoted 24 lines · Dominik Haller
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 <[email protected]>--- arch/arm/mach-k3/j721s2_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-k3/j721s2_init.c +1
-1@@ -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);Signature · 1 line
2.25.1
Reviewed-by Nishanth Menon <[email protected]>
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Quoted 4 lines · Dominik Haller
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 <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom