[PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

Tony Dinh mibodhi at gmail.com
Sat Mar 25 21:06:12 CET 2023


On Sat, Mar 25, 2023 at 12:27 PM Tony Dinh <mibodhi at gmail.com> wrote:
>
> Hi Pali,
>
> On Sat, Mar 25, 2023 at 6:30 AM Pali Rohár <pali at kernel.org> wrote:
> >
> > On Saturday 04 March 2023 11:50:30 Pali Rohár wrote:
> > > Improve code for checking strapping pins which specifies boot mode source.
> > >
> > > Martin, could you test if Clearfog can be still configured into UART
> > > booting mode via HW switches and if it still works correctly? First
> > > patch is reverting UART related commit for Clearfog which I think it not
> > > needed anymore.
> > >
> > > Also could you check if SATA booting is still working correctly?
> > >
> > > Tony, should address problems with SPI booting when it is configured to
> > > different configuration. In fourth commit I added all possible boot mode
> > > strapping pin configurations which are recognized by A385 bootrom (and
> > > not the only one described in the HW spec, which is incomplete).
> > >
> > > Stefan, do you have some AXP board with SATA boot source? Because I'm
> > > adding it for completeness in the last sixth patch.
> > >
> > > Pali Rohár (6):
> > >   arm: mvebu: Remove A38x BOOT_FROM_UART_ALT 0x3f constant
> > >   arm: mvebu: Remove A38x BOOT_FROM_SATA 0x22 constant
> > >   arm: mvebu: Convert BOOT_FROM_* constants to function macros
> > >   arm: mvebu: Define all options for A38x BOOT_FROM_* macros
> > >   arm: mvebu: Define all BOOTROM_ERR_MODE_* macros
> > >   arm: mvebu: Define all options for AXP BOOT_FROM_* macros
> > >
> > >  arch/arm/mach-mvebu/cpu.c              | 20 ++++++-------
> > >  arch/arm/mach-mvebu/include/mach/soc.h | 41 ++++++++++++++++----------
> > >  2 files changed, 35 insertions(+), 26 deletions(-)
> > >
> > > --
> > > 2.20.1
> > >
> >
> > Is something else needed to do with this patch series?
> >
> > Because the discussion in this patch thread just pointed to different
> > issues, not related this this patch series.
>
> For my part I'm OK. The boot mode detection works properly when the
> strapping pin is set to spi1. The issue comes after that. The spi0
> versus spi1 in SPL is a different issue that I will need to
> investigate further. At the moment it falls back to BootROM, which is
> also very fast booting anyway.
>

Tested-by: Tony Dinh <mibodhi at gmail.com>

Thanks,
Tony


More information about the U-Boot mailing list