From d569845964cb9769b8b6b423511c781a376be7e5 Mon Sep 17 00:00:00 2001 From: Qii Wang Date: Wed, 20 Feb 2019 14:57:28 +0800 Subject: mediatek/mt8183: Modify I2C source clock This patch change i2c source clock to TOPCKGEN. BUG=b:80501386 BRANCH=none TEST=Boot correctly on kukui. Change-Id: I49e0acda22dba449d0873a95ba5fae79a9cef569 Signed-off-by: Qii Wang Reviewed-on: https://review.coreboot.org/c/31519 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/soc/mediatek/mt8183/pll.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/mediatek/mt8183') diff --git a/src/soc/mediatek/mt8183/pll.c b/src/soc/mediatek/mt8183/pll.c index 799b6ca315..19670256a1 100644 --- a/src/soc/mediatek/mt8183/pll.c +++ b/src/soc/mediatek/mt8183/pll.c @@ -345,6 +345,9 @@ void mt_pll_init(void) /* enable infrasys DCM */ setbits_le32(&mt8183_infracfg->infra_bus_dcm_ctrl, 0x3 << 21); + /* enable [11] for change i2c module source clock to TOPCKGEN */ + setbits_le32(&mt8183_infracfg->module_clk_sel, 0x1 << 11); + /* * TOP CLKMUX -- DO NOT CHANGE WITHOUT ADJUSTING CONSTANTS! */ -- cgit v1.2.3