Dear all,
i am facing a strange issue on am1808 based board, very similar to da850-evm:
omap-rtc is not more shown as running.
Strangely, if i add this lines, as them was there in kernel 3.5.1, it starts to run:
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index 7d91728..cf60c07 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -848,6 +848,19 @@ static struct platform_device da8xx_rtc_device = { int da8xx_register_rtc(void) { + int ret; + void __iomem *base; + + base = ioremap(DA8XX_RTC_BASE, SZ_4K); + if (WARN_ON(!base)) + return -ENOMEM; + + /* Unlock the rtc's registers */ + __raw_writel(0x83e70b13, base + 0x6c); + __raw_writel(0x95a4f1e0, base + 0x70); + + iounmap(base); + return platform_device_register(&da8xx_rtc_device); }
Could someone confirm this is a good fix ? Or what i am missing ? Thanks
angelo