mediatek/mt8183: update dcxo output buffer setting
commiteb5e47dd9467602d09a3f8e6e4cf5dd702bb0cc4
authorWeiyi Lu <weiyi.lu@mediatek.com>
Mon, 15 Apr 2019 07:29:26 +0000 (15 15:29 +0800)
committerMartin Roth <martinroth@google.com>
Sun, 7 Jul 2019 21:04:21 +0000 (7 21:04 +0000)
tree600bfaccdca047a7b04aaaa846fc0b7fa7af6d12
parent142258c2f6cbfd76caf749395e666de0b0595318
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>
src/soc/mediatek/mt8183/include/soc/rtc.h
src/soc/mediatek/mt8183/rtc.c