soc/mediatek/mt8192: Initialize audio pll tuner frequency

Add AUDPLL TUNER init code.

TEST=Boots correctly on MT8192EVB.

Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com>
Change-Id: I1f1b5b55a0a16d42311b16b89b15b31e1aa04670
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46400
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Weiyi Lu 2020-08-19 10:53:26 +08:00 committed by Hung-Te Lin
parent e501f9b3dd
commit 92d59931c4
1 changed files with 4 additions and 0 deletions

View File

@ -392,6 +392,10 @@ void mt_pll_init(void)
for (i = 0; i < ARRAY_SIZE(rates); i++) for (i = 0; i < ARRAY_SIZE(rates); i++)
pll_set_rate(&plls[rates[i].id], rates[i].rate); pll_set_rate(&plls[rates[i].id], rates[i].rate);
/* AUDPLL Tuner Frequency Set */
write32(&mtk_apmixed->apll1_tuner_con0, read32(&mtk_apmixed->apll1_con2) + 1);
write32(&mtk_apmixed->apll2_tuner_con0, read32(&mtk_apmixed->apll2_con2) + 1);
/* xPLL Frequency Enable */ /* xPLL Frequency Enable */
for (i = 0; i < APMIXED_PLL_MAX; i++) { for (i = 0; i < APMIXED_PLL_MAX; i++) {
if (i == APMIXED_USBPLL) if (i == APMIXED_USBPLL)