Skip to content

Commit 85099f1

Browse files
committed
Revert "OMAPDSS: APPLY: add fifo merge support funcs"
This reverts commit fb01197. Adding fifo merge feature as an omapdss internal configuration was a mistake. We cannot hide from the users of omapdss the complexities of fifo merge. The previous commit removed fifo merge itself, and this removes the remaining fifo merge support functions. Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent b3e93cb commit 85099f1

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

drivers/video/omap2/dss/apply.c

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ static struct {
111111
struct ovl_priv_data ovl_priv_data_array[MAX_DSS_OVERLAYS];
112112
struct mgr_priv_data mgr_priv_data_array[MAX_DSS_MANAGERS];
113113

114-
bool fifo_merge_dirty;
115-
bool fifo_merge;
116-
117114
bool irq_enabled;
118115
} dss_data;
119116

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

680-
static void dss_write_regs_common(void)
681-
{
682-
const int num_mgrs = omap_dss_get_num_overlay_managers();
683-
int i;
684-
685-
if (!dss_data.fifo_merge_dirty)
686-
return;
687-
688-
for (i = 0; i < num_mgrs; ++i) {
689-
struct omap_overlay_manager *mgr;
690-
struct mgr_priv_data *mp;
691-
692-
mgr = omap_dss_get_overlay_manager(i);
693-
mp = get_mgr_priv(mgr);
694-
695-
if (mp->enabled) {
696-
if (dss_data.fifo_merge_dirty) {
697-
dispc_enable_fifomerge(dss_data.fifo_merge);
698-
dss_data.fifo_merge_dirty = false;
699-
}
700-
701-
if (mp->updating)
702-
mp->shadow_info_dirty = true;
703-
}
704-
}
705-
}
706-
707677
static void dss_write_regs(void)
708678
{
709679
const int num_mgrs = omap_dss_get_num_overlay_managers();
710680
int i;
711681

712-
dss_write_regs_common();
713-
714682
for (i = 0; i < num_mgrs; ++i) {
715683
struct omap_overlay_manager *mgr;
716684
struct mgr_priv_data *mp;
@@ -799,8 +767,6 @@ void dss_mgr_start_update(struct omap_overlay_manager *mgr)
799767
dss_mgr_write_regs(mgr);
800768
dss_mgr_write_regs_extra(mgr);
801769

802-
dss_write_regs_common();
803-
804770
mp->updating = true;
805771

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

987-
static void dss_apply_fifo_merge(bool use_fifo_merge)
988-
{
989-
if (dss_data.fifo_merge == use_fifo_merge)
990-
return;
991-
992-
dss_data.fifo_merge = use_fifo_merge;
993-
dss_data.fifo_merge_dirty = true;
994-
}
995-
996953
static void dss_ovl_setup_fifo(struct omap_overlay *ovl)
997954
{
998955
struct ovl_priv_data *op = get_ovl_priv(ovl);

0 commit comments

Comments
 (0)