Target builds but has not been tested.
Signed-off-by: ldts <jorge.ramirez.ortiz@gmail.com>
void rcar_swdt_init(void)
{
- uint32_t rmsk, val, sr;
+ uint32_t rmsk, sr;
#if (RCAR_LSI != RCAR_E3)
- uint32_t reg, product_cut, chk_data;
+ uint32_t reg, val, product_cut, chk_data;
reg = mmio_read_32(RCAR_PRR);
product_cut = reg & (RCAR_PRODUCT_MASK | RCAR_CUT_MASK);
} else {
NOTICE("[COLD_BOOT]");
} /* ddrBackup */
- err=dram_update_boot_status(ddrBackup);
+ err=rcar_dram_update_boot_status(ddrBackup);
if(err){
NOTICE("[BOOT_STATUS_UPDATE_ERROR]");
return INITDRAM_ERR_I;
/*******************************************************************************
* DDR Initialize entry for IPL
******************************************************************************/
-int32_t InitDram(void)
+int32_t rcar_dram_init(void)
{
uint32_t dataL;
uint32_t failcount;
NOTICE("BL2: DDR1856(%s)", RCAR_E3_DDR_VERSION);
} /* ddr */
- dram_get_boot_status(&ddrBackup);
+ rcar_dram_get_boot_status(&ddrBackup);
if(ddrBackup==DRAM_BOOT_STATUS_WARM){
dataL=recovery_from_backup_mode(); /* WARM boot */
#endif
#endif
-extern int32_t InitDram(void);
+extern int32_t rcar_dram_init(void);
#define INITDRAM_OK (0)
#define INITDRAM_NG (0xffffffff)
#define INITDRAM_ERR_I (0xffffffff)
uint32_t stop_cr2, reset_cr2;
#if (RCAR_LSI == RCAR_E3)
- reset_cr2 = 0x10000000U stop_cr2 = 0xEFFFFFFFU;
+ reset_cr2 = 0x10000000U;
+ stop_cr2 = 0xEFFFFFFFU;
#else
reset_cr2 = 0x14000000U;
stop_cr2 = 0xEBFFFFFFU;