]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/etin/debris/phantom.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / board / etin / debris / phantom.c
index 263da6b7c966c7b1d94501a482d66e7822700330..fcb4c40eaae9444b1c445f1bf10a4ae919dc694e 100644 (file)
@@ -20,7 +20,7 @@
 
 #if defined(CONFIG_CMD_DATE)
 
-#define RTC_BASE (CFG_NVRAM_BASE_ADDR + 0x7fff8)
+#define RTC_BASE (CONFIG_SYS_NVRAM_BASE_ADDR + 0x7fff8)
 
 #define RTC_YEAR                ( RTC_BASE + 7 )
 #define RTC_MONTH               ( RTC_BASE + 6 )
@@ -254,7 +254,7 @@ int rtc_get( struct rtc_time *tmp)
        return 0;
 }
 
-void rtc_set( struct rtc_time *tmp )
+int rtc_set( struct rtc_time *tmp )
 {
        if (phantom_flag < 0)
                phantom_flag = get_phantom_flag();
@@ -307,6 +307,8 @@ void rtc_set( struct rtc_time *tmp )
                /* unlock clock registers after read */
                rtc_write( RTC_CONTROLA, ( reg_a  & ~RTC_CA_WRITE ));
        }
+
+       return 0;
 }
 
 #endif