Skip to content

Commit 0cbd002

Browse files
committed
plat-hikey: Add linaro,secure-heap compatible
Add DMABUF_HEAPS_SECURE in defconfig Signed-off-by: Olivier Masse <[email protected]>
1 parent e474a94 commit 0cbd002

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,17 @@
258258
};
259259
};
260260

261+
reserved-memory {
262+
#address-cells = <2>;
263+
#size-cells = <2>;
264+
265+
sdp@3e800000 {
266+
compatible = "linaro,secure-heap";
267+
no-map;
268+
reg = <0 0x3E800000 0 0x00400000>;
269+
};
270+
};
271+
261272
sound_card {
262273
compatible = "audio-graph-card";
263274
dais = <&i2s0_port0>;

arch/arm64/configs/defconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,10 @@ CONFIG_CRYPTO_DEV_HISI_SEC2=m
12351235
CONFIG_CRYPTO_DEV_HISI_ZIP=m
12361236
CONFIG_CRYPTO_DEV_HISI_HPRE=m
12371237
CONFIG_CRYPTO_DEV_HISI_TRNG=m
1238+
CONFIG_DMABUF_HEAPS=y
1239+
CONFIG_DMABUF_HEAPS_DEFERRED_FREE=y
1240+
CONFIG_DMABUF_HEAPS_PAGE_POOL=y
1241+
CONFIG_DMABUF_HEAPS_SECURE=y
12381242
CONFIG_CMA_SIZE_MBYTES=32
12391243
CONFIG_PRINTK_TIME=y
12401244
CONFIG_DEBUG_INFO=y

0 commit comments

Comments
 (0)