mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
ion: msm: Add support for the Trusted UI(TUI) dynamic carveout heap
Add support to allow usage of memory from the TUI dynamic carveout heap. Change-Id: I585b68215f2f5e8ab114f1c83c19b3bc77a65845 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
parent
d8ff597794
commit
a2b9b1678e
3 changed files with 8 additions and 2 deletions
|
|
@ -78,7 +78,11 @@ static struct ion_heap_desc ion_heap_meta[] = {
|
|||
{
|
||||
.id = ION_SECURE_CARVEOUT_HEAP_ID,
|
||||
.name = ION_SECURE_CARVEOUT_HEAP_NAME,
|
||||
}
|
||||
},
|
||||
{
|
||||
.id = ION_TUI_CARVEOUT_HEAP_ID,
|
||||
.name = ION_TUI_CARVEOUT_HEAP_NAME,
|
||||
},
|
||||
};
|
||||
|
||||
#define MAKE_HEAP_TYPE_MAPPING(h) { .name = #h, \
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
#define ION_SECURE_HEAP_NAME "secure_heap"
|
||||
#define ION_SECURE_DISPLAY_HEAP_NAME "secure_display"
|
||||
#define ION_AUDIO_HEAP_NAME "audio"
|
||||
#define ION_TUI_CARVEOUT_HEAP_NAME "tui_carveout"
|
||||
|
||||
/**
|
||||
* Debug feature. Make ION allocations DMA
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
||||
/*
|
||||
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef _MSM_ION_IDS_H
|
||||
#define _MSM_ION_IDS_H
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
#define ION_SYSTEM_HEAP_ID ION_BIT(0)
|
||||
#define ION_TUI_CARVEOUT_HEAP_ID ION_BIT(2)
|
||||
#define ION_QSECOM_TA_HEAP_ID ION_BIT(8)
|
||||
#define ION_CAMERA_HEAP_ID ION_BIT(9)
|
||||
#define ION_ADSP_HEAP_ID ION_BIT(11)
|
||||
|
|
|
|||
Loading…
Reference in a new issue