Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310291
b: refs/heads/master
c: a8081d3
h: refs/heads/master
i:
  310289: 93e5ee5
  310287: 662d416
v: v3
  • Loading branch information
Tomi Valkeinen committed Apr 23, 2012
1 parent 6d3a149 commit 9934316
Show file tree
Hide file tree
Showing 4 changed files with 25 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: 62c1dcfc7451a8e42104776705a317e06a8e24a3
refs/heads/master: a8081d317978416197295df22fc2ea71e4812f50
10 changes: 10 additions & 0 deletions trunk/drivers/video/omap2/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ struct regulator *dss_get_vdds_sdi(void)
return reg;
}

int dss_set_min_bus_tput(struct device *dev, unsigned long tput)
{
struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;

if (pdata->set_min_bus_tput)
return pdata->set_min_bus_tput(dev, tput);
else
return 0;
}

#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT)
static int dss_debug_show(struct seq_file *s, void *unused)
{
Expand Down
13 changes: 13 additions & 0 deletions trunk/drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,11 +829,24 @@ static int omap_dsshw_remove(struct platform_device *pdev)
static int dss_runtime_suspend(struct device *dev)
{
dss_save_context();
dss_set_min_bus_tput(dev, 0);
return 0;
}

static int dss_runtime_resume(struct device *dev)
{
int r;
/*
* Set an arbitrarily high tput request to ensure OPP100.
* What we should really do is to make a request to stay in OPP100,
* without any tput requirements, but that is not currently possible
* via the PM layer.
*/

r = dss_set_min_bus_tput(dev, 1000000000);
if (r)
return r;

dss_restore_context();
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/video/omap2/dss/dss.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ struct platform_device;
struct bus_type *dss_get_bus(void);
struct regulator *dss_get_vdds_dsi(void);
struct regulator *dss_get_vdds_sdi(void);
int dss_set_min_bus_tput(struct device *dev, unsigned long tput);

/* apply */
void dss_apply_init(void);
Expand Down

0 comments on commit 9934316

Please sign in to comment.