Skip to content
Snippets Groups Projects
Commit b8d9461a authored by Tony Liu's avatar Tony Liu Committed by Amit Kucheria
Browse files

YOCTO: arm_versatile_926ejs: kick off PrimeCell RTC PL031


For RTC PL031, need to explicitly set bit "RTC start" of Control
register(RTCCR) to enable it's counting.

Signed-off-by: default avatarTony Liu <Bo.Liu@windriver.com>
Signed-off-by: default avatarAmit Kucheria <amit.kucheria.ext@huawei.com>
parent 452ea6a1
No related branches found
No related tags found
No related merge requests found
......@@ -379,8 +379,12 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)
vendor->irqflags, "rtc-pl031", ldata);
if (ret)
goto out;
/*Set bit "RTC start" in register RTCCR to enable RTC */
writel(0x1, ldata->base + RTC_CR);
dev_pm_set_wake_irq(&adev->dev, adev->irq[0]);
}
return 0;
out:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment