mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
Merge branch 'omap-for-v3.8/cleanup-headers-prepare-multiplatform-v3' into omap-for-v3.8/dt
Conflicts: arch/arm/plat-omap/dmtimer.c Resolved as suggested by Jon Hunter.
This commit is contained in:
commit
f56f52e02a
328 changed files with 6118 additions and 5467 deletions
|
@ -44,9 +44,6 @@
|
|||
#include <linux/of_device.h>
|
||||
|
||||
#include <plat/dmtimer.h>
|
||||
#include <plat/omap-pm.h>
|
||||
|
||||
#include <mach/hardware.h>
|
||||
|
||||
static u32 omap_reserved_systimers;
|
||||
static LIST_HEAD(omap_timer_list);
|
||||
|
@ -332,7 +329,7 @@ int omap_dm_timer_get_irq(struct omap_dm_timer *timer)
|
|||
EXPORT_SYMBOL_GPL(omap_dm_timer_get_irq);
|
||||
|
||||
#if defined(CONFIG_ARCH_OMAP1)
|
||||
|
||||
#include <mach/hardware.h>
|
||||
/**
|
||||
* omap_dm_timer_modify_idlect_mask - Check if any running timers use ARMXOR
|
||||
* @inputmask: current value of idlect mask
|
||||
|
@ -409,7 +406,8 @@ int omap_dm_timer_start(struct omap_dm_timer *timer)
|
|||
omap_dm_timer_enable(timer);
|
||||
|
||||
if (!(timer->capability & OMAP_TIMER_ALWON)) {
|
||||
if (omap_pm_get_dev_context_loss_count(&timer->pdev->dev) !=
|
||||
if (timer->get_context_loss_count &&
|
||||
timer->get_context_loss_count(&timer->pdev->dev) !=
|
||||
timer->ctx_loss_count)
|
||||
omap_timer_restore_context(timer);
|
||||
}
|
||||
|
@ -438,9 +436,11 @@ int omap_dm_timer_stop(struct omap_dm_timer *timer)
|
|||
|
||||
__omap_dm_timer_stop(timer, timer->posted, rate);
|
||||
|
||||
if (!(timer->capability & OMAP_TIMER_ALWON))
|
||||
timer->ctx_loss_count =
|
||||
omap_pm_get_dev_context_loss_count(&timer->pdev->dev);
|
||||
if (!(timer->capability & OMAP_TIMER_ALWON)) {
|
||||
if (timer->get_context_loss_count)
|
||||
timer->ctx_loss_count =
|
||||
timer->get_context_loss_count(&timer->pdev->dev);
|
||||
}
|
||||
|
||||
/*
|
||||
* Since the register values are computed and written within
|
||||
|
@ -556,7 +556,8 @@ int omap_dm_timer_set_load_start(struct omap_dm_timer *timer, int autoreload,
|
|||
omap_dm_timer_enable(timer);
|
||||
|
||||
if (!(timer->capability & OMAP_TIMER_ALWON)) {
|
||||
if (omap_pm_get_dev_context_loss_count(&timer->pdev->dev) !=
|
||||
if (timer->get_context_loss_count &&
|
||||
timer->get_context_loss_count(&timer->pdev->dev) !=
|
||||
timer->ctx_loss_count)
|
||||
omap_timer_restore_context(timer);
|
||||
}
|
||||
|
@ -798,6 +799,7 @@ static int __devinit omap_dm_timer_probe(struct platform_device *pdev)
|
|||
timer->id = pdev->id;
|
||||
timer->capability = pdata->timer_capability;
|
||||
timer->reserved = omap_dm_timer_reserved_systimer(timer->id);
|
||||
timer->get_context_loss_count = pdata->get_context_loss_count;
|
||||
}
|
||||
|
||||
timer->irq = irq->start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue