[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220805135330.970-4-olivier.masse@nxp.com>
Date: Fri, 5 Aug 2022 15:53:30 +0200
From: Olivier Masse <olivier.masse@....com>
To: sumit.semwal@...aro.org, benjamin.gaignard@...labora.com,
Brian.Starkey@....com, christian.koenig@....com,
linux-media@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linaro-mm-sig@...ts.linaro.org, linux-kernel@...r.kernel.org
Cc: clement.faure@....com, olivier.masse@....com
Subject: [PATCH 3/3] plat-hikey: Add linaro,secure-heap compatible
Add DMABUF_HEAPS_SECURE in defconfig
Signed-off-by: Olivier Masse <olivier.masse@....com>
---
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 11 +++++++++++
arch/arm64/configs/defconfig | 2 ++
2 files changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
index 3df2afb2f637..e4af0d914279 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
@@ -258,6 +258,17 @@ optee {
};
};
+ reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ sdp@...00000 {
+ compatible = "linaro,secure-heap";
+ no-map;
+ reg = <0 0x3E800000 0 0x00400000>;
+ };
+ };
+
sound_card {
compatible = "audio-graph-card";
dais = <&i2s0_port0>;
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index c09b07c22d57..ffdc45acef94 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -1465,6 +1465,8 @@ CONFIG_CRYPTO_DEV_HISI_SEC2=m
CONFIG_CRYPTO_DEV_HISI_ZIP=m
CONFIG_CRYPTO_DEV_HISI_HPRE=m
CONFIG_CRYPTO_DEV_HISI_TRNG=m
+CONFIG_DMABUF_HEAPS=y
+CONFIG_DMABUF_HEAPS_SECURE=y
CONFIG_CMA_SIZE_MBYTES=32
CONFIG_PRINTK_TIME=y
CONFIG_DEBUG_KERNEL=y
--
2.25.0
Powered by blists - more mailing lists