Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168672
b: refs/heads/master
c: 378ce74
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Russell King committed Nov 16, 2009
1 parent d0ecb66 commit 63b7ffc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 927585f650b51639f0262dad650eafeaf1611197
refs/heads/master: 378ce74bee4cb0183489bc0f850790a2264ca975
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-u300/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ static struct platform_device keypad_device = {
};

static struct platform_device rtc_device = {
.name = "rtc0",
.name = "rtc-coh901331",
.id = -1,
.num_resources = ARRAY_SIZE(rtc_resources),
.resource = rtc_resources,
Expand Down
11 changes: 11 additions & 0 deletions trunk/drivers/rtc/rtc-coh901331.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ static irqreturn_t coh901331_interrupt(int irq, void *data)
clk_enable(rtap->clk);
/* Ack IRQ */
writel(1, rtap->virtbase + COH901331_IRQ_EVENT);
/*
* Disable the interrupt. This is necessary because
* the RTC lives on a lower-clocked line and will
* not release the IRQ line until after a few (slower)
* clock cycles. The interrupt will be re-enabled when
* a new alarm is set anyway.
*/
writel(0, rtap->virtbase + COH901331_IRQ_MASK);
clk_disable(rtap->clk);

/* Set alarm flag */
rtc_update_irq(rtap->rtc, 1, RTC_AF);

Expand Down Expand Up @@ -128,6 +137,8 @@ static int coh901331_alarm_irq_enable(struct device *dev, unsigned int enabled)
else
writel(0, rtap->virtbase + COH901331_IRQ_MASK);
clk_disable(rtap->clk);

return 0;
}

static struct rtc_class_ops coh901331_ops = {
Expand Down

0 comments on commit 63b7ffc

Please sign in to comment.