/* Initialize the RTC. Enable pre-scaler to scale RTC clock to 1Hz and clear interrupt/status registers.  */
static void bfin_rtc_reset(struct device *dev, u16 rtc_ictl)
/* Initialize the RTC. Enable pre-scaler to scale RTC clock to 1Hz and clear interrupt/status registers.  */
static void bfin_rtc_reset(struct device *dev, u16 rtc_ictl)
{
	struct bfin_rtc *rtc = dev_get_drvdata(dev);
	dev_dbg_stamp(dev);
	bfin_rtc_sync_pending(dev);
	bfin_write_RTC_PREN(0x1);
	bfin_write_RTC_ICTL(rtc_ictl);
	bfin_write_RTC_ALARM(0);
	bfin_write_RTC_ISTAT(0xFFFF);
	rtc->rtc_wrote_regs = 0;
}