mediatek/mt8183: update dcxo output buffer setting
DCXO consists of core that generates clock and output buffers that provide clock to other peripheral components. This patch mainly eliminates the extra power consumption of output buffers. We only enable the buffer for SOC and disable unused buffers for power-saving. Also disable useless buffer power mode to guarantee the lowest power state. BRANCH=none TEST=Boots correctly on Kukui. Change-Id: I2e5ce181ad327ccf852979da53baca4f249912fe Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32323 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: You-Cheng Syu <youcheng@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
142258c2f6
commit
eb5e47dd94
|
@ -147,6 +147,7 @@ enum {
|
||||||
PMIC_RG_DCXO_CW15 = 0x07AE,
|
PMIC_RG_DCXO_CW15 = 0x07AE,
|
||||||
PMIC_RG_DCXO_CW16 = 0x07B0,
|
PMIC_RG_DCXO_CW16 = 0x07B0,
|
||||||
PMIC_RG_DCXO_CW21 = 0x07BA,
|
PMIC_RG_DCXO_CW21 = 0x07BA,
|
||||||
|
PMIC_RG_DCXO_CW23 = 0x07BE,
|
||||||
PMIC_RG_DCXO_ELR0 = 0x07C4
|
PMIC_RG_DCXO_ELR0 = 0x07C4
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -274,9 +274,10 @@ static void dcxo_init(void)
|
||||||
rtc_write(PMIC_RG_DCXO_CW16, 0x9855);
|
rtc_write(PMIC_RG_DCXO_CW16, 0x9855);
|
||||||
|
|
||||||
/* 26M enable control */
|
/* 26M enable control */
|
||||||
/* Enable clock buffer XO_SOC, XO_CEL */
|
/* Enable clock buffer XO_SOC */
|
||||||
rtc_write(PMIC_RG_DCXO_CW00, 0x4805);
|
rtc_write(PMIC_RG_DCXO_CW00, 0x4005);
|
||||||
rtc_write(PMIC_RG_DCXO_CW11, 0x8000);
|
rtc_write(PMIC_RG_DCXO_CW11, 0x8000);
|
||||||
|
rtc_write(PMIC_RG_DCXO_CW23, 0x0053);
|
||||||
|
|
||||||
/* Load thermal coefficient */
|
/* Load thermal coefficient */
|
||||||
rtc_write(PMIC_RG_TOP_TMA_KEY, 0x9CA7);
|
rtc_write(PMIC_RG_TOP_TMA_KEY, 0x9CA7);
|
||||||
|
|
Loading…
Reference in New Issue