#endif
#endif
-/*******************************************************************************
- * variables
- ******************************************************************************/
-uint32_t ddrBackup;
-
/*******************************************************************************
* Initialize ddr
******************************************************************************/
} /* init_ddr */
/* rev.0.04 add function */
-uint32_t recovery_from_backup_mode(void)
+static uint32_t recovery_from_backup_mode(uint32_t ddrBackup)
{
/****************************************************************************
* recovery_Step0(DBSC Setting 1) / same "init_ddr"
uint32_t failcount;
uint32_t md = 0;
uint32_t ddr = 0;
+ uint32_t ddrBackup;
md = *((volatile uint32_t*)RST_MODEMR);
ddr = (md & 0x00080000) >> 19;
rcar_dram_get_boot_status(&ddrBackup);
if (ddrBackup == DRAM_BOOT_STATUS_WARM) {
- dataL = recovery_from_backup_mode(); /* WARM boot */
+ dataL = recovery_from_backup_mode(ddrBackup); /* WARM boot */
} else {
dataL = init_ddr(); /* COLD boot */
} /* ddrBackup */