platform/kernel/u-boot.git
22 months agormobile: Drop CONFIG_RMOBILE
Simon Glass [Wed, 1 Feb 2023 20:20:03 +0000 (13:20 -0700)]
rmobile: Drop CONFIG_RMOBILE

This has been renamed to CONFIG_ARCH_RMOBILE but this one was left behind.
It doesn't point to a directory that exists, so just drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agofreescale: Drop unused pq-mds-pib driver
Simon Glass [Wed, 1 Feb 2023 20:20:02 +0000 (13:20 -0700)]
freescale: Drop unused pq-mds-pib driver

This is not used. Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agopower: Drop unused muic_max8997 driver
Simon Glass [Wed, 1 Feb 2023 20:20:01 +0000 (13:20 -0700)]
power: Drop unused muic_max8997 driver

This is not used. Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agopower: Drop unused muic_max77693 driver and mfd code
Simon Glass [Wed, 1 Feb 2023 20:20:00 +0000 (13:20 -0700)]
power: Drop unused muic_max77693 driver and mfd code

This driver is not used and has lain unconverted since:

   fc47cf9d054 arm: exynos: i2c: Convert exynos boards to use DM_I2C

Drop it and the entire mfd directory, since there is nothing left.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agopower: Drop unused fg_max17042 driver and fuel gauge code
Simon Glass [Wed, 1 Feb 2023 20:19:59 +0000 (13:19 -0700)]
power: Drop unused fg_max17042 driver and fuel gauge code

This driver is not used. Drop it and the entire fuel_gauge directory,
since there is nothing left.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agopower: Drop unused bat_trats driver and battery code
Simon Glass [Wed, 1 Feb 2023 20:19:58 +0000 (13:19 -0700)]
power: Drop unused bat_trats driver and battery code

This driver and bat_trats2 are not used. Drop them and the entire battery
directory, since there is nothing left.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agogpio: Drop unused pca9698 driver
Simon Glass [Wed, 1 Feb 2023 20:19:56 +0000 (13:19 -0700)]
gpio: Drop unused pca9698 driver

This is not used. Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoppc: Drop unused CONFIG_P2020DS
Simon Glass [Wed, 1 Feb 2023 20:19:55 +0000 (13:19 -0700)]
ppc: Drop unused CONFIG_P2020DS

This option does not exist, so the Makefile rule does nothing. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoomap: Drop unused CONFIG_OMAP_USB_PHY
Simon Glass [Wed, 1 Feb 2023 20:19:53 +0000 (13:19 -0700)]
omap: Drop unused CONFIG_OMAP_USB_PHY

This option does not exist, so the Makefile rule does nothing. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
22 months agoMakefile: Drop CONFIG_OF_EARLY_FLATTREE
Simon Glass [Wed, 1 Feb 2023 20:19:52 +0000 (13:19 -0700)]
Makefile: Drop CONFIG_OF_EARLY_FLATTREE

This option does not exist, so drop the dead code.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agomtd: Drop unused nand_plat driver
Simon Glass [Wed, 1 Feb 2023 20:19:51 +0000 (13:19 -0700)]
mtd: Drop unused nand_plat driver

This is not used since this commit:

   936478e797a SPARC: Remove

Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agomtd: Drop unused fsmc_nand driver
Simon Glass [Wed, 1 Feb 2023 20:19:49 +0000 (13:19 -0700)]
mtd: Drop unused fsmc_nand driver

This is not used since this commit:

   570c3dcfc15 arm: Remove spear600 boards and the rest of SPEAr support

Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
22 months agomtd: Drop unused fsl_upm driver
Simon Glass [Wed, 1 Feb 2023 20:19:48 +0000 (13:19 -0700)]
mtd: Drop unused fsl_upm driver

This is not used since this commit:

   8d1e3cb1400 powerpc: mpc83xx: remove MPC8360ERDK, EMPC8360EMDS support

Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
22 months agonand: Drop unused actl_nand driver
Simon Glass [Wed, 1 Feb 2023 20:19:47 +0000 (13:19 -0700)]
nand: Drop unused actl_nand driver

This is not used since this commit:

   ed7fe2bee12 ppc: Remove xpedite boards

Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoimx: Rename CONFIG_MXS to CFG_MXS
Simon Glass [Wed, 1 Feb 2023 20:19:46 +0000 (13:19 -0700)]
imx: Rename CONFIG_MXS to CFG_MXS

This is not a Kconfig option so we should not be setting it in the
Makefile. Rename it to use a CFS_ prefix, since this is still used in
mxsimage.c

In general tools should support all the features without reference to
CONFIG options, but this is left to the maintainer to look at.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agogpio: Drop unused mpc83xx_gpio driver
Simon Glass [Wed, 1 Feb 2023 20:19:45 +0000 (13:19 -0700)]
gpio: Drop unused mpc83xx_gpio driver

This is not used since this commit:

   7458f18e5c2 ppc: Remove MPC8313ERDB boards

Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoarc: Drop CONFIG_MMU
Simon Glass [Wed, 1 Feb 2023 20:19:44 +0000 (13:19 -0700)]
arc: Drop CONFIG_MMU

This option is set in the Makefile but has no effect in the assembly
code, i.e. the #ifdef branch is never used. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoarm: Drop CONFIG_MMU
Simon Glass [Wed, 1 Feb 2023 20:19:43 +0000 (13:19 -0700)]
arm: Drop CONFIG_MMU

This option does not exist, so the #ifdefs do nothing. Drop this code.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agom68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVM
Simon Glass [Wed, 1 Feb 2023 20:19:42 +0000 (13:19 -0700)]
m68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVM

This option does not exist, so the Makefile rule does nothing. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agom68k: Drop unused CONFIG_M52277
Simon Glass [Wed, 1 Feb 2023 20:19:41 +0000 (13:19 -0700)]
m68k: Drop unused CONFIG_M52277

This option does not exist, so the Makefile rule does nothing. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agovideo: Drop unused lg4573 driver
Simon Glass [Wed, 1 Feb 2023 20:19:40 +0000 (13:19 -0700)]
video: Drop unused lg4573 driver

This is not used since this commit:

   3cf02f5ffa4 imx6: remove not longer supported aristainetos boards

Drop the driver and Kconfig option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoarm: Drop old kona code
Simon Glass [Wed, 1 Feb 2023 20:19:39 +0000 (13:19 -0700)]
arm: Drop old kona code

The KONA and KONA_GPIO options don't exist anymore, since this commit:

   0f6807e77b0 arm: Remove bcm28155_ap board

Drop the dead code.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoimx: Drop unused CONFIG_IMX
Simon Glass [Wed, 1 Feb 2023 20:19:38 +0000 (13:19 -0700)]
imx: Drop unused CONFIG_IMX

This option does not exist, so the Makefile rule does nothing. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agorcar: Drop timer
Simon Glass [Wed, 1 Feb 2023 20:19:37 +0000 (13:19 -0700)]
rcar: Drop timer

Drop this unused driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agofreescale: Drop unused ftpmu010 driver
Simon Glass [Wed, 1 Feb 2023 20:19:36 +0000 (13:19 -0700)]
freescale: Drop unused ftpmu010 driver

Drop this unused code.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agofreescale: Drop unused pixis code
Simon Glass [Wed, 1 Feb 2023 20:19:35 +0000 (13:19 -0700)]
freescale: Drop unused pixis code

Drop this unused code.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agomisc: Drop mc9sdz60 driver
Simon Glass [Wed, 1 Feb 2023 20:19:34 +0000 (13:19 -0700)]
misc: Drop mc9sdz60 driver

Drop this unused driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agofpga: Add a FPGA_STRATIX_II option
Simon Glass [Wed, 1 Feb 2023 20:19:33 +0000 (13:19 -0700)]
fpga: Add a FPGA_STRATIX_II option

There is no Kconfig option for this code, but it seems to be useful. Add
one.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agofpga: Add a LATTICE option
Simon Glass [Wed, 1 Feb 2023 20:19:32 +0000 (13:19 -0700)]
fpga: Add a LATTICE option

There is no Kconfig option for this code, but it seems to be useful. Add
one.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agosamsung: Drop CONFIG_EXYNOS_PWM_BL
Simon Glass [Wed, 1 Feb 2023 20:19:31 +0000 (13:19 -0700)]
samsung: Drop CONFIG_EXYNOS_PWM_BL

