]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
5 months agoboard: phytec: renaming of variables according to bootstd doc
Benjamin Hahn [Wed, 17 Jul 2024 05:11:29 +0000 (22:11 -0700)]
board: phytec: renaming of variables according to bootstd doc

Rename existing environment variables according to the bootstd doc.
Renamed variables are fdto_addr, bootenv_addr, fdt_addr and
fdt_file.

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
5 months agophycore_imx93: include common overlays.env
Benjamin Hahn [Wed, 17 Jul 2024 05:11:28 +0000 (22:11 -0700)]
phycore_imx93: include common overlays.env

Include the common overlays env file for phycore_imx93.
The common overlays env file supports disabling loading overlays by
setting the no_overlays variable.

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
5 months agophycore-imx8mp: Add overlay and bootenv.txt support
Benjamin Hahn [Wed, 17 Jul 2024 05:11:27 +0000 (22:11 -0700)]
phycore-imx8mp: Add overlay and bootenv.txt support

Add support for loading bootenv.txt as well as loading and applying
overlays during boot from mmc and net.

${no_bootenv}: Prevent loading external bootenv.txt environment. Use
       ${overlays} variable directly from u-boot environment.
${no_overlay}: Do not load overlays defined in ${overlays} variable.
       Overlays loaded over the extension command are still
       being applied.

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Teresa Remmet <t.remmet@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
5 months agoinclude: env: phytec: Create env file for loading and applying overlays
Benjamin Hahn [Wed, 17 Jul 2024 05:11:26 +0000 (22:11 -0700)]
include: env: phytec: Create env file for loading and applying overlays

The env scripts for loading and applying overlays are identical for many
PHYTEC Boards. Create a common env that can be included.

The env variables bootenv_addr and fdto_addr are board specific and need
to be set in the board specific file. The env variable get_cmd also
needs to be set in board specific files and can be set to tftp or dhcp.

Signed-off-by: Benjamin Hahn <B.Hahn@phytec.de>
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Teresa Remmet <t.remmet@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
5 months agoMerge patch series "Fix fdtfile for j722s and am62p"
Tom Rini [Tue, 16 Jul 2024 19:01:52 +0000 (13:01 -0600)]
Merge patch series "Fix fdtfile for j722s and am62p"

Manorit Chawdhry <m-chawdhry@ti.com> says:

fdtfile wasn't being populated in these boards in legacy boot using
bootcmd_ti_mmc, migrate these platforms to ti_set_fdt_env.

5 months agoinclude: env: ti_common: Remove findfdt from bootcmd_ti_mmc
Dhruva Gole [Tue, 2 Jul 2024 05:20:04 +0000 (10:50 +0530)]
include: env: ti_common: Remove findfdt from bootcmd_ti_mmc

findfdt is used by bootcmd_ti_mmc by default which used to help populate
the fdtfile. The users of findfdt from bootcmd_ti_mmc have migrated to
ti_set_fdt_env for populating fdtfile; Hence, findfdt can be removed from
bootcmd_ti_mmc having no-impact for any platform.

Remove findfdt to not print out the warning that gets set after calling
ti_set_fdt_env. viz.
"echo WARN: fdtfile already set. Stop using findfdt in script"

Signed-off-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
5 months agoinclude: env: ti: mmc: Change name_fdt usage to fdtfile
Manorit Chawdhry [Tue, 2 Jul 2024 05:20:03 +0000 (10:50 +0530)]
include: env: ti: mmc: Change name_fdt usage to fdtfile

name_fdt is kept for backward compatibility but it depends on EEPROM
detection logic and some of the TI K3 platforms don't have that anymore
which causes boot failure in legacy boot flow using bootcmd_ti_mmc.

K2g platforms which uses the same file have their own override causing
this change to be no-impact for them.

Replacing name_fdt usage to fdtfile as fdtfile is populated based on
CONFIG_DEFAULT_DEVICE_TREE after using ti_set_fdt_env.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
5 months agoconfigs: am62p|j722s_a53: Add CONFIG_BOARD_LATE_INIT
Manorit Chawdhry [Tue, 2 Jul 2024 05:20:02 +0000 (10:50 +0530)]
configs: am62p|j722s_a53: Add CONFIG_BOARD_LATE_INIT

This is called to set fdtfile based on evm.c code calling ti_set_fdt_env.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
5 months agoboard: ti: am62p|j722s: Add ti_set_fdt_env for fdtfile
Manorit Chawdhry [Tue, 2 Jul 2024 05:20:01 +0000 (10:50 +0530)]
board: ti: am62p|j722s: Add ti_set_fdt_env for fdtfile

stdboot and legacy boot depend on fdtfile. Since findfdt is getting
deprecated, move the rest of k3 platforms dependent on findfdt to
ti_set_fdt_env.

Populate fdtfile by calling ti_set_fdt_env in board files.

Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
5 months agoMerge patch series "configs: phycore_am62x_a53: Add more commands"
Tom Rini [Tue, 16 Jul 2024 18:56:46 +0000 (12:56 -0600)]
Merge patch series "configs: phycore_am62x_a53: Add more commands"

5 months agoboard: phytec: phycore_am64x: Move earlycon into own variable
Daniel Schultz [Mon, 1 Jul 2024 06:20:50 +0000 (23:20 -0700)]
board: phytec: phycore_am64x: Move earlycon into own variable

By moving the earlycon definition into a dedicated variable, it's
easier to change these values in case the kernel should print on
a different serial interface.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
5 months agoboard: phytec: phycore_am62x: Move earlycon into own variable
Daniel Schultz [Mon, 1 Jul 2024 06:20:49 +0000 (23:20 -0700)]
board: phytec: phycore_am62x: Move earlycon into own variable

By moving the earlycon definition into a dedicated variable, it's
easier to change these values in case the kernel should print on
a different serial interface.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
5 months agoconfigs: phycore_am64x_a53: Add more commands
Daniel Schultz [Mon, 1 Jul 2024 06:20:48 +0000 (23:20 -0700)]
configs: phycore_am64x_a53: Add more commands

Add the rtc command for testing this device. Additionally, add smc
and cache commands to boot non-Linux firmwares on the A53.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
5 months agoconfigs: phycore_am62x_a53: Add more commands
Daniel Schultz [Mon, 1 Jul 2024 06:20:47 +0000 (23:20 -0700)]
configs: phycore_am62x_a53: Add more commands

Add i2c and rtc commands with all dependencies which are
required for testing.

Additionally, add smc and cache commands to boot Zephyr on the A53.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
5 months agoMerge patch series "drivers: bootcount: Add support for ANY filesystem"
Tom Rini [Tue, 16 Jul 2024 18:46:39 +0000 (12:46 -0600)]
Merge patch series "drivers: bootcount: Add support for ANY filesystem"

Vasileios Amoiridis <vassilisamir@gmail.com> says:

This patch adds support to save the bootcount variable in a file located in
FAT filesystem. Up to now, there was support only for EXT filesystem.

5 months agodrivers: bootcount: Fix typo in documentation
Vasileios Amoiridis [Fri, 28 Jun 2024 17:35:43 +0000 (19:35 +0200)]
drivers: bootcount: Fix typo in documentation

The bootcount documentation was using "unattended" while it probably
intending to say "unintended"

Signed-off-by: Vasileios Amoiridis <vasileios.amoiridis@cern.ch>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
5 months agodoc: api: bootcount: Convert to rST documentation
Vasileios Amoiridis [Fri, 28 Jun 2024 17:35:42 +0000 (19:35 +0200)]
doc: api: bootcount: Convert to rST documentation

Move to the new documentation style with rST formatting.

Signed-off-by: Vasileios Amoiridis <vasileios.amoiridis@cern.ch>
5 months agodrivers: bootcount: Add support for ANY filesystem
Vasileios Amoiridis [Fri, 28 Jun 2024 17:35:41 +0000 (19:35 +0200)]
drivers: bootcount: Add support for ANY filesystem

Add support to save boot count variable in ANY filesystem. Tested with
FAT and EXT.

Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Philip Oberfichtner <pro@denx.de>
Signed-off-by: Vasileios Amoiridis <vasileios.amoiridis@cern.ch>
5 months agofirmware: psci: register PSCI power domains to stub driver
Neil Armstrong [Fri, 28 Jun 2024 09:54:47 +0000 (11:54 +0200)]
firmware: psci: register PSCI power domains to stub driver

On some SoCs, like Qualcomm SoCs, the PSCI cluster power domain
is used by system-wide firmware interfaces to make sure none
of the CPUs are suspended before submitting requests.

