Commit 27388277 authored by Guido Gunther's avatar Guido Gunther

nwl-dsi: Print out mode params in debug mode

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent c1035378
......@@ -336,6 +336,7 @@ static void nwl_dsi_config_host(struct nwl_mipi_dsi *dsi)
if (dsi->lanes < 1 || dsi->lanes > 4)
return;
DRM_DEV_DEBUG_DRIVER(dsi->dev, "DSI Lanes %d", dsi->lanes);
nwl_dsi_write(dsi, CFG_NUM_LANES, dsi->lanes - 1);
if (dsi->dsi_mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) {
......@@ -372,6 +373,15 @@ static void nwl_dsi_config_dpi(struct nwl_mipi_dsi *dsi)
u32 color_format = nwl_dsi_get_dpi_pixel_format(dsi->format);
bool burst_mode;
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hfront_porch = %d", vm->hfront_porch);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hback_porch = %d", vm->hback_porch);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hsync_len = %d", vm->hsync_len);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "hactive = %d", vm->hactive);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "vfront_porch = %d", vm->vfront_porch);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "vback_porch = %d", vm->vback_porch);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "vsync_len = %d", vm->vsync_len);
DRM_DEV_DEBUG_DRIVER(dsi->dev, "vactive = %d", vm->vactive);
nwl_dsi_write(dsi, INTERFACE_COLOR_CODING, DPI_24_BIT);
nwl_dsi_write(dsi, PIXEL_FORMAT, color_format);
/*TODO: need to make polarity configurable */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment