Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
7558e85f
Unverified
Commit
7558e85f
authored
6 years ago
by
Soby Mathew
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1668 from ldts/rcar_gen3/e3_build
rcar_gen3: E3 target: fix compilation issues
parents
cb2a9b62
04d1f8dd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
drivers/renesas/rcar/watchdog/swdt.c
+2
-2
drivers/renesas/rcar/watchdog/swdt.c
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.c
+3
-3
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.c
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.h
+1
-1
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.h
plat/renesas/rcar/aarch64/plat_helpers.S
+10
-0
plat/renesas/rcar/aarch64/plat_helpers.S
plat/renesas/rcar/bl2_cpg_init.c
+2
-1
plat/renesas/rcar/bl2_cpg_init.c
with
18 additions
and
7 deletions
+18
-7
drivers/renesas/rcar/watchdog/swdt.c
View file @
7558e85f
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.c
View file @
7558e85f
...
...
@@ -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 */
...
...
This diff is collapsed.
Click to expand it.
drivers/staging/renesas/rcar/ddr/ddr_a/ddr_init_e3.h
View file @
7558e85f
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
plat/renesas/rcar/aarch64/plat_helpers.S
View file @
7558e85f
...
...
@@ -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
)
;
*
...
...
This diff is collapsed.
Click to expand it.
plat/renesas/rcar/bl2_cpg_init.c
View file @
7558e85f
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help