MLK-17537-4: drm/bridge: nwl-dsi: implement mode_valid()
authorRobert Chiras <robert.chiras@nxp.com>
Mon, 4 Feb 2019 12:53:45 +0000 (14:53 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit53fb4c4671dc87d5f12b390ad187112726c03fff
treed80035338e2d433efa5071f9995aa1447053de32
parentd8f17fcdc43431221175f0635fe98ca9f12526fe
MLK-17537-4: drm/bridge: nwl-dsi: implement mode_valid()

This patch removes the exported function nwl_dsi_get_bit_clock that was
used by nwl_dsi-imx driver in order to configure the phy driver speed
and move this configuration directly into the nwl-dsi driver.
This function is now used directly by nwl-dsi to verify which mode can or
cannot be supported by the DSI PHY.
Also, in nwl-dsi, add support for mode_valid and add each supported mode
into a list kept internally so that it can apply the needed
configuration (phyref rate, dsi lanes, bit-clock) later when the mode is
used.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/bridge/nwl-dsi.c
drivers/gpu/drm/imx/nwl_dsi-imx.c
include/drm/bridge/nwl_dsi.h