summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/displays
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-08-13 15:12:10 +0530
committerArchit Taneja <archit@ti.com>2012-08-15 15:53:09 +0530
commit6ff9dd5a6fe624726f7004ddf995bb2b3409e1d5 (patch)
tree24ed2e8673669b45f158f3e29d4f738bef71bb41 /drivers/video/omap2/displays
parent43eab86167a0893e0e1102d4a5a1d95dfe442f8d (diff)
downloadlinux-next-6ff9dd5a6fe624726f7004ddf995bb2b3409e1d5.tar.gz
OMAPDSS: RFBI: Add function to set panel size
RFBI drivers requires configuration of the update area. Since we don't support partial updates, the size to be configures is the panel size itself. Add a timings field in RFBI's driver data. Apart from x_res and y_res, all the other fields are configured to an initial value when RFBI is enabled. A panel driver is expected to call omapdss_rfbi_set_size() configure the size of the panel. Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays')
-rw-r--r--drivers/video/omap2/displays/panel-n8x0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-n8x0.c b/drivers/video/omap2/displays/panel-n8x0.c
index 1d421b5ffae4..839ef84bb3d6 100644
--- a/drivers/video/omap2/displays/panel-n8x0.c
+++ b/drivers/video/omap2/displays/panel-n8x0.c
@@ -297,6 +297,9 @@ static int n8x0_panel_power_on(struct omap_dss_device *dssdev)
goto err_plat_en;
}
+ omapdss_rfbi_set_size(dssdev, dssdev->panel.timings.x_res,
+ dssdev->panel.timings.y_res);
+
r = omapdss_rfbi_display_enable(dssdev);
if (r)
goto err_rfbi_en;