|
|
@@ -64,6 +64,7 @@ retry:
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable)
|
|
|
{
|
|
|
if (tmo < RTC_WDT_NOCHANGE) {
|
|
|
@@ -77,6 +78,7 @@ void RTC_SetWatchdog(eRTCWdtTmo tmo, int enable)
|
|
|
else
|
|
|
RTC_SendCmd(RTC_WDTEn, 0);
|
|
|
}
|
|
|
+*/
|
|
|
|
|
|
__attribute__( ( section( "realocate_functions" ) ) )
|
|
|
static void RTC_SendCmdRelocate(eRTCCmd cmd, int enable)
|
|
|
@@ -105,8 +107,6 @@ void RTC_PowerDown(int fastboot)
|
|
|
{
|
|
|
u32 val = RTC->PARA;
|
|
|
|
|
|
- RTC_SetWatchdog(RTC_WDT_2S, 1);
|
|
|
-
|
|
|
val &= ~(0xffff << 16);
|
|
|
if (fastboot) {
|
|
|
RTC_WriteReg(RTC_PARA, &RTC->PARA, val | 0x5a << 24 | 0xa5 << 16);
|