OSDN Git Service

drm/stm: dsi: compute the transition time from LP to HS and back
authorAntonio Borneo <antonio.borneo@foss.st.com>
Tue, 13 Jul 2021 14:49:41 +0000 (16:49 +0200)
committerPhilippe Cornu <philippe.cornu@foss.st.com>
Mon, 19 Jul 2021 13:35:55 +0000 (15:35 +0200)
commit5cc4e71f0199391b0e311c44e79736c13eea269d
tree2bbe11ece071fb4b06aaf1b323a9bf2d91fc4a24
parent648ce7fd186cfb2ed7443f32bea8db735f9d219c
drm/stm: dsi: compute the transition time from LP to HS and back

The driver uses a conservative set of hardcoded values for the
maximum time delay of the transitions between LP and HS, either
for data and clock lanes.

By using the info in STM32MP157 datasheet, valid also for other ST
devices, compute the actual delay from the lane's bps.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Reviewed-by: Philippe Cornu <philippe.cornu@foss.st.com>
Acked-by: Philippe Cornu <philippe.cornu@foss.st.com>
Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210713144941.3599-1-antonio.borneo@foss.st.com
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c