FreeBSD/sys/arm/mv/armada38x/rtc.c
/*
 * According to the datasheet, the OS should wait 5us after every
 * register write to the RTC hard macro so that the required update
 * can occur without holding off the system bus
 */
According to the datasheet, the OS should wait 5us after every
register write to the RTC hard macro so that the required update
can occur without holding off the system bus
According to the datasheet the OS should wait 5us after every register write to the RTC hard macro so that the required update can occur without holding off the system bus
static int
mv_rtc_reg_write(struct mv_rtc_softc *sc, bus_size_t off, uint32_t val)
{
	bus_write_4(sc->res, off, val);
	DELAY(5);
	return (0);
}
static int mv_rtc_reg_write ( struct mv_rtc_softc * sc , bus_size_t off , uint32_t val ) { bus_write_4 ( sc -> res , off , val ) ; DELAY ( 5 ) ; return ( 0 ) ; }
According to the datasheet, the OS should wait 5us after every
 register write to the RTC hard macro so that the required update
 can occur without holding off the system bus
According to the datasheet the OS should wait 5us after every register write to the RTC hard macro so that the required update can occur without holding off the system bus