[U-Boot] [PATCH][v1] RTC driver for PT7C4338 chip.

Wolfgang Denk wd at denx.de
Wed Oct 20 22:07:33 CEST 2010


Dear Priyanka Jain,

In message <1287568387-1823-1-git-send-email-Priyanka.Jain at freescale.com> you wrote:
>
> +	if (ctl_stat & RTC_CTL_STAT_BIT_OSF) {
> +		printf("### Warning: RTC oscillator has stopped\n");
> +		/* clear the OSF flag */
> +		rtc_write(RTC_CTL_STAT_REG_ADDR,
> +			rtc_read(RTC_CTL_STAT_REG_ADDR)\
> +			& ~RTC_CTL_STAT_BIT_OSF);
> +		ret = -1;
> +	}
> +
> +	if (sec & RTC_SEC_BIT_CH) {
> +		printf("### Warning: RTC oscillator has stopped\n");
> +		/* clear the CH flag */
> +		rtc_write(RTC_SEC_REG_ADDR,
> +			rtc_read(RTC_SEC_REG_ADDR) & ~RTC_SEC_BIT_CH);
> +		ret = -1;
> +	}

My questions to v0 still apply...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Being schizophrenic is better than living alone.


More information about the U-Boot mailing list