unplugged-kernel/sound/soc/mediatek/audio_dsp/mt6885/dsp-platform-mem-control.h

37 lines
939 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* audio_mem_control.h -- Mediatek ADSP dmemory control
*
* Copyright (c) 2018 MediaTek Inc.
* Author: Chipeng <Chipeng.chang@mediatek.com>
*/
#ifndef MT6785_DSP_MEM_CONTROL_H
#define MT6785_DSP_MEM_CONTROL_H
#include <linux/genalloc.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include "../v2/mtk-base-dsp.h"
/* clk relate */
#include "../../mt6885/mt6885-afe-clk.h"
#include "../../mt6885/mt6885-afe-common.h"
#define MEMIF_NUM_MAX MT6885_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