/* SPDX-License-Identifier: GPL-2.0 */ /* * audio_mem_control.h -- Mediatek ADSP dmemory control * * Copyright (c) 2018 MediaTek Inc. * Author: Chipeng */ #ifndef MT6781_DSP_MEM_CONTROL_H #define MT6781_DSP_MEM_CONTROL_H #include #include #include #include #include "../v2/mtk-base-dsp.h" /* clk relate */ #include "../../mt6781/mt6781-afe-clk.h" #include "../../mt6781/mt6781-afe-common.h" #define MEMIF_NUM_MAX MT6781_MEMIF_NUM /* get struct of sharemem_block */ struct audio_dsp_dram *mtk_get_adsp_sharemem_block(int audio_task_id); struct mtk_adsp_task_attr *mtk_get_adsp_task_attr(int adsp_id); bool mtk_adsp_dai_id_support_share_mem(int dai_id); /* base on dsp type get core_id */ int mtk_get_core_id(int dsp_type); /* if this platform is commom memory and enable MPU */ bool get_mtk_enable_common_mem_mpu(void); #endif