]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: cpu: jh7110: Imply SPL_SYS_MALLOC_CLEAR_ON_INIT
authorShengyu Qu <wiagn233@outlook.com>
Thu, 24 Aug 2023 16:25:20 +0000 (00:25 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 5 Sep 2023 02:53:46 +0000 (10:53 +0800)
commitf4b118a5a0a6fd34103037967649be58561190aa
tree3c02771ec8c30b559261d900b070d42f6e8fefa2
parent4df778704b913b62286321c3b4889e5f62f1ba2c
riscv: cpu: jh7110: Imply SPL_SYS_MALLOC_CLEAR_ON_INIT

Starfive JH7110 needs to clear L2 LIM to zero before use or ECC error
would be triggered. Currently, we use DDR ram for SPL malloc arena on
Visionfive 2 board in defconfig, but it's also possible to use L2 LIM as
SPL malloc arena. To avoid triggering ECC error in this scenario, we
imply SPL_SYS_MALLOC_CLEAR_ON_INIT as default.

Signed-off-by: Bo Gan <ganboing@gmail.com>
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/cpu/jh7110/Kconfig