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 <[email protected]> --- 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
