mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: k3: am62l: Detect DRAM from controller
@ 2026-01-09 13:29 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2026-01-09 13:29 UTC (permalink / raw)
  To: Barebox List

am62x_register_dram() works for the am62l as well, so use it to detect
the amount of DRAM. With this we can remove the memory node from am62l3-evm.dts
as it will be automatically populated.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/dts/k3-am62l3-evm.dts | 6 ------
 arch/arm/mach-k3/am62lx.c      | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/arm/dts/k3-am62l3-evm.dts b/arch/arm/dts/k3-am62l3-evm.dts
index 6751c71c3b..3a61d38c7b 100644
--- a/arch/arm/dts/k3-am62l3-evm.dts
+++ b/arch/arm/dts/k3-am62l3-evm.dts
@@ -58,12 +58,6 @@ led-0 {
 		};
 	};
 
-	memory@80000000 {
-		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
-		device_type = "memory";
-		bootph-all;
-	};
-
 	vcc_1v8: regulator-3 {
 		/* output of TPS6282518DMQ */
 		compatible = "regulator-fixed";
diff --git a/arch/arm/mach-k3/am62lx.c b/arch/arm/mach-k3/am62lx.c
index 88a008d628..c4d27072f2 100644
--- a/arch/arm/mach-k3/am62lx.c
+++ b/arch/arm/mach-k3/am62lx.c
@@ -158,6 +158,7 @@ static int am62lx_init(void)
 	if (!of_machine_is_compatible("ti,am62l3"))
 		return 0;
 
+	am62x_register_dram();
 	am62lx_get_bootsource(&src, &instance);
 	bootsource_set(src, instance);
 
-- 
2.47.3




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-09 13:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-09 13:29 [PATCH] ARM: k3: am62l: Detect DRAM from controller Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox