1. 26 Jan, 2023 2 commits
    • Tony Dinh's avatar
      arm: kirkwood: Use Kirkwood common early malloc area for various Kirkwood boards · 26bc32a8
      Tony Dinh authored and Stefan Roese's avatar Stefan Roese committed
      For Kirkwood boards, it is necessary to have early malloc in DRAM area
      when Driver Model for Serial is enabled. This patch removes individual
      board settings for early malloc in various Kirkwood boards, and uses the
      Kirkwood commonly defined settings in arch/arm/mach-kirkwood/Kconfig.
      Signed-off-by: default avatarTony Dinh <mibodhi@gmail.com>
      Reviewed-by: Stefan Roese's avatarStefan Roese <sr@denx.de>
    • Tony Dinh's avatar
      ddr: marvell: a38x: Add support for DDR4 from Marvell mv-ddr-marvell repository · 54a08c41
      Tony Dinh authored and Stefan Roese's avatar Stefan Roese committed
      This syncs drivers/ddr/marvell/a38x/ with the master branch of repository
      up to the commit "mv_ddr: a3700: Use the right size for memset to not overflow"
      This patch was created by following steps:
      	1. Replace all a38x files in U-Boot tree by files from upstream github
      	Marvell mv-ddr-marvell repository.
      	2. Run following command to omit portions not relevant for a38x, ddr3, and ddr4:
      	unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_APN806 \
      		-UCONFIG_A3700 -UA3900 -UA80X0 -UA70X0 -DCONFIG_ARMADA_38X -UCONFIG_ARMADA_39X \
      		-UCONFIG_64BIT $files
      	3. Manually change license to SPDX-License-Identifier
      	(upstream license in  upstream github repository contains long ...
  2. 25 Jan, 2023 1 commit
    • Tom Rini's avatar
      Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi · 17e8e58f
      Tom Rini authored
      This contains some fixes, and the first bunch of some clean up patches
      to get rid of legacy GPIO and PMIC code.
      Highlight is the DM AXP PMIC driver, which is required to convert some
      drivers over to use DM regulators, and also is required to get rid
      of some less optimal PMIC setup code in Trusted Firmware. This isn't
      enabled by any defconfig yet, but can be enabled manually and works. For
      the full glory some patches are still missing, and this requires more
      testing, which would be simpler if the core code is upstream.
  3. 24 Jan, 2023 1 commit
    • Tom Rini's avatar
      Merge branch '2023-01-24-bootstd-allow-migration-from-distro_bootcmd-script' · 4e1ab206
      Tom Rini authored
      To quote the author:
      So far, standard boot does not replicate all the of the functionality
      of the distro_bootcmd scripts. In particular it lacks some bootdevs and
      some of the bootmeths are incomplete.
      Also there is currently no internal mechanism to enumerate buses in order
      to discover bootdevs, e.g. with USB.
      This series addresses these shortcomings:
      - Adds the concept of a 'bootdev hunter' to enumerate buses, etc. in an
        effort to find bootdevs of a certain priority
      - Adds bootdevs for SCSI, IDE, NVMe, virtio, SPI flash
      - Handles PXE and DHCP properly
      - Supports reading the device tree with EFI and reading scripts from the
      It also tidies up label processing, so it is possible to use:
         bootflow scan mmc2
      to scan just one MMC device (with BOOTSTD_FULL).
      As before this implementation still relies on CONFIG_CMDLINE being
      enabled, mostly for the network stack. Further work would be required to
      disentangle that.
      Quite a few tests are added but there are some gaps:
      - SPI flash bootdev
      - EFI FDT loading
      Note that SATA works via SCSI (CONFIG_SCSI_AHCI) and does not use
      driver model. Only pogo_v4 seems to be affected. Probably all thats is
      needed is to call bootdev_setup_sibling_blk() in the Marvell SATA driver.
      Also, while it would be possible to init MMC in a bootdev hunter, there is
      no point since U-Boot always inits MMC on startup, if present.
      With this series it should be possible to migrate boards to standard boot
      by removing the inclusion of config_distro_bootcmd.h and instead adding
      a suitable value for boot_targets to the environment, e.g.:
         boot_targets=mmc1 mmc0 nvme scsi usb pxe dhcp spi
      Thus it is possible to boot automatically without scripts and boards can
      use a text-based environment instead of the config.h files.
      To demonstrate this, rockpro64-rk3399 is migrated to standard boot in this
      series. Full migration could probably be automated using a script, similar
      in concept to moveconfig:
         - obtain the board environment via 'make u-boot-initial-env'
         - get the value of "boot_targets"
         - drop config_distro_bootcmd.h from the config.h file
         - rebuild again to get the environment without distro scripts
         - write the environment (adding boot_targets) to board.env
         - remove CONFIG_EXTRA_ENV_SETTINGS from the config.h file
  4. 23 Jan, 2023 36 commits