From f29a4521bc4e11e4e4d997f5f58cdec4b9c3ad22 Mon Sep 17 00:00:00 2001 From: Yongjie Zhu Date: Thu, 24 Aug 2023 17:07:09 +0800 Subject: [PATCH] dmaheap: add dmaheap support for g12a [1/1] PD#SWPL-133665 Problem: g12a need dmaheap support for kernel5.15 Solution: add dmaheap support Verify: g12a Change-Id: I2095caae4fb9c40a1ee0e681a61981466d9c8201 Signed-off-by: Yongjie Zhu --- arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts b/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts index ac3109e77..288c812c3 100644 --- a/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts +++ b/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212.dts @@ -104,6 +104,19 @@ size = <0x0 0x0>; alignment = <0x0 0x400000>; }; + dmaheap_cma_reserved:heap-gfx { + compatible = "shared-dma-pool"; + reusable; + size = <0x0 0x0>; + alignment = <0x0 0x400000>; + }; + dmaheap_fb_reserved:heap-fb { + compatible = "shared-dma-pool"; + reusable; + /* 1080p STB androidT size 56M */ + size = <0x0 0x3800000>; + alignment = <0x0 0x400000>; + }; //di_reserved:linux,di { //compatible = "amlogic, di-mem"; /* buffer_size = 3621952(yuv422 8bit) */