]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: dw-mipi-dsi: driver-specific configuration of phy timings
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 2 Oct 2020 09:16:08 +0000 (11:16 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sun, 18 Oct 2020 08:35:06 +0000 (10:35 +0200)
commitb53c122631d3e88280909c04102d7859c311cdfe
treee9b782015c9dd85a26633fcd7abfbbdb82b38e7c
parent3d19a7ee8ca7af01f75ff24622ea3c9840cd5bca
video: dw-mipi-dsi: driver-specific configuration of phy timings

The timing values for dw-dsi are often dependent on the used display and
according to Philippe Cornu will most likely also depend on the used phy
technology in the soc-specific implementation.

To solve this and allow specific implementations to define them as needed
add a new get_timing callback to phy_ops and call this from the dphy_timing
function to retrieve the necessary values for the specific mode.

This is based on the Linux commit [1] and adapted to the U-Boot driver.

[1] 25ed8aeb9c39 ("drm/bridge/synopsys: dsi: driver-specific configuration of phy timings")

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/video/dw_mipi_dsi.c
include/mipi_dsi.h