Hello Weiyi Lu,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/37136
to review the following change.
Change subject: mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
mediatek/mt8183: disable BBLPM of DCXO core
When we only enable XO_SOC and mask most BBLPM requests, the BBLPM HW arbiter will have DCXO core to enter Baseband Low-Power Mode(BBLPM). Under BBLPM mode, inaccurate(about 1.5KHz offset) 26MHz clocks from crystal is provided and crystal voltage will drop from 1.8V to 0.7V or lower. In order to ensure the stability by always outputting an accuarate system clock when system is running. We should disable BBLPM when only XO_SOC enabled.
BUG=b:136980838 BRANCH=kukui TEST=accurate 26MHz provided and correct crystal voltage swing
Change-Id: Iea72a964507a19735cf92e3774cd8a94c06545b2 Signed-off-by: Weiyi Lu weiyi.lu@mediatek.com --- M src/soc/mediatek/mt8183/rtc.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/37136/1
diff --git a/src/soc/mediatek/mt8183/rtc.c b/src/soc/mediatek/mt8183/rtc.c index 19b717c..6e17a30 100644 --- a/src/soc/mediatek/mt8183/rtc.c +++ b/src/soc/mediatek/mt8183/rtc.c @@ -435,8 +435,8 @@ { /* Disable clock buffer XO_CEL */ rtc_write(PMIC_RG_DCXO_CW00_CLR, 0x0800); - /* Mask bblpm */ - rtc_write(PMIC_RG_DCXO_CW23, 0x0053); + /* Mask bblpm request and switch off bblpm mode */ + rtc_write(PMIC_RG_DCXO_CW23, 0x0052); }
/* the rtc boot flow entry */
Hello Julius Werner, Weiyi Lu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/37136
to look at the new patch set (#2).
Change subject: mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
mediatek/mt8183: disable BBLPM of DCXO core
When we only enable XO_SOC and mask most BBLPM requests, the BBLPM HW arbiter will have DCXO core to enter Baseband Low-Power Mode(BBLPM). Under BBLPM mode, inaccurate(about 1.5KHz offset) 26MHz clocks from crystal is provided and crystal voltage will drop from 1.8V to 0.7V or lower. In order to ensure the stability by always outputting an accuarate system clock when system is running. We should disable BBLPM when only XO_SOC enabled.
BRANCH=kukui TEST=accurate 26MHz provided and correct crystal voltage swing
Change-Id: Iea72a964507a19735cf92e3774cd8a94c06545b2 Signed-off-by: Weiyi Lu weiyi.lu@mediatek.com --- M src/soc/mediatek/mt8183/rtc.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/37136/2
Yu-Ping Wu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37136 )
Change subject: mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
Patch Set 2:
(3 comments)
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@7 PS2, Line 7: mediatek/mt8183 soc/mediatek/mt8183
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@9 PS2, Line 9: When we only enable XO_SOC and mask most BBLPM requests, the BBLPM HW arbiter : will have DCXO core to enter Baseband Low-Power Mode(BBLPM). : Under BBLPM mode, inaccurate(about 1.5KHz offset) 26MHz clocks from crystal is provided : and crystal voltage will drop from 1.8V to 0.7V or lower. : In order to ensure the stability by always outputting an accuarate system clock : when system is running. We should disable BBLPM when only XO_SOC enabled. Limit line length to 72 characters.
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@15 PS2, Line 15: Is there a bug for this issue?
Hello Yu-Ping Wu, Julius Werner, You-Cheng Syu, Hung-Te Lin, build bot (Jenkins), Weiyi Lu,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/37136
to look at the new patch set (#3).
Change subject: soc/mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
soc/mediatek/mt8183: disable BBLPM of DCXO core
When we only enable XO_SOC and mask most BBLPM requests, the BBLPM HW arbiter will have DCXO core to enter Baseband Low-Power Mode(BBLPM). Under BBLPM mode, inaccurate(about 1.5KHz offset) 26MHz clocks from crystal is provided and crystal voltage will drop from 1.8V to 0.7V or lower. In order to ensure the stability by always outputting an accuarate system clock when system is running. We should disable BBLPM when only XO_SOC enabled.
BRANCH=kukui TEST=accurate 26MHz provided and correct crystal voltage swing
Change-Id: Iea72a964507a19735cf92e3774cd8a94c06545b2 Signed-off-by: Weiyi Lu weiyi.lu@mediatek.com --- M src/soc/mediatek/mt8183/rtc.c 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/37136/3
Weiyi Lu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37136 )
Change subject: soc/mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
Patch Set 3:
(3 comments)
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@7 PS2, Line 7: mediatek/mt8183
soc/mediatek/mt8183
Done
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@9 PS2, Line 9: When we only enable XO_SOC and mask most BBLPM requests, the BBLPM HW arbiter : will have DCXO core to enter Baseband Low-Power Mode(BBLPM). : Under BBLPM mode, inaccurate(about 1.5KHz offset) 26MHz clocks from crystal is provided : and crystal voltage will drop from 1.8V to 0.7V or lower. : In order to ensure the stability by always outputting an accuarate system clock : when system is running. We should disable BBLPM when only XO_SOC enabled.
Limit line length to 72 characters.
Done
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@15 PS2, Line 15:
Is there a bug for this issue?
no, it's a volunteer patch
Yu-Ping Wu has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37136 )
Change subject: soc/mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/37136/2//COMMIT_MSG@15 PS2, Line 15:
no, it's a volunteer patch
Ack
Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37136 )
Change subject: soc/mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
Patch Set 3: Code-Review+2
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/37136 )
Change subject: soc/mediatek/mt8183: disable BBLPM of DCXO core ......................................................................
soc/mediatek/mt8183: disable BBLPM of DCXO core
When we only enable XO_SOC and mask most BBLPM requests, the BBLPM HW arbiter will have DCXO core to enter Baseband Low-Power Mode(BBLPM). Under BBLPM mode, inaccurate(about 1.5KHz offset) 26MHz clocks from crystal is provided and crystal voltage will drop from 1.8V to 0.7V or lower. In order to ensure the stability by always outputting an accuarate system clock when system is running. We should disable BBLPM when only XO_SOC enabled.
BRANCH=kukui TEST=accurate 26MHz provided and correct crystal voltage swing
Change-Id: Iea72a964507a19735cf92e3774cd8a94c06545b2 Signed-off-by: Weiyi Lu weiyi.lu@mediatek.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/37136 Reviewed-by: Hung-Te Lin hungte@chromium.org Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/soc/mediatek/mt8183/rtc.c 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: build bot (Jenkins): Verified Hung-Te Lin: Looks good to me, approved
diff --git a/src/soc/mediatek/mt8183/rtc.c b/src/soc/mediatek/mt8183/rtc.c index 19b717c..6e17a30 100644 --- a/src/soc/mediatek/mt8183/rtc.c +++ b/src/soc/mediatek/mt8183/rtc.c @@ -435,8 +435,8 @@ { /* Disable clock buffer XO_CEL */ rtc_write(PMIC_RG_DCXO_CW00_CLR, 0x0800); - /* Mask bblpm */ - rtc_write(PMIC_RG_DCXO_CW23, 0x0053); + /* Mask bblpm request and switch off bblpm mode */ + rtc_write(PMIC_RG_DCXO_CW23, 0x0052); }
/* the rtc boot flow entry */