9
0
Fork 0

ArchosG9: solve regression in second stage lowlevel init

On ArchosG9 the second stage low-level init was the fallback default.
 Now that the low-level init is forcibly enabled it has to be skipped
 when already executed from first stage.

Signed-off-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Vicente Bergas 2013-02-12 00:04:58 +01:00 committed by Sascha Hauer
parent 6e9eb68de5
commit c0ba0a64ae
1 changed files with 5 additions and 2 deletions

View File

@ -63,15 +63,18 @@ static noinline void archosg9_init_lowlevel(void)
omap4_configure_usb_dpll(&usb);
omap4_ddr_init(&ddr_regs_400_mhz_2cs, &core);
barebox_arm_entry(0x80000000, SZ_1G, 0);
}
void __naked __bare_init barebox_arm_reset_vector(void)
{
arm_cpu_lowlevel_init();
if (get_pc() > 0x80000000)
goto out;
arm_setup_stack(0x4030d000);
archosg9_init_lowlevel();
out:
barebox_arm_entry(0x80000000, SZ_1G, 0);
}