Re: [U-Boot] [PATCH] MIPS: Add CONFIG_SKIP_LOWLEVEL_INIT and flush dcache upon relocation

2008-11-17 Thread Stefan Roese
On Sunday 16 November 2008, Shinya Kuribayashi wrote: diff --git a/cpu/mips/start.S b/cpu/mips/start.S index 6a22302..5b71b00 100644 --- a/cpu/mips/start.S +++ b/cpu/mips/start.S @@ -243,9 +243,11 @@ reset: mtc0zero, CP0_COUNT mtc0zero, CP0_COMPARE +#if

Re: [U-Boot] [PATCH] MIPS: Add CONFIG_SKIP_LOWLEVEL_INIT and flush dcache upon relocation

2008-11-17 Thread Shinya Kuribayashi
Stefan Roese wrote: @@ -243,9 +243,11 @@ reset: mtc0zero, CP0_COUNT mtc0zero, CP0_COMPARE +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) /* CONFIG0 register */ li t0, CONF_CM_UNCACHED mtc0t0, CP0_CONFIG +#endif /* !CONFIG_SKIP_LOWLEVEL_INIT */ /*

[U-Boot] [PATCH] MIPS: Add CONFIG_SKIP_LOWLEVEL_INIT and flush dcache upon relocation

2008-11-12 Thread Stefan Roese
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). Also the data cache will be flushed upon relocation. This is missing in the current implementation. All this