soc/mediatek/mt8188: Allow SSPM to access PWRAP interface
Allow SSPM to access PWRAP interface. BUG=b:254566089 TEST=build pass and boot to OS. Change-Id: I4b134983dcde1cc293f4b798f91b997baf96d299 Signed-off-by: Sen Chu <sen.chu@mediatek.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72043 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
parent
ad6e3c847f
commit
56d8313925
|
@ -71,14 +71,13 @@ void pmif_spmi_config(struct pmif *arb, int mstid)
|
||||||
write32(&arb->mtk_pmif->inf_cmd_per_2, 0);
|
write32(&arb->mtk_pmif->inf_cmd_per_2, 0);
|
||||||
write32(&arb->mtk_pmif->inf_cmd_per_3, 0);
|
write32(&arb->mtk_pmif->inf_cmd_per_3, 0);
|
||||||
|
|
||||||
/* TODO: figure out correct setting for MT8188 */
|
|
||||||
cmd_per = PMIF_CMD_PER_3 << 28 | PMIF_CMD_PER_3 << 24 |
|
cmd_per = PMIF_CMD_PER_3 << 28 | PMIF_CMD_PER_3 << 24 |
|
||||||
PMIF_CMD_PER_3 << 20 | PMIF_CMD_PER_3 << 16 |
|
PMIF_CMD_PER_3 << 20 | PMIF_CMD_PER_3 << 16 |
|
||||||
PMIF_CMD_PER_3 << 8 | PMIF_CMD_PER_3 << 4 |
|
PMIF_CMD_PER_3 << 8 | PMIF_CMD_PER_3 << 4 |
|
||||||
PMIF_CMD_PER_1_3 << 0;
|
PMIF_CMD_PER_1_3 << 0;
|
||||||
write32(&arb->mtk_pmif->inf_cmd_per_0, cmd_per);
|
write32(&arb->mtk_pmif->inf_cmd_per_0, cmd_per);
|
||||||
|
|
||||||
cmd_per = PMIF_CMD_PER_3 << 4;
|
cmd_per = PMIF_CMD_PER_3 << 8 | PMIF_CMD_PER_3 << 4;
|
||||||
write32(&arb->mtk_pmif->inf_cmd_per_1, cmd_per);
|
write32(&arb->mtk_pmif->inf_cmd_per_1, cmd_per);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue