From 75d7247c07d27d046323504e2dbca5b3e94fbece Mon Sep 17 00:00:00 2001 From: Archit Taneja Date: Mon, 16 May 2011 15:17:08 +0530 Subject: OMAP: DSS2: DSI: Get number of DSI data lanes using DSI_GNQ register On OMAP3, the DSI module has 2 data lanes. On OMAP4, DSI1 has 4 data lanes and DSI2 has 2 data lanes. Introduce function dsi_get_num_data_lanes() which returns the number of data lanes on the dsi interface, introduce function dsi_get_num_data_lanes_dssdev() which returns the number of data lanes used by the omap_dss_device connected to the lanes. Use the DSI_GNQ register on OMAP4 to get the number of data lanes, modify dsi.c to use the number of lanes and the extra data lanes on DSI1. Signed-off-by: Archit Taneja Signed-off-by: Tomi Valkeinen --- include/video/omapdss.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/video') diff --git a/include/video/omapdss.h b/include/video/omapdss.h index b1b5ba55976..e62674599b3 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -420,6 +420,10 @@ struct omap_dss_device { u8 data1_pol; u8 data2_lane; u8 data2_pol; + u8 data3_lane; + u8 data3_pol; + u8 data4_lane; + u8 data4_pol; int module; -- cgit v1.2.3