This is not defined anywhere. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
22 months agoenv: Drop ENV_IS_IN_SATA
Simon Glass [Wed, 1 Feb 2023 20:19:30 +0000 (13:19 -0700)]
env: Drop ENV_IS_IN_SATA

This is not used anywhere, so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoMakefile: Avoid use of invalid CONFIG_ option
Simon Glass [Wed, 1 Feb 2023 20:19:29 +0000 (13:19 -0700)]
Makefile: Avoid use of invalid CONFIG_ option

This appears in a comment but is not a real option. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoDrop CONFIG_DM644X_GPIO
Simon Glass [Wed, 1 Feb 2023 20:19:28 +0000 (13:19 -0700)]
Drop CONFIG_DM644X_GPIO

Drop this unused option.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoDrop dataflash_mmc_mux command
Simon Glass [Wed, 1 Feb 2023 20:19:27 +0000 (13:19 -0700)]
Drop dataflash_mmc_mux command

This is not used. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoCorrect CONFIG_CONTROLCENTERDC
Simon Glass [Wed, 1 Feb 2023 20:19:26 +0000 (13:19 -0700)]
Correct CONFIG_CONTROLCENTERDC

This option does not exist but presumably means to point to
CONFIG_TARGET_CONTROLCENTERDC. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agocmd: Drop mfsl command
Simon Glass [Wed, 1 Feb 2023 20:19:25 +0000 (13:19 -0700)]
cmd: Drop mfsl command

This is not used anywhere. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agocmd: Add an option to enable the ini command
Simon Glass [Wed, 1 Feb 2023 20:19:24 +0000 (13:19 -0700)]
cmd: Add an option to enable the ini command

This command has no Kconfig option at present, but seems useful enough to
keep around. Add one.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agorockchip: Correct a reference to CONFIG_BOOT_MODE_REG
Simon Glass [Wed, 1 Feb 2023 20:19:23 +0000 (13:19 -0700)]
rockchip: Correct a reference to CONFIG_BOOT_MODE_REG

This option does not exist and should refer to
CONFIG_ROCKCHIP_BOOT_MODE_REG instead. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoppc: Drop bat_rw
Simon Glass [Wed, 1 Feb 2023 20:19:22 +0000 (13:19 -0700)]
ppc: Drop bat_rw

Drop this unused driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoarm: mvebu: Drop reference to CONFIG_ARMADA_39X
Simon Glass [Wed, 1 Feb 2023 20:19:21 +0000 (13:19 -0700)]
arm: mvebu: Drop reference to CONFIG_ARMADA_39X

This is not defined anywhere. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
22 months agoarm: mvebu: Remove reference to ARMADA_370
Simon Glass [Wed, 1 Feb 2023 20:19:20 +0000 (13:19 -0700)]
arm: mvebu: Remove reference to ARMADA_370

Drop this as it is not referenced anywhere else in the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agosandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE
Simon Glass [Wed, 1 Feb 2023 20:19:19 +0000 (13:19 -0700)]
sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE

This is not used anywhere. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agomisc: Drop ali512x
Simon Glass [Wed, 1 Feb 2023 20:19:18 +0000 (13:19 -0700)]
misc: Drop ali512x

Drop this unused driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoMakefile: Drop CONFIG_AIS_CONFIG_FILE
Simon Glass [Wed, 1 Feb 2023 20:19:17 +0000 (13:19 -0700)]
Makefile: Drop CONFIG_AIS_CONFIG_FILE

This is not defined anywhere. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agogpio: Drop adi_gpio2
Simon Glass [Wed, 1 Feb 2023 20:19:16 +0000 (13:19 -0700)]
gpio: Drop adi_gpio2

Drop this unused driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agopower: Drop pmic_max77693.c
Simon Glass [Wed, 1 Feb 2023 20:19:15 +0000 (13:19 -0700)]
power: Drop pmic_max77693.c

Drop this driver and the associated CONFIG option, as it is not used.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agonand: Drop CONFIG_NAND_SPEAR
Simon Glass [Wed, 1 Feb 2023 20:19:14 +0000 (13:19 -0700)]
nand: Drop CONFIG_NAND_SPEAR

This is not used anymore. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
22 months agopower: Drop fg_max77693
Simon Glass [Wed, 1 Feb 2023 20:19:13 +0000 (13:19 -0700)]
power: Drop fg_max77693

This is not used in U-Boot. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agomoveconfig: Add an option to compare Kconfig against source
Simon Glass [Wed, 1 Feb 2023 20:19:12 +0000 (13:19 -0700)]
moveconfig: Add an option to compare Kconfig against source

Sometimes the Makefile rules or source code refers to Kconfig options
which don't exist. Update the moveconfig tool to check this and produce
a series of reports about inconsistencies.

This can then be used to generate patches to correct the problems.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoMerge branch '2023-02-07-assorted-updates'
Tom Rini [Tue, 7 Feb 2023 16:42:26 +0000 (11:42 -0500)]
Merge branch '2023-02-07-assorted-updates'

- Default to dynamic LMB allocation, and fix an issue with the EFI one,
  assorted TI platform updates, socrates platform updates, switch
  qemu-arm to using bootstd, imagetool fixes, macOS host build fixes,
  keymile platform upates, spl FPGA load fix, MMC env bugfix, add seama
  command, usb bootdev test bugfix.

22 months agocmd: Add a SEAMA image load command
Linus Walleij [Tue, 31 Jan 2023 23:16:13 +0000 (00:16 +0100)]
cmd: Add a SEAMA image load command

Add a command to load SEAMA (Seattle Image), a NAND flash
on-flash storage format.

This type of flash image is found in some D-Link routers such
as DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and
DCH-M225, as well as in WD and NEC routers on the ath79
(MIPS), Broadcom BCM53xx, and RAMIPS platforms.

This U-Boot command will read and decode a SEAMA image from
raw NAND flash on any platform. As it is always using big endian
format for the data decoding is always necessary on platforms
such as ARM.

The command is needed to read a SEAMA-encoded boot image on the
D-Link DIR-890L router for boot from NAND flash in an upcoming
port of U-Boot to the Broadcom Northstar (BCM4709, BCM53xx)
architecture.

A basic test and documentation is added as well. The test must
be run on a target with NAND flash support and at least one
resident SEAMA image in flash.

Cc: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
22 months agoenv: mmc: Fix offset issue for env save
Ye Li [Tue, 31 Jan 2023 06:41:58 +0000 (14:41 +0800)]
env: mmc: Fix offset issue for env save

Fix the issue in commit 46c9016 ("env: mcc: Drop unnecessary #ifdefs")
If CONFIG_SYS_REDUNDAND_ENVIRONMENT is not defined, the offset value
becomes undetermined, so write env to unexpected offset.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
22 months agoMAINTAINERS: m68k: Change Angelo's email address
Angelo Dureghello [Mon, 30 Jan 2023 19:54:50 +0000 (20:54 +0100)]
MAINTAINERS: m68k: Change Angelo's email address

Set my new current personal email.

Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
22 months agotools: default_image: Accept images with padding
Pali Rohár [Sun, 29 Jan 2023 16:44:11 +0000 (17:44 +0100)]
tools: default_image: Accept images with padding

If image file is stored on flash partition then it contains padding, which
is not part of the image itself. Image data size is stored in the image
header. So use image size from the header instead of expecting that total
image file size is size of the header plus size of the image data. This
allows dumpimage to parse image files with padding (e.g. dumped from flash
partition).

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
22 months agotools: default_image: Verify header size
Pali Rohár [Sun, 29 Jan 2023 16:44:10 +0000 (17:44 +0100)]
tools: default_image: Verify header size

Before reading image header, verify that image size is at least size of
the image header.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
22 months agotools: imagetool: Skip autodetection of gpimage type
Pali Rohár [Sun, 29 Jan 2023 16:45:55 +0000 (17:45 +0100)]
tools: imagetool: Skip autodetection of gpimage type

gpimage type requires only that two first 32-bit words of data file are
non-zero. So basically every random data file can be guessed and verified
as gpimage. So completely skip gpimage type from image autodetection code
to prevent lot of false positive results. Data file with gpimage type can
be still verified and parsed by explicitly specifying -T gpimage.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
22 months agotools: imagetool: Show error message when detecting image type failed
Pali Rohár [Sun, 29 Jan 2023 16:45:54 +0000 (17:45 +0100)]
tools: imagetool: Show error message when detecting image type failed

