Skip to contentSkip to conversation

arm: mach-k3: j721s2_init: Enable memory with CONFIG_K3_J721E_DDRSS

PATCH In review Dominik Haller 3 participants 3 messages Aug 11, 2023 – Oct 12, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/arm/mach-k3/j721s2_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-k3/j721s2_init.c +1 -1
index 712a7e253fa8..a5be84b147c0 100644
@@ -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 on v1 1/1
#1 lore raw
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.

---
 arch/arm/mach-k3/j721s2_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-k3/j721s2_init.c +1 -1
index 712a7e253fa8..a5be84b147c0 100644
@@ -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
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D