diff options
author | Jason-JH Lin <jason-jh.lin@mediatek.com> | 2025-04-21 11:55:47 +0800 |
---|---|---|
committer | Jassi Brar <jassisinghbrar@gmail.com> | 2025-05-26 16:23:39 -0500 |
commit | 9fcebcb37c3e0a4b6eb40768cc5a5faebf166fbe (patch) | |
tree | 5f784caec39c6bc4a9116cc287a2a092db3c079e /net/lapb/lapb_subr.c | |
parent | f5cb07ec6aabd1bb56adbdeb5f0d70cb524db2cd (diff) |
mailbox: mtk-cmdq: Refine GCE_GCTL_VALUE setting
Add cmdq_gctl_value_toggle() to configure GCE_CTRL_BY_SW and GCE_DDR_EN
together in the same GCE_GCTL_VALUE register.
For the SoCs whose GCE is located in MMINFRA and uses MMINFRA_AO power,
this allows it to be written without enabling the clocks. Otherwise, all
GCE registers should be written after the GCE clocks are enabled.
Move this function into cmdq_runtime_resume() and cmdq_runtime_suspend()
to ensure it is called when the GCE clock is enabled.
Fixes: 7abd037aa581 ("mailbox: mtk-cmdq: add gce ddr enable support flow")
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions