Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/mediatek: mtk_dsi: Add support for High Speed (HS) mode

Up until now, the MediaTek DSI Controller has always been working
in Low Power Mode (LPM), as this driver has always ignored the
MIPI_DSI_MSG_USE_LPM flag hence never setting HS mode.

In the current state of the driver the only thing that is needed
to add support for DSI High Speed (HS) transmit is to simply set
the "HSTX" config bit in the configuration register.

Check if flag MIPI_DSI_MSG_USE_LPM is set and, if not, set HSTX.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Gary Bisson <bisson.gary@gmail.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20260108101959.14872-1-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>

authored by

AngeloGioacchino Del Regno and committed by
Chun-Kuang Hu
8b009514 24abe1f2

+4
+4
drivers/gpu/drm/mediatek/mtk_dsi.c
··· 152 152 #define SHORT_PACKET 0 153 153 #define LONG_PACKET 2 154 154 #define BTA BIT(2) 155 + #define HSTX BIT(3) 155 156 #define DATA_ID GENMASK(15, 8) 156 157 #define DATA_0 GENMASK(23, 16) 157 158 #define DATA_1 GENMASK(31, 24) ··· 1080 1079 config = BTA; 1081 1080 else 1082 1081 config = (msg->tx_len > 2) ? LONG_PACKET : SHORT_PACKET; 1082 + 1083 + if (!(msg->flags & MIPI_DSI_MSG_USE_LPM)) 1084 + config |= HSTX; 1083 1085 1084 1086 if (msg->tx_len > 2) { 1085 1087 cmdq_size = 1 + (msg->tx_len + 3) / 4;