linux/drivers/gpu/drm/bridge
Douglas Anderson 37c1d89820 drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can
The current bridge driver always forced us to use 24 bits per pixel
over the DP link.  This is a waste if you are hooked up to a panel
that only supports 6 bits per color or fewer, since in that case you
can run at 18 bits per pixel and thus end up at a lower DP clock rate.

Let's support this.

While at it, let's clean up the math in the function to avoid rounding
errors (and round in the correct direction when we have to round).
Numbers are sufficiently small (because mode->clock is in kHz) that we
don't need to worry about integer overflow.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
[narmstrong: s/ran/can/]
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191218143416.v3.6.Iaf8d698f4e5253d658ae283d2fd07268076a7c27@changeid
2020-02-13 10:21:45 +01:00
..
adv7511 drm: bridge: adv7511: Add support for ADV7535 2020-02-10 10:23:52 +01:00
analogix drm/bridge: Patch atomic hooks to take a drm_bridge_state 2020-01-31 16:00:24 +01:00
synopsys drm/bridge/synopsys: dsi: missing post disable 2020-02-10 11:07:36 +01:00
cdns-dsi.c drm/bridge: cdns: remove set but not used variable 'nlanes' 2020-01-06 16:08:44 +01:00
dumb-vga-dac.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
Kconfig drm/bridge: sii902x: Select SND_SOC_HDMI_CODEC if SND_SOC is configured 2020-02-10 10:54:59 +01:00
lvds-codec.c drm/bridge: lvds-codec: Simplify panel DT node localisation 2019-12-18 12:26:09 +01:00
Makefile drm/bridge: Add tc358768 driver 2020-02-10 10:49:49 +01:00
megachips-stdpxxxx-ge-b850v3-fw.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
nxp-ptn3460.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
panel.c drm/bridge: panel: Fix typo in drm_panel_bridge_add docs 2020-02-10 11:08:29 +01:00
parade-ps8622.c drm/panel: decouple connector from drm_panel 2019-12-09 22:57:26 +01:00
parade-ps8640.c drm/bridge: Add I2C based driver for ps8640 bridge 2020-01-22 16:45:50 +01:00
sii902x.c drm: Stop including drm_bridge.h from drm_crtc.h 2019-08-28 22:11:03 +02:00
sii9234.c gpu: drm: bridge: sii9234: convert to devm_i2c_new_dummy_device 2019-10-10 08:57:27 +02:00
sil-sii8620.c drm/bridge: sil_sii8620: make remote control optional. 2019-10-10 10:42:15 +02:00
sil-sii8620.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tc358764.c drm/panel: decouple connector from drm_panel 2019-12-09 22:57:26 +01:00
tc358767.c drm/panel: decouple connector from drm_panel 2019-12-09 22:57:26 +01:00
tc358768.c drm/bridge: Add tc358768 driver 2020-02-10 10:49:49 +01:00
thc63lvd1024.c R-Car DU changes for v5.3: 2019-06-11 10:08:49 +02:00
ti-sn65dsi86.c drm/bridge: ti-sn65dsi86: Use 18-bit DP if we can 2020-02-13 10:21:45 +01:00
ti-tfp410.c drm/bridge: tfp410: add pclk limits 2020-02-11 09:17:51 +02:00