diff options
author | Archit Taneja <archit@ti.com> | 2011-05-16 05:47:08 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-05-16 06:31:09 -0400 |
commit | 75d7247c07d27d046323504e2dbca5b3e94fbece (patch) | |
tree | 69b545fb4181fbd9fd50dd2a36cb68eab731e443 /include/video/omapdss.h | |
parent | 49dbf5892fc67466ac2780c1d42d8a02726f5538 (diff) |
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 <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video/omapdss.h')
-rw-r--r-- | include/video/omapdss.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index b1b5ba55976e..e62674599b3d 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -420,6 +420,10 @@ struct omap_dss_device { | |||
420 | u8 data1_pol; | 420 | u8 data1_pol; |
421 | u8 data2_lane; | 421 | u8 data2_lane; |
422 | u8 data2_pol; | 422 | u8 data2_pol; |
423 | u8 data3_lane; | ||
424 | u8 data3_pol; | ||
425 | u8 data4_lane; | ||
426 | u8 data4_pol; | ||
423 | 427 | ||
424 | int module; | 428 | int module; |
425 | 429 | ||