Signed-off-by: Pali Rohár <pali@kernel.org>
22 months agotools: imagetool: Fix error message when verify_header is undefined
Pali Rohár [Sun, 29 Jan 2023 16:45:53 +0000 (17:45 +0100)]
tools: imagetool: Fix error message when verify_header is undefined

Signed-off-by: Pali Rohár <pali@kernel.org>
22 months agoarm: qemu: Move GUIDs to the C file
Simon Glass [Sat, 28 Jan 2023 22:00:28 +0000 (15:00 -0700)]
arm: qemu: Move GUIDs to the C file

These are only used in one place, so move them there.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoarm: qemu: Switch to a text environment
Simon Glass [Sat, 28 Jan 2023 22:00:27 +0000 (15:00 -0700)]
arm: qemu: Switch to a text environment

Use the new environment format so we can drop most of the config.h file.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoarm: qemu: Switch to standard boot
Simon Glass [Sat, 28 Jan 2023 22:00:26 +0000 (15:00 -0700)]
arm: qemu: Switch to standard boot

Drop use of the distro scripts and use standard boot instead.

Enable BOOTDEV_FULL just for convenience, although this does add quite a
bit to the size.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoqemu: Add a bootmeth for qfw
Simon Glass [Sat, 28 Jan 2023 22:00:25 +0000 (15:00 -0700)]
qemu: Add a bootmeth for qfw

This supports reading a kernel and ramdisk from qfw, then loading it with
either the booti or bootz commands.

For now this uses the existing booti and bootz commands, rather than
trying to call that functionality directly (e.g. do_bootm_states()). It
does not require the HUSH parser though, which helps a little with size.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoqemu: Add a bootdev for qfw
Simon Glass [Sat, 28 Jan 2023 22:00:24 +0000 (15:00 -0700)]
qemu: Add a bootdev for qfw

Add a bootdev device for qfw so that it can be used with standard boot.
This simply checks for the correct method and then does the read. Most of
the other logic is handed in a new bootmeth driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoqemu: Move qfw kernel setup into a common file
Simon Glass [Sat, 28 Jan 2023 22:00:23 +0000 (15:00 -0700)]
qemu: Move qfw kernel setup into a common file

This is currently in the cmd/ file but we want to call it from a driver.
Move it into a common place. Tidy up the header-file order while we are
here.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoqemu: Update qfw command to use addresses
Simon Glass [Sat, 28 Jan 2023 22:00:22 +0000 (15:00 -0700)]
qemu: Update qfw command to use addresses

This uses casts all over the place. Use the correct type so that these
can be avoided, as is done with other commands. Also simplify a few
conditionals.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agobootstd: Add some default filesystems and commands
Simon Glass [Sat, 28 Jan 2023 22:00:21 +0000 (15:00 -0700)]
bootstd: Add some default filesystems and commands

We need to support a basic set of filesystems for booting to work in most
cases. Add these in via a new option, letting the board disable them
individually (for space reasons) if desired.

This enables the filesystem commands as well as the actual functionality,
even though bootstd is quite happy to use ext4 without the ext4 command.
Further work would be needed to disintangle this and reduce code size.

Add several other options as well, providing sensible defaults.

We cannot enable this by default, since it expands the size of many
boards quite a lot.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agobootstd: Correct virtio block-device handling
Simon Glass [Sat, 28 Jan 2023 22:00:20 +0000 (15:00 -0700)]
bootstd: Correct virtio block-device handling

At present virtio tries to attach QEMU services to a bootdev device, which
cannot work. Add a check for this.

Also use bootdev_setup_sibling_blk() to create the bootdev device, since
it allows the correct name to be used and bootdev_get_sibling_blk() to
work as expected.

The bootdev is not created on sandbox since it does have a real virtio
device and it is not possible to read blocks.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: a60f7a3e35b ("bootstd: Add a virtio bootdev")
Reported-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
22 months agobootstd: Probe the block device before use
Simon Glass [Sat, 28 Jan 2023 22:00:19 +0000 (15:00 -0700)]
bootstd: Probe the block device before use

In some cases the block device is obtained but is not probed, since it
is a sibling of the bootdev. Make sure it is probed, so it can be used
without any trouble.

This fixes a bug with virtio, where the device is accessed before it has
been set up by the virtio uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 201417d700a ("bootstd: Add the bootdev uclass")
Reported-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
22 months agobootstd: Allow enabling BOOTSTD_FULL without needing EXPO
Simon Glass [Sat, 28 Jan 2023 22:00:18 +0000 (15:00 -0700)]
bootstd: Allow enabling BOOTSTD_FULL without needing EXPO

It is sometimes useful to have one without the other, e.g. on a device
without a display, since at present the expo feature requires CONFIG_VIDEO
to be enabled.

Update the Makefile and bootflow command to support this, as well as the
EXPO dependency.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agovirtio: Add some debugging
Simon Glass [Sat, 28 Jan 2023 22:00:17 +0000 (15:00 -0700)]
virtio: Add some debugging

When QEMU does not respond for some reason, it is helpful to have
debugging info to show. Add some.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agolog: Add a category for filesystems
Simon Glass [Sat, 28 Jan 2023 22:00:16 +0000 (15:00 -0700)]
log: Add a category for filesystems

Sometimes it is useful to log things related to filesystems. Add a new
category and place it at the top of one of the FAT files.

Signed-off-by: Simon Glass <sjg@chromium.org>
22 months agoam335x_evm_defconfig: Enable CONFIG_CMD_EXTENSION
Matwey V. Kornilov [Thu, 26 Jan 2023 12:19:15 +0000 (15:19 +0300)]
am335x_evm_defconfig: Enable CONFIG_CMD_EXTENSION

am335x_evm_defconfig is used for BeagleBone Black, popular single board
computer with wide extension support. Enable CONFIG_CMD_EXTENSION by default
since extension detection is already implemented for am335x.

Also run make savedefconfig for am335x_evm_defconfig

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
22 months agoti: j721e_evm: Add USB to the default boot order
Tom Rini [Wed, 25 Jan 2023 23:09:55 +0000 (18:09 -0500)]
ti: j721e_evm: Add USB to the default boot order

This family of platforms typically has a USB port, and so attempting to
boot from it, and making it first, will provide a better overall user
experience.

Signed-off-by: Tom Rini <trini@konsulko.com>
22 months agopowerpc/mpc85xx: socrates: enable signed fitImages
Heiko Schocher [Tue, 24 Jan 2023 17:07:00 +0000 (18:07 +0100)]
powerpc/mpc85xx: socrates: enable signed fitImages

allow only to boot signed fitimages (and signed u-boot
scripts).

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: enable protected Environment
Heiko Schocher [Tue, 24 Jan 2023 17:06:59 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: enable protected Environment

enable protected Environment on socrates board.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: add autoboot delay string
Heiko Schocher [Tue, 24 Jan 2023 17:06:58 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: add autoboot delay string

add autoboot delay string for socrates board.
use sha256 for abort autoboot, use "ao" to abort.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: add support for i2c eeprom at 0x51
Heiko Schocher [Tue, 24 Jan 2023 17:06:57 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: add support for i2c eeprom at 0x51

add support for i2c eeprom on address 0x51.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: Add boot retry feature
Heiko Schocher [Tue, 24 Jan 2023 17:06:56 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: Add boot retry feature

add boot retry feature and reboot after 120 seconds.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: drop second flash bank
Heiko Schocher [Tue, 24 Jan 2023 17:06:55 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: drop second flash bank

drop second flash bank, as not used anymore.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: add initrd_high default environment variable
Heiko Schocher [Tue, 24 Jan 2023 17:06:54 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: add initrd_high default environment variable

we need to set initrd_high to get fitimage booting.

Without, U-Boot drops when booting fitimage:

ERROR: Failed to allocate 0x59a0b6 bytes below 0x800000.
ramdisk - allocation error
bootm - boot application image from memory

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: add MTD partitioning support
Heiko Schocher [Tue, 24 Jan 2023 17:06:53 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: add MTD partitioning support

setup MTD partitioning through mtdparts variable
and set it to:

mtdparts=fe0000000.nor:13312k(system1),13312k(system2),5120k(data),128k(env),128k(env-red),768k(u-boot)

and pass this to linux per kernel commandline.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc: dts: updates socrates board
Heiko Schocher [Tue, 24 Jan 2023 17:06:52 +0000 (18:06 +0100)]
powerpc: dts: updates socrates board

include common e500v2_power_isa.dtsi and rearrange
some nodes.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: drop socrates specific image creation
Heiko Schocher [Tue, 24 Jan 2023 17:06:51 +0000 (18:06 +0100)]
powerpc/mpc85xx: drop socrates specific image creation

convert socrates board to use MPC85XX_HAVE_RESET_VECTOR and
disable CONFIG_OF_BOARD and use common u-boot.dtsi for
creating u-boot-dtb.bin.

Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: socrates: rework build process
Heiko Schocher [Tue, 24 Jan 2023 17:06:50 +0000 (18:06 +0100)]
powerpc/mpc85xx: socrates: rework build process

U-Boot build process for socrates board produces final U-Boot binary in
file u-boot-socrates.bin (by binman) And as a bonus it produces two
unusable broken binaries u-boot-dtb.bin and u-boot.bin (by Makefile).

Clean this up, so final U-Boot binary is in u-boot-dtb.bin

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Heiko Schocher <hs@denx.de>
22 months agopowerpc/mpc85xx: fixes and updates for socrates board
Heiko Schocher [Tue, 24 Jan 2023 17:06:49 +0000 (18:06 +0100)]
powerpc/mpc85xx: fixes and updates for socrates board

current mainline does not work on socrates board. To
get it back up working, there are some updates needed
in socrates_defconfig.

Signed-off-by: Heiko Schocher <hs@denx.de>
Fixes: 94633c36f9eb ("net: Make DM_ETH be selected by NETDEVICE")
Fixes: 2f8a6db5d83b ("Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig")
22 months agospl: Drop unwanted return in spl_fit_upload_fpga()
Simon Glass [Tue, 24 Jan 2023 10:55:10 +0000 (03:55 -0700)]
spl: Drop unwanted return in spl_fit_upload_fpga()

This was added by mistake and renders the function useless. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 33c60a38bb9 ("trace: Use notrace for short")
Reported-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier-oss@weidmueller.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
22 months agoarm: dts: k3-am64: Fix CPSW3G ethernet
Roger Quadros [Tue, 24 Jan 2023 09:43:27 +0000 (11:43 +0200)]
arm: dts: k3-am64: Fix CPSW3G ethernet

As MDIO driver does not support Driver Model, the
pinctrl settings in the MDIO node will not
be applied resulting in PHY not being detected.

To workaround this we add the MDIO pinctrl in
the CPSW3G node in the -u-boot.dtsi file.

Add the missing MDIO and RGMII pinctrl nodes in
k3-am642-r5-evm.dts

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
22 months agoarm: dts: k3-am6: Fix "EEPROM not available" error
Roger Quadros [Tue, 24 Jan 2023 09:43:26 +0000 (11:43 +0200)]
arm: dts: k3-am6: Fix "EEPROM not available" error

We need to enable i2c0 so u-boot can read from EEPROM.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
22 months agoarm: dts: k3-am64: sync with Linux DT files
Roger Quadros [Tue, 24 Jan 2023 09:43:25 +0000 (11:43 +0200)]
arm: dts: k3-am64: sync with Linux DT files

Sync AM64 DT files with Linux v6.2-rc4

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
22 months agokm/ppc832x: join config files
Holger Brunck [Tue, 24 Jan 2023 08:42:41 +0000 (09:42 +0100)]
km/ppc832x: join config files

There are no differences for the different 832x targets we have in
the header defined with SYS_CONFIG_NAME. So we can join the five
headers to a single file.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
22 months agokm/ppc: remove km-mpc8360.h and km-mpc832x.h
Holger Brunck [Tue, 24 Jan 2023 08:42:40 +0000 (09:42 +0100)]
km/ppc: remove km-mpc8360.h and km-mpc832x.h

Next step to get rid of the header files in icnlude/configs. Move
most of the defines to km83xx.c directly. Some remaining defines
which should go to Kconfig are moved to km-mpc83xx.h for now.

Also remove some unused defines and move one define to powerpc.env
as we only need it there.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
22 months agoboard: ti: am62x: am62x: Add splash screen env variables
Nikhil M Jain [Tue, 31 Jan 2023 10:05:18 +0000 (15:35 +0530)]
board: ti: am62x: am62x: Add splash screen env variables

Set splash screen related env variables. Default splash source is
set to mmc where user is expected to keep bmp in compressed format
with name ti.gz on first partition of mmc.

Splash file will be uncompressed to DDR at address 0x82000000 and
splash position is set to middle of screen.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
22 months agoinclude: configs: am62x_evm: Add .env file for Am62x
Nikhil M Jain [Tue, 24 Jan 2023 05:16:02 +0000 (10:46 +0530)]
include: configs: am62x_evm: Add .env file for Am62x

Use .env file for setting board related environment variables,
in place of am62x_evm.h file. Except for BOOTENV settings, as
config_distro_boot.env file doesn't exist.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
22 months agotest: bootdev: Do not require USB to compile test
Linus Walleij [Mon, 23 Jan 2023 22:07:21 +0000 (23:07 +0100)]
test: bootdev: Do not require USB to compile test

This test will block compilation of the entire test suite
on platforms without USB support. Make the extern
"usb_started" conditional on USB host or gadget and
define a dummy flag if neither is enabled.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
22 months agoelf: add Elf64_Sym
KaDiWa [Sun, 22 Jan 2023 19:04:53 +0000 (20:04 +0100)]
elf: add Elf64_Sym

Required as Elf_Sym in tools/prelink-riscv.inc. I assume people have
been using an OS-supplied elf.h, but macOS doesn't have that.

Taken from
https://github.com/torvalds/linux/blob/v6.1/include/uapi/linux/elf.h

Signed-off-by: KaDiWa <kalle.wachsmuth@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
22 months agoMakefile: fix shell error for darwin major/minor version check
Christian Marangi [Sun, 22 Jan 2023 00:42:10 +0000 (01:42 +0100)]
Makefile: fix shell error for darwin major/minor version check

Fix shell error:
 /bin/sh: line 0: [: too many arguments

for the darwin major/minor version check.

It seems for os_x_before for some reason DARWIN_MAJOR_VERSION and
DARWIN_MINOR_VERSION are empty. To fix this set DARWIN_MAJOR_VERSION
and DARWIN_MINOR_VERSION to be evaluated once so the value is retained.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
22 months agolmb: Set correct lmb flags for EFI memory map entries
Sjoerd Simons [Thu, 19 Jan 2023 08:38:18 +0000 (09:38 +0100)]
lmb: Set correct lmb flags for EFI memory map entries

When adding reserved memory areas from the EFI memory map set the NOMAP
flag when applicable. When this isn't done adding "no-map" flagged entries
from the fdt after receiving the same from the EFI memory map fails due
to non-matching flags.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
22 months agolmb: Default to not-LMB_USE_MAX_REGIONS
Tom Rini [Wed, 25 Jan 2023 23:08:23 +0000 (18:08 -0500)]
lmb: Default to not-LMB_USE_MAX_REGIONS

The LMB code allows for picking a hard limit on the number of regions it
can know of, or to dynamically allocate these regions. The reason for
this choice is to allow for the compiler to perform a size optimization
in the common case. This optimization however, is very small, ranging
from 196 bytes to 15 bytes saved, or in some cases, being larger. Now
that we also have more regions covered by LMB (in order to protect
various parts of our self at run time), the default of 8 is also much
easier to hit and leads to non-obvious error messages (which imply that
an area is protected, not that we're out of areas to add to the list).

Switch to the dynamic use as the default.

Signed-off-by: Tom Rini <trini@konsulko.com>
22 months agoMerge tag 'video-20230204' of https://source.denx.de/u-boot/custodians/u-boot-video
Tom Rini [Sat, 4 Feb 2023 19:53:00 +0000 (14:53 -0500)]
Merge tag 'video-20230204' of https://source.denx.de/u-boot/custodians/u-boot-video

 - restore TI AM335x LCDC driver with DM support
 - make simple panel independent of backlight
 - add ofnode panel timing decode functions with test
 - add TIDSS video driver and AM62x splash screen
 - add TI logo

22 months agotools: logos: Add TI logo files
Nikhil M Jain [Tue, 31 Jan 2023 10:05:20 +0000 (15:35 +0530)]
tools: logos: Add TI logo files

The default splashfile name saved is ti.gz. User can use these
logo files and use it to test splash screen.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>