Skip to content

Commit 623a614

Browse files
Houlong WeiJassiBrar
authored andcommitted
mailbox: mediatek: Add Mediatek CMDQ driver
This patch is first version of Mediatek Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirement. Currently, CMDQ only supports display related hardwares, but we expect it can be extended to other hardwares for future requirements. Signed-off-by: Houlong Wei <houlong.wei@mediatek.com> Signed-off-by: HS Liao <hs.liao@mediatek.com> Signed-off-by: CK Hu <ck.hu@mediatek.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 1c82407 commit 623a614

File tree

4 files changed

+658
-0
lines changed

4 files changed

+658
-0
lines changed

drivers/mailbox/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,14 @@ config STM32_IPCC
189189
Mailbox implementation for STMicroelectonics STM32 family chips
190190
with hardware for Inter-Processor Communication Controller (IPCC)
191191
between processors. Say Y here if you want to have this support.
192+
193+
config MTK_CMDQ_MBOX
194+
tristate "MediaTek CMDQ Mailbox Support"
195+
depends on ARCH_MEDIATEK || COMPILE_TEST
196+
select MTK_INFRACFG
197+
help
198+
Say yes here to add support for the MediaTek Command Queue (CMDQ)
199+
mailbox driver. The CMDQ is used to help read/write registers with
200+
critical time limitation, such as updating display configuration
201+
during the vblank.
192202
endif

drivers/mailbox/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ obj-$(CONFIG_QCOM_APCS_IPC) += qcom-apcs-ipc-mailbox.o
4040
obj-$(CONFIG_TEGRA_HSP_MBOX) += tegra-hsp.o
4141

4242
obj-$(CONFIG_STM32_IPCC) += stm32-ipcc.o
43+
44+
obj-$(CONFIG_MTK_CMDQ_MBOX) += mtk-cmdq-mailbox.o

0 commit comments

Comments
 (0)