mailbox: cmdq: add multi-gce clocks support for mt8195
authorjason-jh.lin <jason-jh.lin@mediatek.com>
Tue, 31 Aug 2021 07:09:03 +0000 (15:09 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 1 Sep 2021 03:57:45 +0000 (22:57 -0500)
commit85dfdbfc13ea9614a2168ce4a7d2cd089d84cb64
tree883f97a2d1dd029cb9862c8465c63a5c93a3c1f3
parent8d4f5a9e012abb7919f7b63656ea571f22789918
mailbox: cmdq: add multi-gce clocks support for mt8195

For the design of GCE hardware event signal transportation,
evnet rx will send the event signal to all GCE event merges
after receiving the event signal from the other hardware.

Because GCE event merges need to response to event rx, their
clocks must be enabled at that time.

To make sure all the gce clock is enabled while receiving the
hardware event, each cmdq mailbox should enable or disable
the others gce clk at the same time.

Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c