Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333543
b: refs/heads/master
c: 85099f1
h: refs/heads/master
i:
  333541: f8e40a4
  333539: c95e993
  333535: 710384a
v: v3
  • Loading branch information
Tomi Valkeinen committed Sep 7, 2012
1 parent 08e56fe commit 75d88df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 44 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: b3e93cbddd6ab0c529a747a910e3bf9615e89982
refs/heads/master: 85099f11bd0360a0327edb1f61aeea89764677bf
43 changes: 0 additions & 43 deletions trunk/drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ static struct {
struct ovl_priv_data ovl_priv_data_array[MAX_DSS_OVERLAYS];
struct mgr_priv_data mgr_priv_data_array[MAX_DSS_MANAGERS];

bool fifo_merge_dirty;
bool fifo_merge;

bool irq_enabled;
} dss_data;

Expand Down Expand Up @@ -677,40 +674,11 @@ static void dss_mgr_write_regs_extra(struct omap_overlay_manager *mgr)
mp->shadow_extra_info_dirty = true;
}

static void dss_write_regs_common(void)
{
const int num_mgrs = omap_dss_get_num_overlay_managers();
int i;

if (!dss_data.fifo_merge_dirty)
return;

for (i = 0; i < num_mgrs; ++i) {
struct omap_overlay_manager *mgr;
struct mgr_priv_data *mp;

mgr = omap_dss_get_overlay_manager(i);
mp = get_mgr_priv(mgr);

if (mp->enabled) {
if (dss_data.fifo_merge_dirty) {
dispc_enable_fifomerge(dss_data.fifo_merge);
dss_data.fifo_merge_dirty = false;
}

if (mp->updating)
mp->shadow_info_dirty = true;
}
}
}

static void dss_write_regs(void)
{
const int num_mgrs = omap_dss_get_num_overlay_managers();
int i;

dss_write_regs_common();

for (i = 0; i < num_mgrs; ++i) {
struct omap_overlay_manager *mgr;
struct mgr_priv_data *mp;
Expand Down Expand Up @@ -799,8 +767,6 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr)
dss_mgr_write_regs(mgr);
dss_mgr_write_regs_extra(mgr);

dss_write_regs_common();

mp->updating = true;

if (!dss_data.irq_enabled && need_isr())
Expand Down Expand Up @@ -984,15 +950,6 @@ static void dss_apply_ovl_fifo_thresholds(struct omap_overlay *ovl,
op->extra_info_dirty = true;
}

static void dss_apply_fifo_merge(bool use_fifo_merge)
{
if (dss_data.fifo_merge == use_fifo_merge)
return;

dss_data.fifo_merge = use_fifo_merge;
dss_data.fifo_merge_dirty = true;
}

static void dss_ovl_setup_fifo(struct omap_overlay *ovl)
{
struct ovl_priv_data *op = get_ovl_priv(ovl);
Expand Down

0 comments on commit 75d88df

Please sign in to comment.