soc/mediatek/mt8196: Define MFGPLL_*_BASE using MFGSYS_BASE

The MFGPLL_*_BASE addresses are based on MFGSYS_BASE (0x40000000)
instead of IO_PHYS (0x10000000). Rewrite the address calculation for
readability.

Also rename these macros to MFG_PLL_* to make them consistent with other
macros to be added in CB:85654.

Change-Id: Ifd5d77b95c698cb6030c58ba259f2cdf2a29d87b
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85740
Reviewed-by: Yidi Lin <yidilin@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yu-Ping Wu 2024-12-23 17:16:40 +08:00 committed by Yidi Lin
commit 403846f177
2 changed files with 6 additions and 6 deletions

View file

@ -191,9 +191,9 @@ enum {
OVLSYS1_CONFIG_BASE = IO_PHYS + 0x22C00000,
DISP_VDISP_AO_CONFIG_BASE = IO_PHYS + 0x2E800000,
EDP_BASE = IO_PHYS + 0x2EC40000,
MFGPLL_PLL_CTRL_BASE = IO_PHYS + 0x3B810000,
MFGPLL_SC0_PLL_CTRL_BASE = IO_PHYS + 0x3B810400,
MFGPLL_SC1_PLL_CTRL_BASE = IO_PHYS + 0x3B810800,
MFG_PLL_PLL_CTRL_BASE = MFGSYS_BASE + 0x0B810000,
MFG_PLL_SC0_PLL_CTRL_BASE = MFGSYS_BASE + 0x0B810400,
MFG_PLL_SC1_PLL_CTRL_BASE = MFGSYS_BASE + 0x0B810800,
};
#endif

View file

@ -50,11 +50,11 @@ static struct mtk_dispsys_regs *const
static struct mtk_dispsys_regs *const
mtk_disp = (void *)DISP_VDISP_AO_CONFIG_BASE;
static struct mtk_mfgpll_regs *const
mtk_mfgpll = (void *)MFGPLL_PLL_CTRL_BASE;
mtk_mfgpll = (void *)MFG_PLL_PLL_CTRL_BASE;
static struct mtk_mfgpll_regs *const
mtk_mfgpll_sc0 = (void *)MFGPLL_SC0_PLL_CTRL_BASE;
mtk_mfgpll_sc0 = (void *)MFG_PLL_SC0_PLL_CTRL_BASE;
static struct mtk_mfgpll_regs *const
mtk_mfgpll_sc1 = (void *)MFGPLL_SC1_PLL_CTRL_BASE;
mtk_mfgpll_sc1 = (void *)MFG_PLL_SC1_PLL_CTRL_BASE;
static struct mtk_mcupll_regs *const
mtk_ccipll = (void *)CCIPLL_PLL_CTRL_BASE;
static struct mtk_mcupll_regs *const