soc: mediatek: add MTK mutex support for MT8186
authorYongqiang Niu <yongqiang.niu@mediatek.com>
Tue, 22 Feb 2022 05:28:02 +0000 (13:28 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 28 Feb 2022 11:19:24 +0000 (12:19 +0100)
commit15f1768365aed810826a61fef4a744437aa5b426
tree70701d904f2b1ececce7dff171ec2fd5d0009ec1
parent5f9b5b757e44de47ebdc116c14b90e3cc8bc7acb
soc: mediatek: add MTK mutex support for MT8186

Add MTK mutex support for MT8186 SoC.
We need MTK mutex to control timing of display modules and there
are two display pipelines for MT8186 including internal and external
display.

MTK mutex for internal display:
- Timing source: DSI
- Control modules: OVL0/RDMA0/COLOR0/CCORR/AAL0/GAMMA/POSTMASK0/DITHER

MTK mutex for external display:
- Timing source : DPI
- Control modules: OVL_2L0/RDMA1

Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-mutex.c