diff options
author | Mirela Rabulea <mirela.rabulea@nxp.com> | 2018-03-07 10:45:29 +0200 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:30:57 +0800 |
commit | c0c71b7945428ccf98c7727854274bc57ae3993d (patch) | |
tree | 864f12f523381e53d09d5e6c7ac5fef8e1ef1fbf /include/drm | |
parent | 4f31c041386570b7a4cd54e929e8e329dbceb8a4 (diff) |
MLK-17684-2: drm/bridge: nwl-dsi: Let CRTC dictate the final bus format
Use the bus format that was established by CRTC in
crtc->mode.private_flags.
This will be available during enable phase.
The DSI host will be configured via interface_color_coding
and pixel_format (DPI-2 interface ports).
Previously the interface_color_coding was hardcoded to 24-bit.
Set the DSI pixel format before it is necessary in
nwl_dsi_get_bit_clock, during imx_nwl_dsi_enable.
Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/bridge/nwl_dsi.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/include/drm/bridge/nwl_dsi.h b/include/drm/bridge/nwl_dsi.h index 11a7bef6d5c1..21fe1d0d4313 100644 --- a/include/drm/bridge/nwl_dsi.h +++ b/include/drm/bridge/nwl_dsi.h @@ -18,14 +18,25 @@ #include <drm/drm_mipi_dsi.h> #include <linux/phy/phy.h> -/* RGB bit distribution as specified by the DPI specification */ +/* + * RGB bit distribution within the 24-bit data bus, + * as specified by the DPI specification + */ +enum dpi_interface_color_coding { + DPI_16_BIT_565_PACKED, /* 0x0 cfg1 */ + DPI_16_BIT_565_ALIGNED, /* 0x1 cfg 2 */ + DPI_16_BIT_565_SHIFTED, /* 0x2 cfg 3 */ + DPI_18_BIT_PACKED, /* 0x3 cfg1 */ + DPI_18_BIT_ALIGNED, /* 0x4* cfg2 */ + DPI_24_BIT /* 0x5 */ +}; + +/* DSI packet type of pixels, as specified by the DPI specification */ enum dpi_pixel_format { - DPI_16_BIT_565_PACKED, - DPI_16_BIT_565_ALIGNED, - DPI_16_BIT_565_SHIFTED, - DPI_18_BIT_PACKED, - DPI_18_BIT_ALIGNED, - DPI_24_BIT + DPI_FMT_16_BIT, /* 0x0 */ + DPI_FMT_18_BIT, /* 0x1 */ + DPI_FMT_18_BIT_LOOSELY_PACKED, /* 0x2 */ + DPI_FMT_24_BIT /* 0x3 */ }; /* |