]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
IPQ40xx: Add SMEM support
authorRobert Marko <robert.marko@sartura.hr>
Thu, 10 Sep 2020 14:00:01 +0000 (16:00 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 18 Sep 2020 20:20:47 +0000 (16:20 -0400)
There is already existing driver for SMEM so lets enable it for IPQ40xx as well.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/Kconfig
arch/arm/dts/qcom-ipq4019.dtsi
drivers/smem/Kconfig

index 80702c23d3456eca72dc31242f3947c9102f21b0..ee378f03f449cddc35ce0cc2c61d93adc8548bf0 100644 (file)
@@ -767,8 +767,10 @@ config ARCH_IPQ40XX
        select DM
        select DM_GPIO
        select DM_SERIAL
+       select MSM_SMEM
        select PINCTRL
        select CLK
+       select SMEM
        select OF_CONTROL
        imply CMD_DM
 
index 7b3b5e0248ff8e6387a490c90cb10619a4591f56..dd69d0a5b283701042eddbc6aaae56db146bca08 100644 (file)
                };
        };
 
+       smem {
+               compatible = "qcom,smem";
+               memory-region = <&smem_mem>;
+       };
+
        soc: soc {
                #address-cells = <1>;
                #size-cells = <1>;
index 7169d0f205a53b1b459ed8710a7bdc2ed7b2a99d..73d51b3a7a487681c52d11d47b015330cfba815a 100644 (file)
@@ -15,7 +15,7 @@ config SANDBOX_SMEM
 config MSM_SMEM
     bool "Qualcomm Shared Memory Manager (SMEM)"
     depends on DM
-    depends on ARCH_SNAPDRAGON
+    depends on ARCH_SNAPDRAGON || ARCH_IPQ40XX
     help
       Enable support for the Qualcomm Shared Memory Manager.
       The driver provides an interface to items in a heap shared among all