]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: j721s2_init: Support less than max DDR controllers
authorNeha Malcom Francis <n-francis@ti.com>
Tue, 30 Jan 2024 10:23:56 +0000 (15:53 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 6 Feb 2024 21:31:06 +0000 (16:31 -0500)
commit94cfc6fc96d2e718026d6aed9471994489a192f0
tree05592b9429492b25f65c21d094e76e236cef3ed4
parent4312a1dfca26a0b5c30ac6890b0078e8d31ff6bf
arm: mach-k3: j721s2_init: Support less than max DDR controllers

The number of DDR controllers to be initialised and used should depend
on the device tree with the constraint of the maximum number of
controllers the device supports. Since J721S2 has multiple (2)
controllers, instead of hardcoding the number of probes, move to
depending on the device tree UCLASS_RAM nodes present.

Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Manorit Chawdhry <m-chawdhry@ti.com>
arch/arm/mach-k3/j721s2_init.c