mips: add an option to support initialize SRAM for initial stack
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 21 Apr 2020 07:28:27 +0000 (09:28 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 27 Apr 2020 18:29:33 +0000 (20:29 +0200)
commit2434f58c784e3216b7925fe00ce49c113c6a511e
tree10775361e669e3fb4dbd4e3a503898e7eca7cc4d
parentaba6e77a30e4f190e70c400867b74962ef88ce0e
mips: add an option to support initialize SRAM for initial stack

Currently CONFIG_MIPS_INIT_STACK_IN_SRAM assumes the memory space for the
initial stack can be used directly. However on some platform the SRAM needs
initialization, e.g. lock cache.

This patch adds an option to allow a new function mips_sram_init() being
called before setup_stack_gd.

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/mips/Kconfig
arch/mips/cpu/start.S