]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: scan reserved-memory nodes
authorCaleb Connolly <caleb.connolly@linaro.org>
Mon, 15 Jul 2024 10:08:00 +0000 (12:08 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Thu, 25 Jul 2024 23:28:09 +0000 (01:28 +0200)
Qualcomm platforms may have drivers that bind to reserved memory nodes
(cmd-db [1] and smem [2]) which are relevant to U-Boot. Include
/reserved-memory in dm_extended_scan() so that these will be handled
correctly.

[1]: https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/qcom%2Ccmd-db.yaml
[2]: https://www.kernel.org/doc/Documentation/devicetree/bindings/soc/qcom/qcom%2Csmem.yaml

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
drivers/core/root.c

index 7cf6607a9b7b0adb1d53c26234f8ec5a32a045e8..7a714f5478a9f3953b33de0e0ca78fe95db569f3 100644 (file)
@@ -243,7 +243,8 @@ int dm_extended_scan(bool pre_reloc_only)
        const char * const nodes[] = {
                "/chosen",
                "/clocks",
-               "/firmware"
+               "/firmware",
+               "/reserved-memory",
        };
 
        ret = dm_scan_fdt(pre_reloc_only);