mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-17 08:43:07 +00:00
64339bc1f2
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>
31 lines
664 B
Text
31 lines
664 B
Text
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (C) 2022 StarFive Technology Co., Ltd.
|
|
|
|
config STARFIVE_JH7110
|
|
bool
|
|
select ARCH_EARLY_INIT_R
|
|
select CLK_JH7110
|
|
select CPU
|
|
select CPU_RISCV
|
|
select RAM
|
|
select RESET_JH7110
|
|
select SUPPORT_SPL
|
|
select SPL_RAM if SPL
|
|
select SPL_STARFIVE_DDR
|
|
select SYS_CACHE_SHIFT_6
|
|
select SPL_ZERO_MEM_BEFORE_USE
|
|
select PINCTRL_STARFIVE_JH7110
|
|
imply MMC
|
|
imply MMC_BROKEN_CD
|
|
imply MMC_SPI
|
|
imply RISCV_TIMER if (RISCV_SMODE || SPL_RISCV_SMODE)
|
|
imply SIFIVE_CACHE
|
|
imply SIFIVE_CCACHE
|
|
imply SMP
|
|
imply SPI
|
|
imply SPL_CPU
|
|
imply SPL_LOAD_FIT
|
|
imply SPL_OPENSBI
|
|
imply SPL_RISCV_ACLINT
|
|
imply SPL_SYS_MALLOC_CLEAR_ON_INIT
|