mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
Merge pull request #1668 from ldts/rcar_gen3/e3_build
rcar_gen3: E3 target: fix compilation issues
This commit is contained in:
commit
7558e85fdb
5 changed files with 18 additions and 7 deletions
|
@ -72,9 +72,9 @@ static void swdt_disable(void)
|
|||
|
||||
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);
|
||||
|
|
|
@ -1046,7 +1046,7 @@ uint32_t recovery_from_backup_mode(void)
|
|||
} 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;
|
||||
|
@ -1500,7 +1500,7 @@ if (pdqsr_ctl == 1){
|
|||
/*******************************************************************************
|
||||
* DDR Initialize entry for IPL
|
||||
******************************************************************************/
|
||||
int32_t InitDram(void)
|
||||
int32_t rcar_dram_init(void)
|
||||
{
|
||||
uint32_t dataL;
|
||||
uint32_t failcount;
|
||||
|
@ -1516,7 +1516,7 @@ int32_t InitDram(void)
|
|||
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 */
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#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)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
.globl plat_crash_console_init
|
||||
.globl plat_crash_console_putc
|
||||
.globl plat_crash_console_flush
|
||||
.globl plat_invalidate_icache
|
||||
.globl plat_report_exception
|
||||
.globl plat_secondary_reset
|
||||
|
@ -286,6 +287,15 @@ func plat_crash_console_putc
|
|||
ret
|
||||
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);
|
||||
*
|
||||
|
|
|
@ -42,7 +42,8 @@ static void bl2_secure_cpg_init(void)
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue