Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178824
b: refs/heads/master
c: 75c99bb
h: refs/heads/master
v: v3
  • Loading branch information
Sekhar Nori authored and Kevin Hilman committed Jan 6, 2010
1 parent 3d0babf commit 56e0c80
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 2d3f595016f982294c1669ee87aa91179d88502b
refs/heads/master: 75c99bb0006ee065b4e2995078d779418b0fab54
9 changes: 8 additions & 1 deletion trunk/arch/arm/mach-davinci/devices-da8xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,18 @@ static struct platform_device da8xx_rtc_device = {

int da8xx_register_rtc(void)
{
int ret;

/* Unlock the rtc's registers */
__raw_writel(0x83e70b13, IO_ADDRESS(DA8XX_RTC_BASE + 0x6c));
__raw_writel(0x95a4f1e0, IO_ADDRESS(DA8XX_RTC_BASE + 0x70));

return platform_device_register(&da8xx_rtc_device);
ret = platform_device_register(&da8xx_rtc_device);
if (!ret)
/* Atleast on DA850, RTC is a wakeup source */
device_init_wakeup(&da8xx_rtc_device.dev, true);

return ret;
}

static struct resource da8xx_cpuidle_resources[] = {
Expand Down

0 comments on commit 56e0c80

Please sign in to comment.