aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2012-08-14 06:21:17 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2012-11-21 09:50:00 -0500
commit86c82c43365b0c06002aa69a8185219be9437317 (patch)
treeda9413ed824d52145ddd0ec06ee5dbcd13dd3535
parent772f5d1b78f1427be0abe54dbde82c51678316b9 (diff)
fbdev: sh_mipi_dsi: Use the sh_mipi_dsi_info channel field
Get the LCDC channel selector from the sh_mipi_dsi_info channel field directly instead of accessing the LCDC platform data through the lcd_chan field. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--drivers/video/sh_mipi_dsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/sh_mipi_dsi.c b/drivers/video/sh_mipi_dsi.c
index 3951fdae5f68..7f6ce6515b6d 100644
--- a/drivers/video/sh_mipi_dsi.c
+++ b/drivers/video/sh_mipi_dsi.c
@@ -369,7 +369,7 @@ static int sh_mipi_setup(struct sh_mipi *mipi, struct sh_mipi_dsi_info *pdata)
369 /* setup LCD panel */ 369 /* setup LCD panel */
370 370
371 /* cf. drivers/video/omap/lcd_mipid.c */ 371 /* cf. drivers/video/omap/lcd_mipid.c */
372 sh_mipi_dcs(ch->chan, MIPI_DCS_EXIT_SLEEP_MODE); 372 sh_mipi_dcs(pdata->channel, MIPI_DCS_EXIT_SLEEP_MODE);
373 msleep(120); 373 msleep(120);
374 /* 374 /*
375 * [7] - Page Address Mode 375 * [7] - Page Address Mode
@@ -381,11 +381,11 @@ static int sh_mipi_setup(struct sh_mipi *mipi, struct sh_mipi_dsi_info *pdata)
381 * [1] - Flip Horizontal 381 * [1] - Flip Horizontal
382 * [0] - Flip Vertical 382 * [0] - Flip Vertical
383 */ 383 */
384 sh_mipi_dcs_param(ch->chan, MIPI_DCS_SET_ADDRESS_MODE, 0x00); 384 sh_mipi_dcs_param(pdata->channel, MIPI_DCS_SET_ADDRESS_MODE, 0x00);
385 /* cf. set_data_lines() */ 385 /* cf. set_data_lines() */
386 sh_mipi_dcs_param(ch->chan, MIPI_DCS_SET_PIXEL_FORMAT, 386 sh_mipi_dcs_param(pdata->channel, MIPI_DCS_SET_PIXEL_FORMAT,
387 pixfmt << 4); 387 pixfmt << 4);
388 sh_mipi_dcs(ch->chan, MIPI_DCS_SET_DISPLAY_ON); 388 sh_mipi_dcs(pdata->channel, MIPI_DCS_SET_DISPLAY_ON);
389 389
390 /* Enable timeout counters */ 390 /* Enable timeout counters */
391 iowrite32(0x00000f00, base + DSICTRL); 391 iowrite32(0x00000f00, base + DSICTRL);