diff options
author | Mirela Rabulea <mirela.rabulea@nxp.com> | 2018-03-07 10:45:29 +0200 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | 754f3040d53f40c2762e2fa38367384169a63efc (patch) | |
tree | 26db91ad077d409abde9db98f8b4883a3c220b91 /include/drm | |
parent | 08752e987aff1bd032442dfa99ca57a99ccd5a29 (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 */ }; /* |