Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
37 lines
936 B
C
37 lines
936 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 MT6833_DSP_MEM_CONTROL_H
|
|
#define MT6833_DSP_MEM_CONTROL_H
|
|
|
|
#include <linux/genalloc.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/string.h>
|
|
#include <linux/types.h>
|
|
|
|
#include "../mtk-base-dsp.h"
|
|
|
|
/* clk relate */
|
|
#include "../../mt6833/mt6833-afe-clk.h"
|
|
#include "../../mt6833/mt6833-afe-common.h"
|
|
|
|
#define MEMIF_NUM_MAX MT6833_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
|