rcar_gen3: drivers: ddr: Clean up printouts
Clean up the NOTICE() and FATAL_MSG() outputs, so that they contain proper newlines and BL2 prefixes. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
This commit is contained in:
parent
458a449cfd
commit
c87c8f85b1
|
@ -1137,13 +1137,13 @@ uint32_t recovery_from_backup_mode(void)
|
|||
|
||||
/* ddr backupmode end */
|
||||
if (ddrBackup) {
|
||||
NOTICE("[WARM_BOOT]");
|
||||
NOTICE("BL2: [WARM_BOOT]\n");
|
||||
} else {
|
||||
NOTICE("[COLD_BOOT]");
|
||||
NOTICE("BL2: [COLD_BOOT]\n");
|
||||
} /* ddrBackup */
|
||||
err = rcar_dram_update_boot_status(ddrBackup);
|
||||
if (err) {
|
||||
NOTICE("[BOOT_STATUS_UPDATE_ERROR]");
|
||||
NOTICE("BL2: [BOOT_STATUS_UPDATE_ERROR]\n");
|
||||
return INITDRAM_ERR_I;
|
||||
} /* err */
|
||||
|
||||
|
@ -1672,9 +1672,9 @@ int32_t rcar_dram_init(void)
|
|||
md = *((volatile uint32_t*)RST_MODEMR);
|
||||
ddr = (md & 0x00080000) >> 19;
|
||||
if (ddr == 0x0) {
|
||||
NOTICE("BL2: DDR1584(%s)", RCAR_E3_DDR_VERSION);
|
||||
NOTICE("BL2: DDR1584(%s)\n", RCAR_E3_DDR_VERSION);
|
||||
} else if(ddr == 0x1){
|
||||
NOTICE("BL2: DDR1856(%s)", RCAR_E3_DDR_VERSION);
|
||||
NOTICE("BL2: DDR1856(%s)\n", RCAR_E3_DDR_VERSION);
|
||||
} /* ddr */
|
||||
|
||||
rcar_dram_get_boot_status(&ddrBackup);
|
||||
|
@ -1691,8 +1691,6 @@ int32_t rcar_dram_init(void)
|
|||
failcount = 1;
|
||||
} /* dataL */
|
||||
|
||||
NOTICE("..%d\n", failcount); /* rev.0.05 */
|
||||
|
||||
if (failcount == 0) {
|
||||
return INITDRAM_OK;
|
||||
} else {
|
||||
|
|
|
@ -2826,7 +2826,7 @@ static uint32_t pll3_freq(uint32_t on)
|
|||
set_freqchgack(0);
|
||||
|
||||
if (timeout) {
|
||||
FATAL_MSG("Time out[2]");
|
||||
FATAL_MSG("BL2: Time out[2]\n");
|
||||
return (1);
|
||||
}
|
||||
return (0);
|
||||
|
@ -3012,13 +3012,13 @@ static uint32_t init_ddr(void)
|
|||
***********************************************************************/
|
||||
#ifdef DDR_BACKUPMODE
|
||||
if (ddrBackup) {
|
||||
NOTICE("[WARM_BOOT]");
|
||||
NOTICE("BL2: [WARM_BOOT]\n");
|
||||
} else {
|
||||
NOTICE("[COLD_BOOT]");
|
||||
NOTICE("BL2: [COLD_BOOT]\n");
|
||||
}
|
||||
err = rcar_dram_update_boot_status(ddrBackup);
|
||||
if (err) {
|
||||
NOTICE("[BOOT_STATUS_UPDATE_ERROR]");
|
||||
NOTICE("BL2: [BOOT_STATUS_UPDATE_ERROR]\n");
|
||||
return INITDRAM_ERR_I;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue