diff options
Diffstat (limited to 'firmware/drivers/rtc/rtc_as3514.c')
-rw-r--r-- | firmware/drivers/rtc/rtc_as3514.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/drivers/rtc/rtc_as3514.c b/firmware/drivers/rtc/rtc_as3514.c index a4d2eb13f7..3ece1de67e 100644 --- a/firmware/drivers/rtc/rtc_as3514.c +++ b/firmware/drivers/rtc/rtc_as3514.c | |||
@@ -27,11 +27,15 @@ | |||
27 | 27 | ||
28 | /* AMS Sansas start counting from Jan 1st 1970 instead of 1980 (not as3525v2) */ | 28 | /* AMS Sansas start counting from Jan 1st 1970 instead of 1980 (not as3525v2) */ |
29 | #if (CONFIG_CPU==AS3525) | 29 | #if (CONFIG_CPU==AS3525) |
30 | #define SECS_ADJUST 0 | 30 | #define SECS_ADJUST 0 /* 1970-1-1 00:00:00 */ |
31 | #elif (CONFIG_CPU==AS3525v2) | 31 | #elif (CONFIG_CPU==AS3525v2) |
32 | #if defined(SANSA_CLIPZIP) | ||
33 | #define SECS_ADJUST 0 /* 1970-1-1 00:00:00 */ | ||
34 | #else | ||
32 | #define SECS_ADJUST ((2*365*24*3600) + 26*(24*3600) - 7*3600 - 25*60) | 35 | #define SECS_ADJUST ((2*365*24*3600) + 26*(24*3600) - 7*3600 - 25*60) |
36 | #endif | ||
33 | #else | 37 | #else |
34 | #define SECS_ADJUST 315532800 /* 1980/1/1 */ | 38 | #define SECS_ADJUST 315532800 /* 1980-1-1 00:00:00 */ |
35 | #endif | 39 | #endif |
36 | 40 | ||
37 | #ifdef HAVE_RTC_ALARM /* as3543 */ | 41 | #ifdef HAVE_RTC_ALARM /* as3543 */ |