diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-16 23:27:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-11-16 23:27:33 +0000 |
commit | 53b922f93bf13b0e7af8cbbdf56d2d5fbf2d014e (patch) | |
tree | d70b555f85b581dbad9518587ee3ad81a6f7b3bb /sys/arch/landisk | |
parent | c3fa7a26fc7d43d59553cc5f715b49c77b52a5f2 (diff) |
use teeny little delays as we clock the rtc, makes the boot code notice
that time is ticking, so it can timeout properly
Diffstat (limited to 'sys/arch/landisk')
-rw-r--r-- | sys/arch/landisk/stand/boot/getsecs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arch/landisk/stand/boot/getsecs.c b/sys/arch/landisk/stand/boot/getsecs.c index b7270963823..27661b1c1f9 100644 --- a/sys/arch/landisk/stand/boot/getsecs.c +++ b/sys/arch/landisk/stand/boot/getsecs.c @@ -32,6 +32,7 @@ rtc_init(void) SHREG_SCSPTR = SCSPTR_SPB1IO | SCSPTR_SPB1DT | SCSPTR_SPB0IO | SCSPTR_SPB0DT; + delay(1); } /* control RTC chip enable */ @@ -44,6 +45,7 @@ rtc_ce(int onoff) } else { _reg_write_1(0xb0000003, (0 << 1)); } + delay(1); } static inline void @@ -55,6 +57,7 @@ rtc_clk(int onoff) } else { SHREG_SCSPTR &= ~SCSPTR_SPB0DT; } + delay(1); } static void @@ -66,6 +69,7 @@ rtc_dir(int output) } else { SHREG_SCSPTR &= ~SCSPTR_SPB1IO; } + delay(1); } /* data-out */ @@ -78,6 +82,7 @@ rtc_do(int onoff) } else { SHREG_SCSPTR &= ~SCSPTR_SPB1DT; } + delay(1); rtc_clk(0); rtc_clk(1); |