soc: mediatek: mutex: add functions that operate registers by CMDQ
authorMoudy Ho <moudy.ho@mediatek.com>
Fri, 10 Jun 2022 06:34:23 +0000 (14:34 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 17 Jun 2022 13:51:52 +0000 (15:51 +0200)
commite5758850c2ea448dd750a280d128a3590d68b899
tree21ee0003afde9bea932b8ed4d4080e165ebb67c0
parente3b6b5a9cf9f6fda0396be63b72b92724cdf202f
soc: mediatek: mutex: add functions that operate registers by CMDQ

Due to HW limitations, MDP3 is necessary to enable MUTEX in each frame
for SOF triggering and cooperate with CMDQ control to reduce the amount
of interrupts generated(also, reduce frame latency).

In response to the above situation, a new interface
"mtk_mutex_enable_by_cmdq" has been added to achieve the purpose.

Signed-off-by: Moudy Ho <moudy.ho@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://lore.kernel.org/r/20220610063424.7800-7-moudy.ho@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-mutex.c
include/linux/soc/mediatek/mtk-mutex.h