summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/mediatek/mt8192/mt6315.c38
-rw-r--r--src/soc/mediatek/mt8192/pmif_spmi.c2
2 files changed, 20 insertions, 20 deletions
diff --git a/src/soc/mediatek/mt8192/mt6315.c b/src/soc/mediatek/mt8192/mt6315.c
index 1cb1fe3042..7f9b770197 100644
--- a/src/soc/mediatek/mt8192/mt6315.c
+++ b/src/soc/mediatek/mt8192/mt6315.c
@@ -91,16 +91,16 @@ static const struct mt6315_setting init_setting_cpu[] = {
{0x16AD, 0x81, 0xFF, 0},
{0x16AE, 0x13, 0x3F, 0},
/* enable magic key protection */
- {0x3A9, 0, 0xFF, 0},
- {0x3A8, 0, 0xFF, 0},
- {0x3A0, 0, 0xFF, 0},
- {0x39F, 0, 0xFF, 0},
- {0x993, 0, 0xFF, 0},
- {0x992, 0, 0xFF, 0},
- {0x1418, 0, 0xFF, 0},
+ {0x3A1, 0, 0xFF, 0},
+ {0x3A2, 0, 0xFF, 0},
{0x1417, 0, 0xFF, 0},
- {0x3a2, 0, 0xFF, 0},
- {0x3a1, 0, 0xFF, 0},
+ {0x1418, 0, 0xFF, 0},
+ {0x992, 0, 0xFF, 0},
+ {0x993, 0, 0xFF, 0},
+ {0x39F, 0, 0xFF, 0},
+ {0x3A0, 0, 0xFF, 0},
+ {0x3A8, 0, 0xFF, 0},
+ {0x3A9, 0, 0xFF, 0},
};
static const struct mt6315_setting init_setting_gpu[] = {
@@ -183,16 +183,16 @@ static const struct mt6315_setting init_setting_gpu[] = {
/* Don't remove this! it's MT6315 for GPU only to disable VBUCK3 */
{0x1440, 0x0, 0x4, 0},
/* enable magic key protection */
- {0x3A9, 0, 0xFF, 0},
- {0x3A8, 0, 0xFF, 0},
- {0x3A0, 0, 0xFF, 0},
- {0x39F, 0, 0xFF, 0},
- {0x993, 0, 0xFF, 0},
- {0x992, 0, 0xFF, 0},
- {0x1418, 0, 0xFF, 0},
+ {0x3A1, 0, 0xFF, 0},
+ {0x3A2, 0, 0xFF, 0},
{0x1417, 0, 0xFF, 0},
- {0x3a2, 0, 0xFF, 0},
- {0x3a1, 0, 0xFF, 0},
+ {0x1418, 0, 0xFF, 0},
+ {0x992, 0, 0xFF, 0},
+ {0x993, 0, 0xFF, 0},
+ {0x39F, 0, 0xFF, 0},
+ {0x3A0, 0, 0xFF, 0},
+ {0x3A8, 0, 0xFF, 0},
+ {0x3A9, 0, 0xFF, 0},
};
static void mt6315_read(u32 slvid, u32 reg, u32 *data)
@@ -219,8 +219,8 @@ static void mt6315_wdt_enable(u32 slvid)
mt6315_write(slvid, 0x127, 0x8);
udelay(50);
mt6315_write(slvid, 0x128, 0x8);
- mt6315_write(slvid, 0x3A9, 0);
mt6315_write(slvid, 0x3A8, 0);
+ mt6315_write(slvid, 0x3A9, 0);
}
static void mt6315_init_setting(void)
diff --git a/src/soc/mediatek/mt8192/pmif_spmi.c b/src/soc/mediatek/mt8192/pmif_spmi.c
index f30e965780..1927e5f452 100644
--- a/src/soc/mediatek/mt8192/pmif_spmi.c
+++ b/src/soc/mediatek/mt8192/pmif_spmi.c
@@ -61,7 +61,7 @@ static int spmi_config_master(void)
/* Software reset */
SET32_BITFIELDS(&mtk_rug->wdt_swsysrst2, SPMI_MST_RST, 1, UNLOCK_KEY, 0x85);
- SET32_BITFIELDS(&mtk_topckgen->clk_cfg_15,
+ SET32_BITFIELDS(&mtk_topckgen->clk_cfg_15_clr,
CLK_SPMI_MST_SEL, 0x7,
CLK_SPMI_MST_INT, 1,
PDN_SPMI_MST, 1);