Skip to content
Snippets Groups Projects
Commit 44174343 authored by Stefan Roese's avatar Stefan Roese Committed by Shinya Kuribayashi
Browse files

MIPS: Add CONFIG_SKIP_LOWLEVEL_INIT


This patch adds the CONFIG_SKIP_LOWLEVEL_INIT option to start.S. This
enables support for boards where the lowlevel initialization is
already done when U-Boot runs (e.g. via OnChip ROM).

This will be used in the upcoming VCTH board support.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
parent db08ecaa
No related branches found
No related tags found
No related merge requests found
...@@ -243,9 +243,11 @@ reset: ...@@ -243,9 +243,11 @@ reset:
mtc0 zero, CP0_COUNT mtc0 zero, CP0_COUNT
mtc0 zero, CP0_COMPARE mtc0 zero, CP0_COMPARE
#if !defined(CONFIG_SKIP_LOWLEVEL_INIT)
/* CONFIG0 register */ /* CONFIG0 register */
li t0, CONF_CM_UNCACHED li t0, CONF_CM_UNCACHED
mtc0 t0, CP0_CONFIG mtc0 t0, CP0_CONFIG
#endif /* !CONFIG_SKIP_LOWLEVEL_INIT */
/* Initialize $gp. /* Initialize $gp.
*/ */
...@@ -255,6 +257,7 @@ reset: ...@@ -255,6 +257,7 @@ reset:
1: 1:
lw gp, 0(ra) lw gp, 0(ra)
#if !defined(CONFIG_SKIP_LOWLEVEL_INIT)
/* Initialize any external memory. /* Initialize any external memory.
*/ */
la t9, lowlevel_init la t9, lowlevel_init
...@@ -271,6 +274,7 @@ reset: ...@@ -271,6 +274,7 @@ reset:
*/ */
li t0, CONF_CM_CACHABLE_NONCOHERENT li t0, CONF_CM_CACHABLE_NONCOHERENT
mtc0 t0, CP0_CONFIG mtc0 t0, CP0_CONFIG
#endif /* !CONFIG_SKIP_LOWLEVEL_INIT */
/* Set up temporary stack. /* Set up temporary stack.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment