Unverified Commit 7558e85f authored by Soby Mathew's avatar Soby Mathew Committed by GitHub
Browse files

Merge pull request #1668 from ldts/rcar_gen3/e3_build

rcar_gen3: E3 target: fix compilation issues
parents cb2a9b62 04d1f8dd
...@@ -72,9 +72,9 @@ static void swdt_disable(void) ...@@ -72,9 +72,9 @@ static void swdt_disable(void)
void rcar_swdt_init(void) void rcar_swdt_init(void)
{ {
uint32_t rmsk, val, sr; uint32_t rmsk, sr;
#if (RCAR_LSI != RCAR_E3) #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); reg = mmio_read_32(RCAR_PRR);
product_cut = reg & (RCAR_PRODUCT_MASK | RCAR_CUT_MASK); product_cut = reg & (RCAR_PRODUCT_MASK | RCAR_CUT_MASK);
......
...@@ -1046,7 +1046,7 @@ uint32_t recovery_from_backup_mode(void) ...@@ -1046,7 +1046,7 @@ uint32_t recovery_from_backup_mode(void)
} else { } else {
NOTICE("[COLD_BOOT]"); NOTICE("[COLD_BOOT]");
} /* ddrBackup */ } /* ddrBackup */
err=dram_update_boot_status(ddrBackup); err=rcar_dram_update_boot_status(ddrBackup);
if(err){ if(err){
NOTICE("[BOOT_STATUS_UPDATE_ERROR]"); NOTICE("[BOOT_STATUS_UPDATE_ERROR]");
return INITDRAM_ERR_I; return INITDRAM_ERR_I;
...@@ -1500,7 +1500,7 @@ if (pdqsr_ctl == 1){ ...@@ -1500,7 +1500,7 @@ if (pdqsr_ctl == 1){
/******************************************************************************* /*******************************************************************************
* DDR Initialize entry for IPL * DDR Initialize entry for IPL
******************************************************************************/ ******************************************************************************/
int32_t InitDram(void) int32_t rcar_dram_init(void)
{ {
uint32_t dataL; uint32_t dataL;
uint32_t failcount; uint32_t failcount;
...@@ -1516,7 +1516,7 @@ int32_t InitDram(void) ...@@ -1516,7 +1516,7 @@ int32_t InitDram(void)
NOTICE("BL2: DDR1856(%s)", RCAR_E3_DDR_VERSION); NOTICE("BL2: DDR1856(%s)", RCAR_E3_DDR_VERSION);
} /* ddr */ } /* ddr */
dram_get_boot_status(&ddrBackup); rcar_dram_get_boot_status(&ddrBackup);
if(ddrBackup==DRAM_BOOT_STATUS_WARM){ if(ddrBackup==DRAM_BOOT_STATUS_WARM){
dataL=recovery_from_backup_mode(); /* WARM boot */ dataL=recovery_from_backup_mode(); /* WARM boot */
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#endif #endif
#endif #endif
extern int32_t InitDram(void); extern int32_t rcar_dram_init(void);
#define INITDRAM_OK (0) #define INITDRAM_OK (0)
#define INITDRAM_NG (0xffffffff) #define INITDRAM_NG (0xffffffff)
#define INITDRAM_ERR_I (0xffffffff) #define INITDRAM_ERR_I (0xffffffff)
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
.globl plat_crash_console_init .globl plat_crash_console_init
.globl plat_crash_console_putc .globl plat_crash_console_putc
.globl plat_crash_console_flush
.globl plat_invalidate_icache .globl plat_invalidate_icache
.globl plat_report_exception .globl plat_report_exception
.globl plat_secondary_reset .globl plat_secondary_reset
...@@ -286,6 +287,15 @@ func plat_crash_console_putc ...@@ -286,6 +287,15 @@ func plat_crash_console_putc
ret ret
endfunc plat_crash_console_putc endfunc plat_crash_console_putc
/* ---------------------------------------------
* int plat_crash_console_flush()
*
* ---------------------------------------------
*/
func plat_crash_console_flush
b console_flush
endfunc plat_crash_console_flush
/* -------------------------------------------------------------------- /* --------------------------------------------------------------------
* void plat_reset_handler(void); * void plat_reset_handler(void);
* *
......
...@@ -42,7 +42,8 @@ static void bl2_secure_cpg_init(void) ...@@ -42,7 +42,8 @@ static void bl2_secure_cpg_init(void)
uint32_t stop_cr2, reset_cr2; uint32_t stop_cr2, reset_cr2;
#if (RCAR_LSI == RCAR_E3) #if (RCAR_LSI == RCAR_E3)
reset_cr2 = 0x10000000U stop_cr2 = 0xEFFFFFFFU; reset_cr2 = 0x10000000U;
stop_cr2 = 0xEFFFFFFFU;
#else #else
reset_cr2 = 0x14000000U; reset_cr2 = 0x14000000U;
stop_cr2 = 0xEBFFFFFFU; stop_cr2 = 0xEBFFFFFFU;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment