as3514 rtc: sansa clip zip uses 1970/1/1 base date instead of special AS3525v2 date
Change-Id: I32329c82da93c705a5cb4af8a1a8b4e85a9c9b37
This commit is contained in:
parent
4269934588
commit
a92a0fecca
1 changed files with 7 additions and 3 deletions
|
@ -27,11 +27,15 @@
|
|||
|
||||
/* AMS Sansas start counting from Jan 1st 1970 instead of 1980 (not as3525v2) */
|
||||
#if (CONFIG_CPU==AS3525)
|
||||
#define SECS_ADJUST 0
|
||||
#define SECS_ADJUST 0 /* 1970-1-1 00:00:00 */
|
||||
#elif (CONFIG_CPU==AS3525v2)
|
||||
#define SECS_ADJUST ((2*365*24*3600) + 26*(24*3600) - 7*3600 - 25*60)
|
||||
#if defined(SANSA_CLIPZIP)
|
||||
#define SECS_ADJUST 0 /* 1970-1-1 00:00:00 */
|
||||
#else
|
||||
#define SECS_ADJUST 315532800 /* 1980/1/1 */
|
||||
#define SECS_ADJUST ((2*365*24*3600) + 26*(24*3600) - 7*3600 - 25*60)
|
||||
#endif
|
||||
#else
|
||||
#define SECS_ADJUST 315532800 /* 1980-1-1 00:00:00 */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RTC_ALARM /* as3543 */
|
||||
|
|
Loading…
Reference in a new issue