While on U-boot we only use the first core and we never
suspend it, the Device Tree still references it and blocks
those nodes to be probed.

Simply bind the PSCI power-domain subnoded to a stub power
domain driver in order to solve the runtime dependencies.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
5 months agoMerge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi
Tom Rini [Tue, 16 Jul 2024 16:20:14 +0000 (10:20 -0600)]
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi

Nothing really major here, some rework of the SPL PMIC drivers, adding
support for the AXP717 on the way, which is showing up on newer boards
now, most prominently some Anbernic handheld gaming devices.  The rest
is enabling Ethernet and SPI boot on the Allwinner V3s SoC, plus two
fixes.  This also updates the "traditional U-Boot" DTs to that of kernel
v6.9.  I will look into upgrading some SoCs to dts/upstream in the
coming cycle, though this will not cover all SoCs for now, as we carry
some non-mainline fix to improve compatibility with older kernels. Will
see how it goes, but for now we stick with the "old way".

The branch survived the gitlab CI run, and Linux boot testing on some
selected boards.

5 months agospi: sunxi: drop max_hz handling
Michael Walle [Fri, 12 Jul 2024 17:14:56 +0000 (19:14 +0200)]
spi: sunxi: drop max_hz handling

The driver is trying to read the "spi-max-frequency" property of the
*controller* driver node. There is no such property. The
"spi-max-frequency" property belongs to the SPI devices on the bus.

Right now, the driver will always fall back to the default value of 1MHz
and thus flash reads are very slow with just about 215kb/s.

In fact, the SPI uclass will already take care of everything and we just
have to clamp the frequency to the values the driver/hardware supports.
Thus, drop the whole max_hz handling.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
5 months agosunxi: spl: h616: fix booting from high MMC offset
Andre Przywara [Thu, 9 May 2024 23:13:16 +0000 (00:13 +0100)]
sunxi: spl: h616: fix booting from high MMC offset

The BootROM in the Allwinner H616 tries to load the initial boot code
from sector 16 (8KB) of an SD card or eMMC device, but also looks at
sector 512 (256KB). This helps with GPT formatted cards.
A "high" boot offset is also used on previous SoCs, but it's sector 256
(128KB) there instead.

Extend the existing offset calculation code to consider the different
sector offset when running on an H616 SoC. This allows to load U-Boot
on any H616 device when the SPL is not located at 8KB.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Ryan Walklin <ryan@testtoast.com>
5 months agosunxi: SPL SPI: add support for the V3s SoC
Michael Walle [Mon, 13 May 2024 23:43:19 +0000 (01:43 +0200)]
sunxi: SPL SPI: add support for the V3s SoC

The V3s is identical regarding register layout, clocks and resets to
the sun6i variants. Therefore, we can just add the MACH_SUN8I_V3S to
the sun6i compatible ones.

SPI boot was tested on a custom board with a Gigadevice GD25Q64 8MiB
SPI flash.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
5 months agonet: sun8i_emac: add support for the V3s
Michael Walle [Mon, 13 May 2024 20:56:09 +0000 (22:56 +0200)]
net: sun8i_emac: add support for the V3s

Add the compatible string for the emac found on the V3s SoC. The SoC
only supports the internal PHY. There are no (R)MII signals on any pins.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
5 months agoclk: sunxi: add EMAC and EPHY clocks and resets for the V3s SoC
Michael Walle [Mon, 13 May 2024 20:56:08 +0000 (22:56 +0200)]
clk: sunxi: add EMAC and EPHY clocks and resets for the V3s SoC

Add the clock gate registers as well as the reset register bits for the
EMAC and EPHY for the V3s. These are needed by the sun8i network driver.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
5 months agosunxi: dts: arm/arm64: update devicetree files from Linux-v6.9
Andre Przywara [Fri, 19 Apr 2024 16:59:52 +0000 (17:59 +0100)]
sunxi: dts: arm/arm64: update devicetree files from Linux-v6.9

Sync the devicetree files from the official Linux kernel tree, v6.9.
This is covering Allwinner SoCs with 32-bit and 64-bit ARM cores.

Besides some cosmectic changes, this adds S/PDIF, DMA, and thermal
support to the H616 .dtsi. Nothing that U-Boot needs for itself, but
helpful to pass on to kernels.
This also adds new devicetrees, for some LonganPi H616 board, and the
Remix Mini PC. The latter will get a defconfig next.

As before, this omits the non-backwards compatible changes to the R_INTC
controller, to remain compatible with older kernels.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 months agoMerge patch series "api: Remove duplicate newlines"
Tom Rini [Mon, 15 Jul 2024 18:28:22 +0000 (12:28 -0600)]
Merge patch series "api: Remove duplicate newlines"

This removes a number of duplicate newlines throughout the codebase.

5 months agoxtensa: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:36 +0000 (15:19 +0200)]
xtensa: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agox86: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:35 +0000 (15:19 +0200)]
x86: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agotools: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:34 +0000 (15:19 +0200)]
tools: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agotest: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:33 +0000 (15:19 +0200)]
test: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agosh: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:32 +0000 (15:19 +0200)]
sh: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoscripts: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:31 +0000 (15:19 +0200)]
scripts: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agosandbox: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:30 +0000 (15:19 +0200)]
sandbox: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoppc: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:29 +0000 (15:19 +0200)]
ppc: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agopost: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:28 +0000 (15:19 +0200)]
post: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agonios2: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:27 +0000 (15:19 +0200)]
nios2: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agonet: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:26 +0000 (15:19 +0200)]
net: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agomips: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:25 +0000 (15:19 +0200)]
mips: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agomicroblaze: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:24 +0000 (15:19 +0200)]
microblaze: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agom68k: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:23 +0000 (15:19 +0200)]
m68k: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agolib: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:22 +0000 (15:19 +0200)]
lib: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agofs: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:21 +0000 (15:19 +0200)]
fs: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoexamples: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:20 +0000 (15:19 +0200)]
examples: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoenv: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:19 +0000 (15:19 +0200)]
env: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agodisk: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:18 +0000 (15:19 +0200)]
disk: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agocommon: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:17 +0000 (15:19 +0200)]
common: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agocmd: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:16 +0000 (15:19 +0200)]
cmd: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoboot: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:15 +0000 (15:19 +0200)]
boot: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: sunxi: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:14 +0000 (15:19 +0200)]
arm: mach: sunxi: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: stm32: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:13 +0000 (15:19 +0200)]
arm: mach: stm32: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: socfpga: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:12 +0000 (15:19 +0200)]
arm: mach: socfpga: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: renesas: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:11 +0000 (15:19 +0200)]
arm: mach: renesas: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: marvell: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:10 +0000 (15:19 +0200)]
arm: mach: marvell: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: imx: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:09 +0000 (15:19 +0200)]
arm: mach: imx: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: exynos: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:08 +0000 (15:19 +0200)]
arm: mach: exynos: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: ti: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:07 +0000 (15:19 +0200)]
arm: mach: ti: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: at91: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:06 +0000 (15:19 +0200)]
arm: mach: at91: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:05 +0000 (15:19 +0200)]
arm: include: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: tegra: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:04 +0000 (15:19 +0200)]
arm: include: tegra: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: sunxi: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:03 +0000 (15:19 +0200)]
arm: include: sunxi: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: rockchip: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:02 +0000 (15:19 +0200)]
arm: include: rockchip: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: ti: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:01 +0000 (15:19 +0200)]
arm: include: ti: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: imx: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:00 +0000 (15:19 +0200)]
arm: include: imx: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: amlogic: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:59 +0000 (15:18 +0200)]
arm: include: amlogic: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: nxp: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:58 +0000 (15:18 +0200)]
arm: include: nxp: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: hisilicon: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:57 +0000 (15:18 +0200)]
arm: include: hisilicon: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: fsl: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:56 +0000 (15:18 +0200)]
arm: include: fsl: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: dts: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:55 +0000 (15:18 +0200)]
arm: dts: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: cpu: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:54 +0000 (15:18 +0200)]
arm: cpu: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarc: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:53 +0000 (15:18 +0200)]
arc: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoapi: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:52 +0000 (15:18 +0200)]
api: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agopower: pmic: sunxi: use generic AXP SPL driver for AXP305
Andre Przywara [Mon, 13 May 2024 23:47:09 +0000 (00:47 +0100)]
power: pmic: sunxi: use generic AXP SPL driver for AXP305

The generic AXP SPL driver implementation can cover all regulators we
need for the AXP305.

Add the descriptions for four of the six DC/DC regulators of the AXP305,
and enable that when CONFIG_AXP305_POWER is enabled. We won't need DCDC2
and DCDC3, but by using the position in the array for the index we keep
the code cleaner.
Also remove the old driver, and switch the Makefile to include the new,
generic driver.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 months agopower: pmic: sunxi: use generic AXP SPL driver for AXP313
Andre Przywara [Mon, 13 May 2024 23:46:59 +0000 (00:46 +0100)]
power: pmic: sunxi: use generic AXP SPL driver for AXP313

The generic AXP SPL driver implementation can cover all regulators we
need for the AXP313.

Add the descriptions for the three DC/DC regulators of the AXP313, and
enable that when CONFIG_AXP313_POWER is enabled. Also remove the old
driver, and switch the Makefile to include the new, generic version.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 months agopower: pmic: sunxi: add AXP717 SPL support
Andre Przywara [Thu, 9 May 2024 23:43:18 +0000 (00:43 +0100)]
power: pmic: sunxi: add AXP717 SPL support

On boards using the AXP717 PMIC, the DRAM rail is often not setup
correctly at reset time, so we have to program the PMIC very early in
the SPL, before running the DRAM initialisation.

Using the new generic AXP SPL driver, add the Kconfig options and
platform bits needed to support an AXP717 PMIC chip in I2C mode.
This allows to set up the correct voltage for the DRAM chips and the
CPU cores.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Ryan Walklin <ryan@testtoast.com>
5 months agopower: pmic: sunxi: introduce generic SPL AXP DC/DC driver
Andre Przywara [Mon, 13 May 2024 21:55:07 +0000 (22:55 +0100)]
power: pmic: sunxi: introduce generic SPL AXP DC/DC driver

So far we had a separate driver file for each AXP PMIC chip that we need
to support in the SPL. The code in there was largely similar, but
differed in many details.

Based on the idea of the DM AXP driver, introduce a data structure to
describe each regulator in a compact way. This is a simplified version
of the struct used in the DM driver, as we don't need to support the full
voltage range and not every regulator in the SPL.
For now we only support the DC/DC buck converters, since that's what we
need the SPL to configure, mostly. Also we get rid of the regulator name,
and hardcode the regulator number by its position in the array (first is
DCDC1, second is DCDC2, etc). We also drop support for the value table,
we ideally won't need that for the subset of regulators required.
At the end each regulator is described by a 10 bytes struct, so we avoid
blowing up the SPL footprint, but still can use generic code.

Each chip is supposed to be described separately, and protected by
ifdef's, to only build in the regulators needed for a particular board.
We also describe the bits to help identifying the AXP chip, and the
shutdown details in that section.

Add a generic driver, that exports axp_set_dcdc<x>() functions to set up
the buck converters. For now this just contains the bits for the (new)
AXP717, but it's not wired up anywhere yet.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 months agopower: pmic: sunxi: only build AXP drivers for SPL
Andre Przywara [Tue, 14 May 2024 00:12:34 +0000 (01:12 +0100)]
power: pmic: sunxi: only build AXP drivers for SPL

The axp<xxx>.c drivers are only used for the SPL, for U-Boot proper we
have a separate, DM compliant driver.
Mask the build instructions with CONFIG_SPL_BUILD, to avoid them being
build for U-Boot proper as well.

The AXP221 driver defines axp_get_sid(), which is used in the U-Boot
proper cpuinfo() code, and some old LCD code directly calls axp_set_eldo(),
so we keep that driver outside the new guards. This will be fixed properly
later.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
5 months agoMerge https://source.denx.de/u-boot/custodians/u-boot-marvell
Tom Rini [Mon, 15 Jul 2024 14:25:59 +0000 (08:25 -0600)]
Merge https://source.denx.de/u-boot/custodians/u-boot-marvell

- mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board
  (Tony)
- mvebu: Enable bootstd and other modernization for Synology DS414
  (Armada XP) board (Tony)

5 months agoMerge tag 'efi-2024-10-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Tom Rini [Mon, 15 Jul 2024 14:21:46 +0000 (08:21 -0600)]
Merge tag 'efi-2024-10-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi

Pull request efi-2024-10-rc1-2

Documentation:

* use current versions of certifi and urllib3 for building documentation
* add bootelf command documentation
* correct the description of the Goldfish RTC driver
* correct heading level of itest examples

UEFI:

* print device-tree in dtbdump.efi
* consider CONFIG_EFI_IGNORE_OSINDICATIONS in TestEfiCapsuleFirmwareRaw
* correct cmd_capsule_esl_gen invocation in scripts/Makefile.lib
* use capsule CRT instead of ESL file when building capsules

Others:

* let ENV_IS_IN_EXT4 enable SYS_MMC_ENV_DEV
* check if CONFIG_SYS_MMC_ENV_DEV is defined in mmc_get_env_dev

5 months agoarm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP...
Tony Dinh [Mon, 8 Jul 2024 04:39:03 +0000 (21:39 -0700)]
arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

- Switch to standard boot (in include/configs/ds414.h and
configs/ds414_defconfig)
- Implement board_late_init() to ensure successful enumeration
of USB3 devices
- Remove unnecessary checkboard()
- Updated IDENT_STRING to indicate this u-boot supports both Synology
DS414 and DS214+ boards
- Add SYS_THUMB_BUILD to reduce binary size
- Add NET_RANDOM_ETHADDR
- Add CONFIG_LBA48 and CONFIG_SYS_64BIT_LBA to support >2TB HDD/SDD

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Phil Sutter <phil@nwl.cc>
5 months agoarm: dts: mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board
Tony Dinh [Wed, 22 May 2024 21:51:59 +0000 (14:51 -0700)]
arm: dts: mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board

Enable OF_UPSTREAM to use upstream DT and add marvell/ prefix to the
DEFAULT_DEVICE_TREE in DS116 defconfig. Remove current DTS in
arch/arm/dts/ directory.

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Stefan Roese <sr@denx.de>
5 months agopower: regulator: add AXP717 support
Andre Przywara [Thu, 9 May 2024 23:43:19 +0000 (00:43 +0100)]
power: regulator: add AXP717 support

The X-Powers AXP717 is a PMIC with four buck converters and a number
of LDOs, one of which is actually fixed (so not modelled here).

Add the compatible string and the respective regulator ranges to allow
drivers to adjust voltages.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Ryan Walklin <ryan@testtoast.com>
5 months agodoc: add bootelf command documentation
Maxim Moskalets [Sun, 30 Jun 2024 14:19:52 +0000 (17:19 +0300)]
doc: add bootelf command documentation

Signed-off-by: Maxim Moskalets <maximmosk4@gmail.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agosunxi: CONFIG_SYS_MMC_ENV_DEV undeclared
Heinrich Schuchardt [Sun, 31 Mar 2024 02:37:17 +0000 (04:37 +0200)]
sunxi: CONFIG_SYS_MMC_ENV_DEV undeclared

bananapi_m64_defconfig with CONFIG_ENV_IS_NOWHERE results in:

    board/sunxi/board.c: In function 'mmc_get_env_dev':
    board/sunxi/board.c:535:24: error:
    'CONFIG_SYS_MMC_ENV_DEV' undeclared (first use in this function)
      535 |                 return CONFIG_SYS_MMC_ENV_DEV;
          |                        ^~~~~~~~~~~~~~~~~~~~~~

Check if CONFIG_SYS_MMC_ENV_DEV is defined.

Fixes: 1011ebc72bda ("sunxi: Select environment MMC based on boot device")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agoenv: ENV_IS_IN_EXT4 should enable SYS_MMC_ENV_DEV
Heinrich Schuchardt [Sun, 31 Mar 2024 02:37:16 +0000 (04:37 +0200)]
env: ENV_IS_IN_EXT4 should enable SYS_MMC_ENV_DEV

When enabling CONFIG_ENV_IS_IN_EXT4 the environment might be stored on
an mmc device similar to the CONFIG_ENV_IS_IN_FAT case.

