mips: octeon: use mips_mach_early_init() to copy to L2 cache
authorStefan Roese <sr@denx.de>
Tue, 30 Jun 2020 10:33:17 +0000 (12:33 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sat, 18 Jul 2020 13:47:50 +0000 (15:47 +0200)
commite9609dc38ba225ddb58fcef41a0beb8a3b09a888
treee0a7ed6db3dc04ec4dbef4111191fb64ae064c5d
parentff7e4f030bf3b128288ea4482941cfae1dd8abfb
mips: octeon: use mips_mach_early_init() to copy to L2 cache

This patch adds the code to copy itself from bootrom location to a
different location (TEXT_BASE) to the Octeon platform. Its used in
this case to copy the complete U-Boot image into L2 cache, which
greatly improves the bootup time - especially in regard to the
very long and complex DDR4 init code.

The Kconfig symbol CONFIG_MIPS_MACH_EARLY_INIT is enabled with this
patch for Octeon.

Signed-off-by: Stefan Roese <sr@denx.de>
arch/mips/Kconfig
arch/mips/mach-octeon/lowlevel_init.S