Browse Source

feat(mt8186): disable 26MHz clock while suspending

Change resource_req to 0 to disable 26MHz clock.
SPM firmware will pull-down SRCLKENA0 after 26MHz off while suspending.

TEST=verify 26MHz clock off using the oscilloscope.
BUG=b:215639203

Signed-off-by: Jason-ch Chen <jason-ch.chen@mediatek.com>
Change-Id: I05702d14a015cabccd6d4af0e3f2a534fbe4dd12
pull/1985/head
jason-ch chen 3 years ago
committed by Rex-BC Chen
parent
commit
9457cec8c0
  1. 10
      plat/mediatek/mt8186/drivers/spm/mt_spm_suspend.c

10
plat/mediatek/mt8186/drivers/spm/mt_spm_suspend.c

@ -76,11 +76,11 @@ static struct pwr_ctrl suspend_ctrl = {
.reg_ccif_event_apsrc_req_mask_b = 0,
/* SPM_SRC_REQ */
.reg_spm_apsrc_req = 1,
.reg_spm_f26m_req = 1,
.reg_spm_infra_req = 1,
.reg_spm_vrf18_req = 1,
.reg_spm_ddren_req = 1,
.reg_spm_apsrc_req = 0,
.reg_spm_f26m_req = 0,
.reg_spm_infra_req = 0,
.reg_spm_vrf18_req = 0,
.reg_spm_ddren_req = 0,
.reg_spm_dvfs_req = 0,
.reg_spm_sw_mailbox_req = 0,
.reg_spm_sspm_mailbox_req = 0,

Loading…
Cancel
Save