diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-01-08 09:56:44 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-24 07:31:27 -0500 |
commit | c75d9464c1fa315796e78468bfaf32f2ce676fed (patch) | |
tree | 2f89e91c4dbdae16996ac3c8872aa43902ff7101 /drivers/video/omap2/dss/dsi.c | |
parent | 1a75ef422d0d1319bc0fab66b0bf339069519d8c (diff) |
OMAP: DSS2: move memory_read()
Move memory_read() from omap_dss_device to omap_dss_driver.
This is part of a larger patch-set, which moves the control from omapdss
driver to the display driver.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index f01c9ca0fa5..638d8c29e9d 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -3584,34 +3584,6 @@ static bool dsi_display_get_mirror(struct omap_dss_device *dssdev) | |||
3584 | return dssdev->driver->get_mirror(dssdev); | 3584 | return dssdev->driver->get_mirror(dssdev); |
3585 | } | 3585 | } |
3586 | 3586 | ||
3587 | static int dsi_display_memory_read(struct omap_dss_device *dssdev, | ||
3588 | void *buf, size_t size, | ||
3589 | u16 x, u16 y, u16 w, u16 h) | ||
3590 | { | ||
3591 | int r; | ||
3592 | |||
3593 | DSSDBGF(""); | ||
3594 | |||
3595 | if (!dssdev->driver->memory_read) | ||
3596 | return -EINVAL; | ||
3597 | |||
3598 | if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE) | ||
3599 | return -EIO; | ||
3600 | |||
3601 | dsi_bus_lock(); | ||
3602 | |||
3603 | r = dssdev->driver->memory_read(dssdev, buf, size, | ||
3604 | x, y, w, h); | ||
3605 | |||
3606 | /* Memory read usually changes the update area. This will | ||
3607 | * force the next update to re-set the update area */ | ||
3608 | dsi.active_update_region.dirty = true; | ||
3609 | |||
3610 | dsi_bus_unlock(); | ||
3611 | |||
3612 | return r; | ||
3613 | } | ||
3614 | |||
3615 | void dsi_get_overlay_fifo_thresholds(enum omap_plane plane, | 3587 | void dsi_get_overlay_fifo_thresholds(enum omap_plane plane, |
3616 | u32 fifo_size, enum omap_burst_size *burst_size, | 3588 | u32 fifo_size, enum omap_burst_size *burst_size, |
3617 | u32 *fifo_low, u32 *fifo_high) | 3589 | u32 *fifo_low, u32 *fifo_high) |
@@ -3646,8 +3618,6 @@ int dsi_init_display(struct omap_dss_device *dssdev) | |||
3646 | dssdev->get_mirror = dsi_display_get_mirror; | 3618 | dssdev->get_mirror = dsi_display_get_mirror; |
3647 | dssdev->set_mirror = dsi_display_set_mirror; | 3619 | dssdev->set_mirror = dsi_display_set_mirror; |
3648 | 3620 | ||
3649 | dssdev->memory_read = dsi_display_memory_read; | ||
3650 | |||
3651 | /* XXX these should be figured out dynamically */ | 3621 | /* XXX these should be figured out dynamically */ |
3652 | dssdev->caps = OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE | | 3622 | dssdev->caps = OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE | |
3653 | OMAP_DSS_DISPLAY_CAP_TEAR_ELIM; | 3623 | OMAP_DSS_DISPLAY_CAP_TEAR_ELIM; |