]> www.infradead.org Git - users/rw/ppcboot.git/commitdiff
Remove board dependend test code.
authorwdenk <wdenk>
Tue, 23 Oct 2001 20:57:30 +0000 (20:57 +0000)
committerwdenk <wdenk>
Tue, 23 Oct 2001 20:57:30 +0000 (20:57 +0000)
Patch by Erik Theisen, 23 Oct 2001

rtc/m48t35ax.c

index 9fd9041a26689f0c37b5038e4a6e6aece1d843b1..a487ccece74d5364f97f339fb0e1495e433cb394 100644 (file)
@@ -32,7 +32,6 @@
 #include <command.h>
 #include <rtc.h>
 #include <config.h>
-#include "error.h"
 
 #if defined(CONFIG_RTC_M48T35A) && (CONFIG_COMMANDS & CFG_CMD_DATE)
 
@@ -164,32 +163,4 @@ static unsigned char bin2bcd (unsigned int n)
        return (((n / 10) << 4) | (n % 10));
 }
 
-#if 0
-int rtctest(void){
-     struct rtc_time *tmp;
-     uchar tchar;
-
-     log_stat(ERR_RTCG);
-     *(unsigned char *)(CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 9) = 0xaa;
-     tchar = *(unsigned char *)(CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 9);
-     tchar = tchar ^ 0xaa;
-     if( tchar != 0xaa ) log_warn(ERR_RTCBAT);
-     rtc_get(tmp);
-     if((tmp->tm_sec  > 59) |
-       (tmp->tm_min  > 59) |
-        (tmp->tm_hour > 23) |
-        (tmp->tm_mday < 1 ) | (tmp->tm_mday > 31) |
-        (tmp->tm_mon  < 1 ) | (tmp->tm_mon  > 12) |
-        (tmp->tm_year > 99) |
-        (tmp->tm_wday < 1 ) | (tmp->tm_wday > 7 ) |
-        (tmp->tm_wday < 1 ) | (tmp->tm_wday > 7 ) )
-        {
-       log_warn(ERR_RTCVAL);
-       rtc_reset();
-        return 0;
-     }
-     return 1;
-}
-#endif
-
 #endif /* CONFIG_RTC_M48T35A && CFG_CMD_DATE */