Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313368
b: refs/heads/master
c: d1c1691
h: refs/heads/master
v: v3
  • Loading branch information
Jon Hunter authored and Tony Lindgren committed Jun 14, 2012
1 parent 4c6af9b commit 177199c
Show file tree
Hide file tree
Showing 4 changed files with 7 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: b7b4ff764f7bf903e47eebdab661b1c38e791c6d
refs/heads/master: d1c1691be5290bf7e5b11b63b6fda0d63a9f4937
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-omap2/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ static int __init omap_timer_init(struct omap_hwmod *oh, void *unused)
pdata->set_timer_src = omap2_dm_timer_set_src;
pdata->timer_ip_version = oh->class->rev;

if (timer_dev_attr)
pdata->timer_capability = timer_dev_attr->timer_capability;

pwrdm = omap_hwmod_get_pwrdm(oh);
pdata->loses_context = pwrdm_can_ever_lose_context(pwrdm);
#ifdef CONFIG_PM
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/plat-omap/dmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ static int __devinit omap_dm_timer_probe(struct platform_device *pdev)
timer->pdev = pdev;
timer->loses_context = pdata->loses_context;
timer->get_context_loss_count = pdata->get_context_loss_count;
timer->capability = pdata->timer_capability;

/* Skip pm_runtime_enable for OMAP1 */
if (!pdata->needs_manual_reset) {
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-omap/include/plat/dmtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ struct dmtimer_platform_data {
bool loses_context;

int (*get_context_loss_count)(struct device *dev);
u32 timer_capability;
};

int omap_dm_timer_reserve_systimer(int id);
Expand Down Expand Up @@ -273,6 +274,7 @@ struct omap_dm_timer {
bool loses_context;
int ctx_loss_count;
int revision;
u32 capability;
struct platform_device *pdev;
struct list_head node;

Expand Down

0 comments on commit 177199c

Please sign in to comment.