Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07b094ae authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

ion: Add support for the display non-secure CMA heap



Add support for the non-secure CMA heap for sharing display
configuration information with display hardware.

Change-Id: Idcc1a8233872cffe890ccd74c956bc666c34cd82
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent c4028fcf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -83,6 +83,10 @@ static struct ion_heap_desc ion_heap_meta[] = {
		.id	= ION_TUI_CARVEOUT_HEAP_ID,
		.name	= ION_TUI_CARVEOUT_HEAP_NAME,
	},
	{
		.id	= ION_DISPLAY_HEAP_ID,
		.name	= ION_DISPLAY_HEAP_NAME,
	},
};

#define MAKE_HEAP_TYPE_MAPPING(h) { .name = #h, \
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@
#define ION_SECURE_DISPLAY_HEAP_NAME "secure_display"
#define ION_AUDIO_HEAP_NAME    "audio"
#define ION_TUI_CARVEOUT_HEAP_NAME "tui_carveout"
#define ION_DISPLAY_HEAP_NAME "display"

/**
 * Debug feature. Make ION allocations DMA
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
#define ION_SYSTEM_HEAP_ID		ION_BIT(0)
#define ION_QSECOM_TA_HEAP_ID		ION_BIT(1)
#define ION_CAMERA_HEAP_ID		ION_BIT(2)
#define ION_DISPLAY_HEAP_ID		ION_BIT(3)
#define ION_ADSP_HEAP_ID		ION_BIT(4)
#define ION_USER_CONTIG_HEAP_ID		ION_BIT(6)
#define ION_QSECOM_HEAP_ID		ION_BIT(7)