Skip to content

Commit 537f8ff

Browse files
Jason-JH.Linmbgg
authored andcommitted
soc: mediatek: mutex: remove mt8195 MOD0 and SOF0 definition
Using mt8183 MDO0 and SOF0 definition instead of creating new one for mt8195. Fixes: 8fdb61f ("soc: mediatek: add mtk-mutex support for mt8195 vdosys0") Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> Link: https://lore.kernel.org/r/20220425034537.28989-1-jason-jh.lin@mediatek.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent f9f4545 commit 537f8ff

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

drivers/soc/mediatek/mtk-mutex.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
#define MT8183_MUTEX0_MOD0 0x30
1818
#define MT8183_MUTEX0_SOF0 0x2c
1919

20-
#define MT8195_DISP_MUTEX0_MOD0 0x30
21-
#define MT8195_DISP_MUTEX0_SOF 0x2c
22-
2320
#define DISP_REG_MUTEX_EN(n) (0x20 + 0x20 * (n))
2421
#define DISP_REG_MUTEX(n) (0x24 + 0x20 * (n))
2522
#define DISP_REG_MUTEX_RST(n) (0x28 + 0x20 * (n))
@@ -422,8 +419,8 @@ static const struct mtk_mutex_data mt8192_mutex_driver_data = {
422419
static const struct mtk_mutex_data mt8195_mutex_driver_data = {
423420
.mutex_mod = mt8195_mutex_mod,
424421
.mutex_sof = mt8195_mutex_sof,
425-
.mutex_mod_reg = MT8195_DISP_MUTEX0_MOD0,
426-
.mutex_sof_reg = MT8195_DISP_MUTEX0_SOF,
422+
.mutex_mod_reg = MT8183_MUTEX0_MOD0,
423+
.mutex_sof_reg = MT8183_MUTEX0_SOF0,
427424
};
428425

429426
struct mtk_mutex *mtk_mutex_get(struct device *dev)

0 commit comments

Comments
 (0)