summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2020-09-01 19:22:56 +0200
committerTom Rini <trini@konsulko.com>2020-09-09 16:57:36 -0400
commit921d04b6a9e1b3ec992a966a6c82bf33ca60b01d (patch)
treec1b9b1d52b6da0cfb96ec82004772d48aaf5d097
parent2a0cf22ec4d85c67296cb83dd31f97f2d25ba43a (diff)
downloadu-boot-921d04b6a9e1b3ec992a966a6c82bf33ca60b01d.tar.gz
IPQ40xx: Add SMEM support
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>
-rw-r--r--arch/arm/Kconfig2
-rw-r--r--arch/arm/dts/qcom-ipq4019.dtsi5
-rw-r--r--drivers/smem/Kconfig2
3 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 80702c23d3..ee378f03f4 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -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
diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi
index 7b3b5e0248..dd69d0a5b2 100644
--- a/arch/arm/dts/qcom-ipq4019.dtsi
+++ b/arch/arm/dts/qcom-ipq4019.dtsi
@@ -39,6 +39,11 @@
};
};
+ smem {
+ compatible = "qcom,smem";
+ memory-region = <&smem_mem>;
+ };
+
soc: soc {
#address-cells = <1>;
#size-cells = <1>;
diff --git a/drivers/smem/Kconfig b/drivers/smem/Kconfig
index 7169d0f205..73d51b3a7a 100644
--- a/drivers/smem/Kconfig
+++ b/drivers/smem/Kconfig
@@ -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