freebsd-dev/sys/boot/arm/at91/libat91
Warner Losh bc5676e30c RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for
GetSeconds().  Instead, use CRTR register shifted right 15.  This
gives us a range of 32 seconds we can do for timeout.

Shift to using == rather than < or > for calculating the timeout,
since if we can't read the ST_CTRT register twice in a second we have
even bigger problems to worry about, and == deals with the 'wrap'
issue.

This lets me type at the boot2 prompt again!  Woo Hoo!

Bogusness noticed by: tisco
Pointy Hat to: That silly imp guy
2007-03-28 22:40:37 +00:00
..
arm_init.S MFp4: bwct boot rom is different. need a more generic way to cope long term. 2006-12-20 18:16:49 +00:00
at91rm9200_lowlevel.c RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for 2007-03-28 22:40:37 +00:00
at91rm9200_lowlevel.h RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for 2007-03-28 22:40:37 +00:00
at91rm9200.h MFp4: 2006-10-20 09:12:05 +00:00
delay.c MFp4: First cut at making spi and/or sd card booting work, needs work 2006-08-16 23:39:58 +00:00
eeprom.c MFp4: Add timeout to eeprom access for lame eeprom that go awol 2006-12-20 18:19:52 +00:00
emac_init.c MFp4: differences for bwct ethernet attachment 2006-12-20 18:26:37 +00:00
emac.c RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for 2007-03-28 22:40:37 +00:00
emac.h MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
getc.c RTC_TIMR's RTC_SEC field is BCD. That makes it unsuitable for 2007-03-28 22:40:37 +00:00
lib_AT91RM9200.h MFp4: 2006-10-20 09:12:05 +00:00
lib.h MFp4: Add timeout to eeprom access for lame eeprom that go awol 2006-12-20 18:19:52 +00:00
Makefile Remove vestiges of very specific fpga support for my company's board. 2007-03-15 03:31:49 +00:00
mci_device.h MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
memcmp.c Fix problem where memcmp would return true in the case where the 2007-03-28 21:15:50 +00:00
memcpy.c MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
memset.c MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
p_string.c MFp4: 2006-10-20 09:12:05 +00:00
printf.c MFp4: 2006-10-20 09:12:05 +00:00
putchar.c MFp4: 2006-10-20 09:12:05 +00:00
reset.c MFp4: First cut at making spi and/or sd card booting work, needs work 2006-08-16 23:39:58 +00:00
sd-card.c All SD cards have a block size of 512. The READ_BL_LEN field in the 2007-03-28 22:31:32 +00:00
sd-card.h MFp4: First cut at making spi and/or sd card booting work, needs work 2006-08-16 23:39:58 +00:00
spi_flash.c Since we're about to set ST_RTMR to 1 to increase the accuracy of the 2007-03-28 22:38:01 +00:00
spi_flash.h MFp4: Differences in flash part for bwct. need a more generic way to cope. 2006-12-20 18:25:16 +00:00
strcmp.c MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
strcpy.c MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
strcvt.c MFp4: boot on KB9202 correctly. Also, reduce the size of the SD/MMC driver 2006-11-09 20:32:36 +00:00
strlen.c Fix off by one error in length of the string. 2007-03-28 21:12:43 +00:00
tag_list.c MFp4: 2006-04-21 07:19:22 +00:00
tag_list.h
xmodem.c MFp4: Increase character timeout to 10. Make it a #define for easier 2006-08-10 17:54:51 +00:00