diff options
author | Archit Taneja <archit@ti.com> | 2011-03-02 02:05:53 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-11 08:46:28 -0500 |
commit | 5ee3c1445dd89342ca8498c14afef82d0f76c794 (patch) | |
tree | 7ff0119aa4b1962633d3edc5c1a81bf415ab8ad9 /arch/arm | |
parent | 0a5835185420160f4fe8a6e1d1e42cd7efa07dc7 (diff) |
OMAP: DSS2: Functions to request/release DSI VCs
Introduce functions which request and release VC's. This will be used in panel
drivers in their probes.
omap_dsi_request_vc() takes in the pointer to the omap_dss_device, the VC_ID
parameter which goes into the header of the DSI packets, and returns a Virtual
channel number (or virtual channel register set) which it can use.
omap_dsi_set_vc_id() takes the omap_dss_device pointer, the Virtual Channel
number and the VC_ID that needs to be set for the specifed Virtual Channel.
omap_dsi_release_vc() takes the omap_dss_device pointer and the Virtual Channel
number that needs to be made free.
Initialisation of VC parameters is done in dsi_init().
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/plat-omap/include/plat/display.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/display.h b/arch/arm/plat-omap/include/plat/display.h index 37658249e483..e81ca66dfbb4 100644 --- a/arch/arm/plat-omap/include/plat/display.h +++ b/arch/arm/plat-omap/include/plat/display.h | |||
@@ -562,6 +562,9 @@ int omap_dsi_update(struct omap_dss_device *dssdev, | |||
562 | int channel, | 562 | int channel, |
563 | u16 x, u16 y, u16 w, u16 h, | 563 | u16 x, u16 y, u16 w, u16 h, |
564 | void (*callback)(int, void *), void *data); | 564 | void (*callback)(int, void *), void *data); |
565 | int omap_dsi_request_vc(struct omap_dss_device *dssdev, int *channel); | ||
566 | int omap_dsi_set_vc_id(struct omap_dss_device *dssdev, int channel, int vc_id); | ||
567 | void omap_dsi_release_vc(struct omap_dss_device *dssdev, int channel); | ||
565 | 568 | ||
566 | int omapdss_dsi_display_enable(struct omap_dss_device *dssdev); | 569 | int omapdss_dsi_display_enable(struct omap_dss_device *dssdev); |
567 | void omapdss_dsi_display_disable(struct omap_dss_device *dssdev); | 570 | void omapdss_dsi_display_disable(struct omap_dss_device *dssdev); |