Fixes: 7d080773347c ("Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agodoc/sphinx/requirements.txt: Bump certifi and urllib3
Tom Rini [Mon, 8 Jul 2024 15:18:13 +0000 (09:18 -0600)]
doc/sphinx/requirements.txt: Bump certifi and urllib3

As reported by GitHub dependabot, both of these packages should be
bumped to their latest versions to address security issues (neither of
which has a CVE assigned).

Reported-by: GitHub dependabot
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 months agotest: test for ignore OsIndications
Ilias Apalodimas [Thu, 4 Jul 2024 14:43:16 +0000 (17:43 +0300)]
test: test for ignore OsIndications

The tests we currently have expect the firmware update to fail
when OsIndications is not set properly. However, we have a Kconfig flag
that explicitly ignores that variable. Adjust the tests accordingly

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
5 months agodoc: fix heading level of itest examples
Heinrich Schuchardt [Mon, 1 Jul 2024 20:42:42 +0000 (22:42 +0200)]
doc: fix heading level of itest examples

The Examples section should be on the second heading level.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 months agortc: fix the description of the Goldfish RTC driver
Heinrich Schuchardt [Mon, 1 Jul 2024 06:50:24 +0000 (08:50 +0200)]
rtc: fix the description of the Goldfish RTC driver

Replace the incorrect description that was copied from another driver.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agoefi_loader: print device-tree in dtbdump.efi
Heinrich Schuchardt [Sat, 29 Jun 2024 07:00:46 +0000 (09:00 +0200)]
efi_loader: print device-tree in dtbdump.efi

The dtbdump.efi binary can be used for testing the EFI_DT_FIXUP_PROTOCOL.
It provides a command to load a file and have it fixed up and a
command to save the resulting file.

Add a command 'dump' for displaying the device-tree.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
5 months agoscripts/Makefile.lib: EFI: Use capsule CRT instead of ESL file
Jonathan Humphreys [Thu, 13 Jun 2024 20:27:53 +0000 (15:27 -0500)]
scripts/Makefile.lib: EFI: Use capsule CRT instead of ESL file

The EFI Capsule ESL file (EFI Signature List File) used for authentication
is a binary generated from the EFI Capsule public key certificate. Instead
of including it in the source repo, automatically generate it from the
certificate file during the build process.

Currently, sandbox is the only device using this, so removed its ESL file
and set the (new) CONFIG_EFI_CAPSULE_CRT_FILE config to point to its public
key certificate.

Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
5 months agoscripts/Makefile.lib: fixes: Embed capsule public key in platform's dtb
Jonathan Humphreys [Thu, 13 Jun 2024 20:27:52 +0000 (15:27 -0500)]
scripts/Makefile.lib: fixes: Embed capsule public key in platform's dtb

The call to cmd_capsule_esl_gen was made directly rather than using the
"cmd,xxx" syntax.

Fixes: c7d4dfcd ("scripts/Makefile.lib: Embed capsule public key in
platform's dtb")

Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
5 months agoMerge https://source.denx.de/u-boot/custodians/u-boot-sh
Tom Rini [Sat, 13 Jul 2024 23:47:04 +0000 (17:47 -0600)]
Merge https://source.denx.de/u-boot/custodians/u-boot-sh

5 months agoMerge https://source.denx.de/u-boot/custodians/u-boot-usb
Tom Rini [Sat, 13 Jul 2024 23:46:54 +0000 (17:46 -0600)]
Merge https://source.denx.de/u-boot/custodians/u-boot-usb

5 months agodt-bindings: clock: rcar-gen2: Remove obsolete header files
Geert Uytterhoeven [Fri, 12 Jul 2024 13:17:38 +0000 (15:17 +0200)]
dt-bindings: clock: rcar-gen2: Remove obsolete header files

The clock definitions in <dt-bindings/clock/r8a779?-clock.h> were
superseded by those in <dt-bindings/clock/r8a779?-cpg-mssr.h> a long
time ago.

In fact U-Boot never used <dt-bindings/clock/r8a779?-clock.h>.
The unused headers, their replacements, and the corresponding
r8a779?.dtsi files were introduced together in U-Boot v2018.03.

Fixes: 16b6e4aa3732cee1 ("ARM: dts: rmobile: Import R8A7790 DTS from Linux 4.15-rc8")
Fixes: edd15fcffba31452 ("ARM: dts: rmobile: Import R8A7791 DTS from Linux 4.15-rc8")
Fixes: a3fb9ff3b33fae05 ("ARM: dts: rmobile: Import R8A7792 DTS from Linux 4.15-rc8")
Fixes: 92aa09959271d08f ("ARM: dts: rmobile: Import R8A7793 DTS from Linux 4.15-rc8")
Fixes: 9a26fc5a73fe2369 ("ARM: dts: rmobile: Import R8A7794 DTS from Linux 4.15-rc8")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoeth: asix88179: reset during probe
Caleb Connolly [Tue, 18 Jun 2024 14:57:57 +0000 (16:57 +0200)]
eth: asix88179: reset during probe

In some cases (consistently in my case with an embedded board) the
ethernet controller will time out on the first init but always succeed
after reset.

Let's reset the controller during probe so we always start with it in a
known state, and don't have wait for the first asix_wait_link() to
time out.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
5 months agoturris_1x: Normalize Kconfig usage
Tom Rini [Sat, 13 Jul 2024 14:38:38 +0000 (08:38 -0600)]
turris_1x: Normalize Kconfig usage

We don't set many options in the board Kconfig entry file but instead
use defconfigs, select in some cases on the target itself, or update the
"default" options of the main entries when needed. In this case we can
remove most of the board Kconfig entries and just add them to the
defconfig like other platforms.

Signed-off-by: Tom Rini <trini@konsulko.com>
5 months agoMerge patch series "Add Turris 1.x board"
Tom Rini [Fri, 12 Jul 2024 19:07:54 +0000 (13:07 -0600)]
Merge patch series "Add Turris 1.x board"

Marek Mojík <marek.mojik@nic.cz> says:

Hello all,

this is a continuation of previous work by Pali to add support for the
Turris 1.x board. As the patches were based on u-boot v2022.04, a
nontrivial rebasing was needed.

Some notes:
- Some options that are in SD defconfig are disabled in NOR defconfig
  because over the years u-boot grew and the old NOR defconfig will not
  fit into NOR memory.
- SD boot with RAM larger than 2GB will only allocate 2GB of RAM (We
  were not able to fix this yet)

5 months agopowerpc: Add support for CZ.NIC Turris 1.x routers
Pali Rohár [Thu, 6 Jun 2024 16:33:26 +0000 (18:33 +0200)]
powerpc: Add support for CZ.NIC Turris 1.x routers

Add support for CZ.NIC Turris 1.x routers.

CZ.NIC Turris 1.0 (RTRS01) and 1.1 (RTRS02) are open source routers, they
have dual-core PowerPC Freescale P2020 CPU and are based on reference
Freescale P2020RDB-PC-A board design.

Hardware design is fully open source, all firmware and hardware design
files are available at Turris project website:

https://docs.turris.cz/hw/turris-1x/turris-1x/
https://project.turris.cz/en/hardware.html

The P2020 BootROM can load U-Boot either from NOR flash or from SD card.
We add the new defconfigs, turris_1x_nor_defconfig, which configures
U-Boot for building the NOR image, and turris_1x_sdcard_defconfig, which
configures U-Boot for building an image suitable for SD card.

The defconfig for NOR image is stripped-down a - many config options
enabled in SD defconfig are disabled for NOR defconfig. This is because
U-Boot grew non-trivially in the last two years and it would not fit
into the space allocated for U-Boot in the NOR memory. In the future we
may try to use LTO to reduce the size of the code and enable more
options.

The design of CZ.NIC Turris 1.x routers is based on Freescale P2020RDB-PC-A
board, so some code from boards/freescale/p1_p2_rdb_pc is used and linked
into Turris 1.x board code.

Turris 1.x code in this patch uses modern distroboot and can boot Linux
kernel from various locations, including NAND, SD card, USB flash disks,
NVMe disks or SATA disks (connected to extra SATA/SCSI PCIe controllers).
Via distroboot is implemented also rescue NOR boot for factory recovery,
triggered by reset button, like on other existing Turris routers.

SD boot with RAM larger than 2GB will only allocate 2GB of RAM (We were
not able to fix this yet)

[ Because various CONFIG_ macros were migrated to Kconfig since the last
  time this worked on upstream U-Boot (in 2022), a non-trivial rebasing
  was needed and some issues were solved. ]

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agopowerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h
Marek Mojík [Thu, 6 Jun 2024 16:33:25 +0000 (18:33 +0200)]
powerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h

Use the CONFIG_IS_ENABLED() macro when checking for DM_SERIAL so that
CFG_SYS_NS16550_CLK is not defined as get_serial_clock() in SPL if SPL
does not have DM_SERIAL enabled.

Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>