Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310303
b: refs/heads/master
c: e5c09e0
h: refs/heads/master
i:
  310301: 2474e4a
  310299: 38e34c7
  310295: 4456bc3
  310287: 662d416
  310271: 97f304f
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Apr 23, 2012
1 parent 18406b0 commit 0f0194b
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 693cc078dc8b89d20a0d7d32f1a32d03a4fc1e7f
refs/heads/master: e5c09e06a9ef882e770aa1fa1bcfd5e5c90c6519
3 changes: 2 additions & 1 deletion trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,8 @@ static void dispc_ovl_enable_replication(enum omap_plane plane, bool enable)
REG_FLD_MOD(DISPC_OVL_ATTRIBUTES(plane), enable, shift, shift);
}

void dispc_mgr_set_lcd_size(enum omap_channel channel, u16 width, u16 height)
static void dispc_mgr_set_lcd_size(enum omap_channel channel, u16 width,
u16 height)
{
u32 val;
BUG_ON((width > (1 << 11)) || (height > (1 << 11)));
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/video/omap2/dss/dss.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ void dispc_ovl_set_channel_out(enum omap_plane plane,
enum omap_channel channel);

void dispc_mgr_enable_fifohandcheck(enum omap_channel channel, bool enable);
void dispc_mgr_set_lcd_size(enum omap_channel channel, u16 width, u16 height);
u32 dispc_mgr_get_vsync_irq(enum omap_channel channel);
u32 dispc_mgr_get_framedone_irq(enum omap_channel channel);
bool dispc_mgr_go_busy(enum omap_channel channel);
Expand Down
24 changes: 22 additions & 2 deletions trunk/drivers/video/omap2/dss/rfbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,23 @@ static void rfbi_transfer_area(struct omap_dss_device *dssdev, u16 width,
u16 height, void (*callback)(void *data), void *data)
{
u32 l;
struct omap_video_timings timings = {
.hsw = 1,
.hfp = 1,
.hbp = 1,
.vsw = 1,
.vfp = 0,
.vbp = 0,
.x_res = width,
.y_res = height,
};

/*BUG_ON(callback == 0);*/
BUG_ON(rfbi.framedone_callback != NULL);

DSSDBG("rfbi_transfer_area %dx%d\n", width, height);

dispc_mgr_set_lcd_size(dssdev->manager->id, width, height);
dispc_mgr_set_lcd_timings(dssdev->manager->id, &timings);

dispc_mgr_enable(dssdev->manager->id, true);

Expand Down Expand Up @@ -766,6 +776,16 @@ int omap_rfbi_prepare_update(struct omap_dss_device *dssdev,
u16 *x, u16 *y, u16 *w, u16 *h)
{
u16 dw, dh;
struct omap_video_timings timings = {
.hsw = 1,
.hfp = 1,
.hbp = 1,
.vsw = 1,
.vfp = 0,
.vbp = 0,
.x_res = *w,
.y_res = *h,
};

dssdev->driver->get_resolution(dssdev, &dw, &dh);

Expand All @@ -784,7 +804,7 @@ int omap_rfbi_prepare_update(struct omap_dss_device *dssdev,
if (*w == 0 || *h == 0)
return -EINVAL;

dispc_mgr_set_lcd_size(dssdev->manager->id, *w, *h);
dispc_mgr_set_lcd_timings(dssdev->manager->id, &timings);

return 0;
}
Expand Down

0 comments on commit 0f0194b

Please sign in to comment.