[PATCH 2/4] arm: mvebu: clearfog: Align defconfigs
Martin Rowe
martin.p.rowe at gmail.com
Mon Mar 6 06:47:39 CET 2023
On Sun, 5 Mar 2023 at 12:27, Pali Rohár <pali at kernel.org> wrote:
> On Sunday 05 March 2023 21:30:58 Martin Rowe wrote:
> > Ensure that functionality of generated configs is identical between SATA
> > and MMC defconfigs for Clearfog boards. The only expected difference is
> > the boot mode and environment location.
> >
> > Signed-off-by: Martin Rowe <martin.p.rowe at gmail.com>
> > ---
> > configs/clearfog_defconfig | 1 +
> > configs/clearfog_sata_defconfig | 11 +++++++----
> > 2 files changed, 8 insertions(+), 4 deletions(-)
> >
> > diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig
> > index 24e7c16ac7..f9cfa94e77 100644
> > --- a/configs/clearfog_defconfig
> > +++ b/configs/clearfog_defconfig
> > @@ -46,6 +46,7 @@ CONFIG_CMD_USB=y
> > CONFIG_CMD_TFTPPUT=y
> > CONFIG_CMD_CACHE=y
> > CONFIG_CMD_TIME=y
> > +CONFIG_MVEBU_SATA_BOOT=y
>
> MVEBU_*_BOOT is the default target for the bubt command. I guess that
> you do not want to set default one to SATA for eMMC/SD boot.
>
Correct, I'll remove it.
Anyway, when you are doing cleanup of clearfog defconfig files, what
> about renaming clearfog_defconfig to clearfog_mmc_defconfig?
>
I considered this but left it as is since we have several years worth of
support with that original name. It will make bisects easier if we keep it
the same, but I don't feel strongly either way. Happy to rename it if you'd
prefer.
> > CONFIG_ENV_OVERWRITE=y
> > CONFIG_ENV_MIN_ENTRIES=128
> > CONFIG_ARP_TIMEOUT=200
> > diff --git a/configs/clearfog_sata_defconfig
> b/configs/clearfog_sata_defconfig
> > index e9b36150ea..b11d8746b0 100644
> > --- a/configs/clearfog_sata_defconfig
> > +++ b/configs/clearfog_sata_defconfig
> > @@ -3,14 +3,19 @@ CONFIG_ARCH_CPU_INIT=y
> > CONFIG_SYS_THUMB_BUILD=y
> > CONFIG_ARCH_MVEBU=y
> > CONFIG_TEXT_BASE=0x00800000
> > +CONFIG_SPL_GPIO=y
> > CONFIG_SPL_LIBCOMMON_SUPPORT=y
> > CONFIG_SPL_LIBGENERIC_SUPPORT=y
> > CONFIG_NR_DRAM_BANKS=2
> > +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
> > +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000
> > CONFIG_TARGET_CLEARFOG=y
> > CONFIG_MVEBU_SPL_BOOT_DEVICE_SATA=y
> > CONFIG_DEFAULT_DEVICE_TREE="armada-388-clearfog"
> > CONFIG_SPL_TEXT_BASE=0x40000030
> > +CONFIG_SPL_MMC=y
>
> SPL contains code just for loading main u-boot. So I think you do not
> need MMC support in SPL code (symbols prefixed by CONFIG_SPL) which
> loads u-boot from SATA.
>
Correct, I'll remove it.
That's actually all of the changes removed (the rest are canonicalization
or the resolved MMC issue), so I'll drop this patch completely in v2.
> CONFIG_SPL_SERIAL=y
> > +CONFIG_SPL_STACK=0x4002c000
> > CONFIG_SPL=y
> > CONFIG_DEBUG_UART_BASE=0xf1012000
> > CONFIG_DEBUG_UART_CLOCK=250000000
> > @@ -18,8 +23,6 @@ CONFIG_SYS_LOAD_ADDR=0x800000
> > CONFIG_DEBUG_UART=y
> > CONFIG_AHCI=y
> > CONFIG_DISTRO_DEFAULTS=y
> > -CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
> > -CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xff0000
> > CONFIG_BOOTDELAY=3
> > CONFIG_USE_PREBOOT=y
> > CONFIG_SYS_CONSOLE_INFO_QUIET=y
> > @@ -31,7 +34,6 @@ CONFIG_SPL_BSS_START_ADDR=0x40023000
> > CONFIG_SPL_BSS_MAX_SIZE=0x4000
> > CONFIG_SPL_SYS_MALLOC_SIMPLE=y
> > # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
> > -CONFIG_SPL_STACK=0x4002c000
> > CONFIG_SPL_I2C=y
> > CONFIG_SYS_MAXARGS=32
> > CONFIG_CMD_TLV_EEPROM=y
> > @@ -46,7 +48,6 @@ CONFIG_CMD_USB=y
> > CONFIG_CMD_TFTPPUT=y
> > CONFIG_CMD_CACHE=y
> > CONFIG_CMD_TIME=y
> > -CONFIG_CMD_MVEBU_BUBT=y
> > CONFIG_ENV_OVERWRITE=y
> > CONFIG_ENV_MIN_ENTRIES=128
> > CONFIG_ARP_TIMEOUT=200
> > @@ -59,6 +60,8 @@ CONFIG_DM_I2C=y
> > CONFIG_SYS_I2C_MVTWSI=y
> > CONFIG_I2C_EEPROM=y
> > CONFIG_SPL_I2C_EEPROM=y
> > +CONFIG_MMC_BROKEN_CD=y
> > +CONFIG_SPL_DM_MMC=y
> > CONFIG_SUPPORT_EMMC_BOOT=y
> > CONFIG_MMC_SDHCI=y
> > CONFIG_MMC_SDHCI_SDMA=y
> > --
> > 2.39.2
> >
>
More information about the U-Boot
mailing list