Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261977
b: refs/heads/master
c: 69f0605
h: refs/heads/master
i:
  261975: 30204dd
v: v3
  • Loading branch information
Tomi Valkeinen committed Jul 25, 2011
1 parent 749951f commit 3d15c40
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49ea86f3fae21dd0334668b621e9c88f43a73c86
refs/heads/master: 69f06054aad122b314cd64fdafdf14fc3b8e5b7c
10 changes: 10 additions & 0 deletions trunk/drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ static struct {
enum omap_dss_clk_source dispc_clk_source;
enum omap_dss_clk_source lcd_clk_source[MAX_DSS_LCD_MANAGERS];

bool ctx_valid;
u32 ctx[DSS_SZ_REGS / sizeof(u32)];
} dss;

Expand Down Expand Up @@ -109,19 +110,28 @@ static void dss_save_context(void)
SR(SDI_CONTROL);
SR(PLL_CONTROL);
}

dss.ctx_valid = true;

DSSDBG("context saved\n");
}

static void dss_restore_context(void)
{
DSSDBG("dss_restore_context\n");

if (!dss.ctx_valid)
return;

RR(CONTROL);

if (dss_feat_get_supported_displays(OMAP_DSS_CHANNEL_LCD) &
OMAP_DISPLAY_TYPE_SDI) {
RR(SDI_CONTROL);
RR(PLL_CONTROL);
}

DSSDBG("context restored\n");
}

#undef SR
Expand Down

0 comments on commit 3d15c40

Please sign in to comment.