]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
2 years agokm/ppc: migrate all mpc83xx to DM_I2C
Holger Brunck [Fri, 2 Dec 2022 17:22:42 +0000 (18:22 +0100)]
km/ppc: migrate all mpc83xx to DM_I2C

Enable DM_I2C and I2C mux to get rid of the usage of the legacy
i2c driver.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
2 years agoboard/km: remove obsolete ARCH_KIRKWOOD
Holger Brunck [Fri, 2 Dec 2022 17:22:41 +0000 (18:22 +0100)]
board/km: remove obsolete ARCH_KIRKWOOD

We already removed the support for these boards.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
2 years agoboard/km/secu: migrate to use environment text files
Holger Brunck [Fri, 2 Dec 2022 17:22:40 +0000 (18:22 +0100)]
board/km/secu: migrate to use environment text files

Instead of having these defines in a header file, move them to
a simple text file.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
2 years agoboard/km/cent2: migrate to environment text file
Holger Brunck [Fri, 2 Dec 2022 17:22:39 +0000 (18:22 +0100)]
board/km/cent2: migrate to environment text file

Use like the other boards a text file for the environment.
As this is the last user of keymile-common.h we can now remove this
file completely.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
2 years agokm/powerpc: migrate to env.txt file
Holger Brunck [Fri, 2 Dec 2022 17:22:38 +0000 (18:22 +0100)]
km/powerpc: migrate to env.txt file

Use already present common.env file and add a powerpc specific env
so that we can move all the environment defines to text files.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
2 years agoboard/km: move ls102xa boards to environment text files
Holger Brunck [Fri, 2 Dec 2022 17:22:37 +0000 (18:22 +0100)]
board/km: move ls102xa boards to environment text files

Create a common.env which we can use later on also for other boards.

Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
2 years agoconfigs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT
Patrick Delaunay [Wed, 7 Dec 2022 08:26:44 +0000 (09:26 +0100)]
configs: remove support of MTDIDS_DEFAULT/MTDPARTS_DEFAULT

Complete the migration of MTDPARTS_DEFAULT / MTDIDS_DEFAULT in Kconfig;
this patch removes the support of MTDIDS_DEFAULT / MTDPARTS_DEFAULT
in the configuration files (include/configs/*.h).

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2 years agoconfigs: SBx81LIFKW: move MTDPART_DEFAULT in defconfig
Patrick Delaunay [Wed, 7 Dec 2022 08:26:43 +0000 (09:26 +0100)]
configs: SBx81LIFKW: move MTDPART_DEFAULT in defconfig

Replace MTDPARTS_DEFAULT in the config include file by
CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2 years agoconfigs: SBx81LIFXCAT: move MTDPART_DEFAULT in defconfig
Patrick Delaunay [Wed, 7 Dec 2022 08:26:42 +0000 (09:26 +0100)]
configs: SBx81LIFXCAT: move MTDPART_DEFAULT in defconfig

Replace MTDPARTS_DEFAULT in the config include file by
CONFIG_MTDPARTS_DEFAULT in defconfig to complete the Kconfig migration.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2 years agoconfigs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig
Patrick Delaunay [Wed, 7 Dec 2022 08:26:41 +0000 (09:26 +0100)]
configs: x530: move MTDPART/MTDIDS_DEFAULT in defconfig

Replace MTDIDS_DEFAULT and MTDPARTS_DEFAULT in the config include file by
CONFIG_MTDIDS_DEFAULT and CONFIG_MTDPARTS_DEFAULT in defconfig to complete
the Kconfig migration.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2 years agoconfigs: am333x_guardian: move MTDIDS_DEFAULT in defconfif
Patrick Delaunay [Wed, 7 Dec 2022 08:26:40 +0000 (09:26 +0100)]
configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif

Replace MTDIDS_DEFAULT in config include file by CONFIG_MTDIDS_DEFAULT
in defonfig to complete the Kconfig migration

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2 years agoMakefile: link with --no-warn-rwx-segments
Tom Rini [Wed, 7 Dec 2022 20:49:43 +0000 (15:49 -0500)]
Makefile: link with --no-warn-rwx-segments

We borrow from the Linux Kernel 0d362be5b142 ("Makefile: link with -z
noexecstack --no-warn-rwx-segments") here to disable the RWX segment
linking warnings. We do not also bring in -z noexecstack as that
requires auditing and using ".note.GNU-stack" on assembly functions
which do need this feature. Further, we now introduce KBUILD_EFILDFLAGS
so that we can also pass --no-warn-rwx-segments when linking EFI
applications, and those do explicitly pass -z execstack.

Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2 years agoMerge branch '2022-12-12-assorted-improvements' into next
Tom Rini [Mon, 12 Dec 2022 21:32:37 +0000 (16:32 -0500)]
Merge branch '2022-12-12-assorted-improvements' into next

- A number of PXE / sysboot related improvements
- Nuvoton updates
- Small updates to omap4, ARCH_OMAP2PLUS itself, mediatek
  pcie_designware.

2 years agoconfigs: set CONFIG_LMB_MAX_REGIONS=64 for all mt798[16] boards
Daniel Golle [Tue, 29 Nov 2022 19:37:59 +0000 (19:37 +0000)]
configs: set CONFIG_LMB_MAX_REGIONS=64 for all mt798[16] boards

With recently added wireless offloading features in Linux [1] the
number of reserved memory regions with MediaTek SoCs supporting
offloading wireless-to-Ethernet traffic grew beyond the default (8)
which breaks booting Linux:
ERROR: Failed to allocate 0xa6ac bytes below 0xc0000000.
device tree - allocation error
FDT creation failed!
resetting ...

Raise CONFIG_LMB_MAX_REGIONS to 64 like it is already done for other
SoCs which require a larger number of reserved memory regions, eg.
exynos78x0 based a3y17lte, a5y17lte and a7y17lte or dragonboard845c.

[1]: https://lore.kernel.org/netdev/e3489a697b404bd47447190cd2e5adf090ae61c2.1667687249.git.lorenzo@kernel.org/
     https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=eed4f1ddad8c5ad7596b229caec8bd7b477b81ee

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2 years agoARM: dts: npcm7xx: add npcm750 gpio node compatible name
Jim Liu [Mon, 28 Nov 2022 02:34:47 +0000 (10:34 +0800)]
ARM: dts: npcm7xx: add npcm750 gpio node compatible name

Add npcm750 gpio node compatible name

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
2 years agoARM: dts: npcm8xx: add npcm845 function node
Jim Liu [Mon, 28 Nov 2022 02:32:44 +0000 (10:32 +0800)]
ARM: dts: npcm8xx: add npcm845 function node

1. add usb phy
2. add ehci ohci sdhci
3. add pinctrl node
4. add fiu node

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
2 years agoARM: config: enable function for nuvoton npcm845 bmc
Jim Liu [Mon, 28 Nov 2022 02:32:43 +0000 (10:32 +0800)]
ARM: config: enable function for nuvoton npcm845 bmc

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
2 years agoomap4: make musb probeable by simple bus
Andreas Kemnade [Sat, 26 Nov 2022 22:30:09 +0000 (23:30 +0100)]
omap4: make musb probeable by simple bus

Like other peripherals important for booting,
do not rely on ti-sysc compatibility alone

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
2 years agodistro/pxeboot: Handle prompt variable
Manuel Traut [Fri, 18 Nov 2022 08:00:27 +0000 (09:00 +0100)]
distro/pxeboot: Handle prompt variable

Regarding the documentation found here:
https://github.com/u-boot/u-boot/blob/master/common/menu.c#L347

If both timeout and prompt is set to 0 the default entry shall
be booted immediately. However the current behaviour is that
the prompt is shown (tested with distroboot) until the user
selects an entry (no timeout).

This change implements a behaviour as documented. It was tested
with distroboot.

Signed-off-by: Manuel Traut <manuel.traut@mt.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agocmd: pxe: use strdup to copy config
Patrick Delaunay [Fri, 28 Oct 2022 09:01:20 +0000 (11:01 +0200)]
cmd: pxe: use strdup to copy config

Replace malloc and strcpy by strdup in
function parse_label_kernel.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
2 years agocmd: pxe: support INITRD and FDT selection with FIT
Patrick Delaunay [Fri, 28 Oct 2022 09:01:19 +0000 (11:01 +0200)]
cmd: pxe: support INITRD and FDT selection with FIT

Since the commit d5ba6188dfbf ("cmd: pxe_utils: Check fdtcontroladdr
in label_boot") the FDT or the FDTDIR label is required in extlinux.conf
and the fallback done by bootm command when only the device tree present
in this command parameters is no more performed when FIT is used for
kernel.

When the label FDT or FDTDIR are absent or if the device tree file is
absent, the PXE command in U-Boot uses the default U-Boot device tree
selected by fdtcontroladdr = gd->fdt_blob, it is the "Scenario 3".

With this scenario the bootm FIP fallback is no more possible with
the extlinux.conf when only "kernel" label is present and is a FIP:

  kernel <path>#<conf>[#<extra-conf[#...]]

As the U-Boot FDT is always provided in the third bootm argument,
the device tree found in FIP is not used as fallback, it was done
previously in boot_get_fdt().

This patch adds a new field kernel_label to save the full kernel label.
The FDT bootm parameters use the kernel address (to avoid to load a
second time the same FIP) and the config when this full label is reused
for "fdt" or "initrd" label.

This FIP support in extlinux.conf is restored when the "FDT" label
can be found and select the same FIP (identical file and configuration):

  kernel <path>#<conf>[#<extra-conf[#...]]
  fdt <path>#<conf>[#<extra-conf[#...]]

The patch add also this possibility for initrd.

  initrd <path>#<conf>[#<extra-conf[#...]]

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
2 years agocmd: pxe: reorder kernel treatment in label_boot
Patrick Delaunay [Fri, 28 Oct 2022 09:01:18 +0000 (11:01 +0200)]
cmd: pxe: reorder kernel treatment in label_boot

Reorder kernel treatment in label_boot at the beginning of the function.

This patch doesn't change the pxe command behavior, it is only a
preliminary step for next patch, build kernel_addr before parsing
the label initrd and fdt to build the next bootm arguments.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
2 years agodrivers: pci: pcie_dw_common: add upper-limit to iATU
Ben Dooks [Thu, 20 Oct 2022 15:51:09 +0000 (16:51 +0100)]
drivers: pci: pcie_dw_common: add upper-limit to iATU

The 4.6 spec added an upper 32bits to the ATU limit, and since this
driver is already assuming the unrolled feature added in the 4.8
specification this really should be set.

This is causing a bug with testing against the QEMU model as it
defaults the viewports to fully open and not setting this causes
the config viewport to become most of memory (obviously stopping
the emulated system working correctly)

Signed-off-by: Ben Dooks <ben.dooks@sifive.com>
2 years agoarm: mach-omap2: Move common image process functions out of board files
Andrew Davis [Thu, 20 Oct 2022 17:12:19 +0000 (12:12 -0500)]
arm: mach-omap2: Move common image process functions out of board files

The functions board_fit_image_post_process() and board_tee_image_process()
are not actually board specific (despite their names). Any board using the
OMAP2 family can use these functions. Move them to boot-common.c.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2 years agoMerge branch '2022-12-09-platform-updates' into next
Tom Rini [Fri, 9 Dec 2022 22:50:51 +0000 (17:50 -0500)]
Merge branch '2022-12-09-platform-updates' into next

- Assorted TI platform updates
- Add DM_RTC callback functions, and a related x86 clean-up.

2 years agoconfigs: enable OSPI related configs in AM62x
Dhruva Gole [Thu, 27 Oct 2022 14:53:11 +0000 (20:23 +0530)]
configs: enable OSPI related configs in AM62x

Add am62x_evm_r5_defconfig for OSPI Flash support in R5 SPL
and am62x_evm_a53_defconfig for A53 SPL and U-Boot
support.
These configs enable OSPI Flash boot functionality in the board as well
as the usage of OSPI Flash from U-Boot.

Signed-off-by: Dhruva Gole <d-gole@ti.com>
2 years agoarm: dts: Add OSPI support for AM62-SK
Dhruva Gole [Thu, 27 Oct 2022 14:53:10 +0000 (20:23 +0530)]
arm: dts: Add OSPI support for AM62-SK

Add OSPI Support such that this device can boot up using OSPI Flash.
Also can use the flash for other purposes if required from uboot.

Signed-off-by: Dhruva Gole <d-gole@ti.com>
2 years agoarm: dts: k3-am62x: sync dt with linux kernel
Dhruva Gole [Thu, 27 Oct 2022 14:53:09 +0000 (20:23 +0530)]
arm: dts: k3-am62x: sync dt with linux kernel

Sync the DT Files with linux kernel (tag v6.0.3)

Signed-off-by: Dhruva Gole <d-gole@ti.com>
2 years agoconfigs: introduce configs for the am62a
Bryan Brattlof [Fri, 4 Nov 2022 00:13:58 +0000 (19:13 -0500)]
configs: introduce configs for the am62a

Introduce the minimum configs, only SD-MMC and UART boot related
settings, to serve as a good starting point for the am62a as we add more
functionality.

Signed-off-by: Bryan Brattlof <bb@ti.com>
[trini: Disable CONFIG_NET as it's not used, in both platforms]
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: ti: introduce the basic files needed to support the am62a
Bryan Brattlof [Fri, 4 Nov 2022 00:13:57 +0000 (19:13 -0500)]
board: ti: introduce the basic files needed to support the am62a

Introduce the bare minimum SD and UART support for the am62a sk.

Signed-off-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2 years agoarm: mach-k3: am62a: introduce auto-generated SoC data
Bryan Brattlof [Fri, 4 Nov 2022 00:13:56 +0000 (19:13 -0500)]
arm: mach-k3: am62a: introduce auto-generated SoC data

Introduce the auto-generated clock tree and power domain data needed to
attach the am62a into the power-domain and clock frameworks of uboot

Signed-off-by: Bryan Brattlof <bb@ti.com>
2 years agoarm: mach-k3: introduce basic files to support the am62a
Bryan Brattlof [Fri, 4 Nov 2022 00:13:55 +0000 (19:13 -0500)]
arm: mach-k3: introduce basic files to support the am62a

Introduce the mach-k3 files needed to properly boot TI's am62a SoC
family of devices

Signed-off-by: Bryan Brattlof <bb@ti.com>
2 years agosoc: ti: k3-socinfo: add am62a SoC entry
Bryan Brattlof [Fri, 4 Nov 2022 00:13:54 +0000 (19:13 -0500)]
soc: ti: k3-socinfo: add am62a SoC entry

Add identification support for TI's am62ax family of SoCs

Signed-off-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2 years agoram: k3-ddrss: add am62a controller support
Bryan Brattlof [Fri, 4 Nov 2022 00:13:53 +0000 (19:13 -0500)]
ram: k3-ddrss: add am62a controller support

TI's am62a family of SoCs uses a new 32bit DDR controller that shares
much of the same functionality with the existing am64 and j721e
controllers.

Select this controller by default when u-boot is build for the am62a

Signed-off-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2 years agoarm: dts: introduce am62a7 u-boot dtbs
Bryan Brattlof [Fri, 4 Nov 2022 00:13:52 +0000 (19:13 -0500)]
arm: dts: introduce am62a7 u-boot dtbs

Introduce the base dts files needed for u-boot or to augment the
linux dtbs for use in the u-boot-spl and u-boot binaries

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Bryan Brattlof <bb@ti.com>
2 years agoarm: dts: introduce am62a7 dtbs from linux kernel
Bryan Brattlof [Fri, 4 Nov 2022 00:13:51 +0000 (19:13 -0500)]
arm: dts: introduce am62a7 dtbs from linux kernel

Introduce the basic am62a7 SoC dtbs from the v6.1-rc3 tag of the linux
kernel along with the new am62a specific pinmux definition that we will
use to generate the dtbs for the u-boot-spl and u-boot binaries

Co-developed-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Bryan Brattlof <bb@ti.com>
2 years agoram: k3-ddrss: add auto-generated macros for am62a support
Bryan Brattlof [Mon, 24 Oct 2022 21:53:28 +0000 (16:53 -0500)]
ram: k3-ddrss: add auto-generated macros for am62a support

The new 32bit DDR controller for TI's am62a family of SoCs shares much
of the same functionality with the existing 16bit (am64) and 32bit
(j721e) controllers, so this patch reorganizes the existing
auto-generated macros for the 16bit and 32bit controllers to make room
for the macros for the am62a's controller

This patch consists mostly of header/macro renames and additions with a
new Kconfig option (K3_AM62A_DDRSS) allowing us to select these new
macros during compilation.

Signed-off-by: Bryan Brattlof <bb@ti.com>
2 years agortc: Add fallbacks for dm functions
Sean Anderson [Tue, 22 Nov 2022 17:54:52 +0000 (12:54 -0500)]
rtc: Add fallbacks for dm functions

This adds fallbacks for the various dm_rtc_* functions. This allows
common code to use these functions without ifdefs.

Fixes: c8ce7ba87d1 ("misc: Add support for nvmem cells")
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
2 years agox86: fsp: Only compile fsp_save_s3_stack if (SPL_)DM_RTC is enabled
Sean Anderson [Tue, 22 Nov 2022 17:54:51 +0000 (12:54 -0500)]
x86: fsp: Only compile fsp_save_s3_stack if (SPL_)DM_RTC is enabled

This function calls rtc_write32, which has a different signature
depending on if (SPL_)DM_RTC is enabled or not. This could result in a
mismatch in SPL if DM_RTC was enabled but SPL_DM_RTC, as the non-DM
declaration would still be used in SPL even though the implementation
would be for non-DM_RTC. We are switching to the correct definitions in
the next commit, so this will become a compilation error. Since
fsp_save_s3_stack is not called from SPL, avoid compiling it if
(SPL_)DM_RTC is disabled.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
2 years agoNokia RX-51: Use ENTRY/ENDPROC for save_boot_params
Pali Rohár [Wed, 23 Nov 2022 23:45:00 +0000 (00:45 +0100)]
Nokia RX-51: Use ENTRY/ENDPROC for save_boot_params

ENTRY/ENDPROC macros from linux/linkage.h will make code more readable and
also will properly mark assembly symbol in ELF binary as function symbol.

Signed-off-by: Pali Rohár <pali@kernel.org>
2 years agoMerge branch '2022-12-08-assorted-tooling-and-fs-fixes' into next
Tom Rini [Thu, 8 Dec 2022 20:12:14 +0000 (15:12 -0500)]
Merge branch '2022-12-08-assorted-tooling-and-fs-fixes' into next

- Assorted fixes for squashfs, ext4, a number of host tools (including
  reworking u-boot-initial-env) and then a few unrelated code cleanups /
  fixes.

2 years agoata: ahci-pci: Replace magic constant by macro
Pali Rohár [Sun, 4 Dec 2022 12:31:08 +0000 (13:31 +0100)]
ata: ahci-pci: Replace magic constant by macro

Replace 0x1b21 by macro PCI_VENDOR_ID_ASMEDIA with the same value.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agofs/squashfs: use lldiv function for math
Kasper Revsbech [Thu, 1 Dec 2022 15:30:32 +0000 (16:30 +0100)]
fs/squashfs: use lldiv function for math

When compling for x86:
u-boot/fs/squashfs/sqfs.c:90: undefined reference to `__udivmoddi4'

Signed-off-by: Kasper Revsbech <kasper.revsbech.ext@siemensgamesa.com>
Tested-by: Sean Nyekjaer <sean@geanix.com>
2 years agou-boot-initial-env: rework make target
Max Krummenacher [Mon, 28 Nov 2022 08:41:22 +0000 (09:41 +0100)]
u-boot-initial-env: rework make target

With LTO enabled the U-Boot initial environment is no longer stored
in an easy accessible section in env/common.o. I.e. the section name
changes from build to build, its content maybe compressed and it is
annotated with additional data.

Drop trying to read the initial env with elf tools from the compiler
specific object file in favour of adding and using a host tool with
the only functionality of printing the initial env to stdout.

See also:
https://lore.kernel.org/all/927b122e-1f62-e790-f5ca-30bae4332c77@foss.st.com/

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agofirmware: scmi: use protocol node name to bind the scmi regulator driver
Patrick Delaunay [Fri, 25 Nov 2022 11:56:29 +0000 (12:56 +0100)]
firmware: scmi: use protocol node name to bind the scmi regulator driver

In scmi firmware driver, it is better to bind the scmi protocol driver
"scmi_voltage_domain" with the node name of the protocol 17 and not
the sub-node named "regulator", because is a fixed string which doesn't
provide information and because it is not aligned with the other scmi
protocol nodes.

For example on stm32mp135f-dk board with device tree in stm32mp131.dtsi

scmi: scmi {
compatible = "linaro,scmi-optee";
#address-cells = <1>;
#size-cells = <0>;
linaro,optee-channel-id = <0>;
shmem = <&scmi_shm>;
scmi_clk: protocol@14 {
reg = <0x14>;
#clock-cells = <1>;
};
scmi_reset: protocol@16 {
reg = <0x16>;
#reset-cells = <1>;
};
scmi_voltd: protocol@17 {
reg = <0x17>;
scmi_regu: regulators {
#address-cells = <1>;
#size-cells = <0>;
scmi_reg11: voltd-reg11 {
reg = <VOLTD_SCMI_REG11>;
regulator-name = "reg11";
};
scmi_reg18: voltd-reg18 {
reg = <VOLTD_SCMI_REG18>;
regulator-name = "reg18";
};
scmi_usb33: voltd-usb33 {
reg = <VOLTD_SCMI_USB33>;
regulator-name = "usb33";
};
};
};
};

Before the patch:

> dm tree

 scmi_agent    0  [ + ]   scmi-over-optee       |-- scmi
 clk           1  [ + ]   scmi_clk              |   |-- protocol@14
 ...
 reset         1  [   ]   scmi_reset_domain     |   |-- protocol@16
 nop           2  [ + ]   scmi_voltage_domain   |   `-- regulators
 regulator     0  [ + ]   scmi_regulator        |       |-- voltd-reg11
 regulator     1  [ + ]   scmi_regulator        |       |-- voltd-reg18
 regulator     2  [ + ]   scmi_regulator        |       |-- voltd-usb33
 ...

after the patch:

> dm tree

 scmi_agent    0  [ + ]   scmi-over-optee       |-- scmi
 clk           1  [ + ]   scmi_clk              |   |-- protocol@14
 ...
 reset         1  [   ]   scmi_reset_domain     |   |-- protocol@16
 nop           2  [ + ]   scmi_voltage_domain   |   `-- protocol@17
 regulator     0  [ + ]   scmi_regulator        |       |-- voltd-reg11
 regulator     1  [ + ]   scmi_regulator        |       |-- voltd-reg18
 regulator     2  [ + ]   scmi_regulator        |       |-- voltd-usb33
 ...

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2 years agotools: mkimage: add new image type "fdt_legacy"
Marc Kleine-Budde [Wed, 23 Nov 2022 11:55:33 +0000 (12:55 +0100)]
tools: mkimage: add new image type "fdt_legacy"

If the user select the image type "flat_dt" a FIT image will be build.
This breaks the legacy use case of putting a Flat Device Tree into a
legacy u-boot image.

Add a new image type "fdt_legacy" to build a legacy u-boot image
with a "flat_dt" type.

Link: https://lore.kernel.org/all/20221028155205.ojw6tcso2fofgnhm@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
2 years agotools: mkimage: don't print error message "Success" in case of failure
Marc Kleine-Budde [Wed, 23 Nov 2022 11:55:32 +0000 (12:55 +0100)]
tools: mkimage: don't print error message "Success" in case of failure

In case there's no struct image_type_params::set_header callback, no
"errno" will be set. Don't fail with an error message, followed by
"Success". Remove the printing of the human readable "errno" value.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agotools: fdtgrep: Fix handle leak
Mikhail Ilin [Wed, 23 Nov 2022 11:31:03 +0000 (14:31 +0300)]
tools: fdtgrep: Fix handle leak

The handle "fd" was created in fdtgrep.c:708 by calling the
 "open" function and is lost in fdtgrep.c:716 and fdtgrep.c:723.
 Close file descriptor 'fd' before exiting with an error from function
 utilfdt_read_err_len(const char *filename, char **buffp, off_t *len).

Fixes: 1043d0a0296a ("fdt: Add fdtgrep tool")
Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agotools: mkimage: Fix nullptr at strchr()
Mikhail Ilin [Wed, 23 Nov 2022 09:39:36 +0000 (12:39 +0300)]
tools: mkimage: Fix nullptr at strchr()

The copy_datafile(ifd, params.datafile) function has been
 implemented to copy data by reducing the number of lines in the main
 function.

Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
2 years agofs: ext4: Fix free(NULL)
Mikhail Ilin [Tue, 22 Nov 2022 08:00:55 +0000 (11:00 +0300)]
fs: ext4: Fix free(NULL)

The 'depth_dirname', 'ptr', 'parent_inode' and 'first_inode' pointers
may be null. Thus, it is necessary to check them before using free() to
avoid free(NULL) cases.

Fixes: 934b14f2bb30 ("ext4: free allocations by parse_path()")
Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
2 years agotool: ifwitool: Fix buffer overflow
Mikhail Ilin [Fri, 18 Nov 2022 11:50:24 +0000 (14:50 +0300)]
tool: ifwitool: Fix buffer overflow

An incorrect 1st parameter is passed to the fix_member()
 function. Should use a pointer to the beginning of the parent structure
 (bpdt or subpart_dir, because are boxed), not to their fields. Otherwise,
 this leads to an overrun of the structure boundary, since in the
 fix_member() function, an 'offset' is made, relative to the 1st argument,
 which itself is an 'offset' from the beginning of the structure.

Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agotool: ifwitool: The function localtime() can return NULL.
Mikhail Ilin [Fri, 18 Nov 2022 08:50:02 +0000 (11:50 +0300)]
tool: ifwitool: The function localtime() can return NULL.

This will cause the local_time pointer is passed as the 4th argument
 to function strftime() to also point to NULL. This result in a
 segmentation fault. Thus, it's necessary to add a check of the local_time
 pointer to NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agotools: env: fw_env: Fix unused-result warning
Jaehoon Chung [Thu, 13 Oct 2022 08:41:21 +0000 (17:41 +0900)]
tools: env: fw_env: Fix unused-result warning

Fix unused-result warning about fread.

tools/env/fw_env.c: In function ‘find_nvmem_device’:
tools/env/fw_env.c:1751:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
 1751 |   fread(buf, sizeof(buf), 1, fp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
2 years agoMerge branch '2022-12-07-Kconfig-migrations' into next
Tom Rini [Wed, 7 Dec 2022 23:08:01 +0000 (18:08 -0500)]
Merge branch '2022-12-07-Kconfig-migrations' into next

- Import another batch of Kconfig migrations and in this case, also
  legacy code removal.

2 years agonet: Remove eth_legacy.c
Tom Rini [Sun, 27 Nov 2022 15:25:36 +0000 (10:25 -0500)]
net: Remove eth_legacy.c

As there are no more non-DM_ETH cases for networking, remove this legacy
file and update the Makefile to match current usage.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoqe: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:35 +0000 (10:25 -0500)]
qe: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: gadget: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:34 +0000 (10:25 -0500)]
usb: gadget: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: eth: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:33 +0000 (10:25 -0500)]
usb: eth: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code fro usb_ether itself.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: eth: smsc95xx: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:32 +0000 (10:25 -0500)]
usb: eth: smsc95xx: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: eth: r8152: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:31 +0000 (10:25 -0500)]
usb: eth: r8152: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: eth: msc7830: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:30 +0000 (10:25 -0500)]
usb: eth: msc7830: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: eth: asix88179: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:29 +0000 (10:25 -0500)]
usb: eth: asix88179: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agousb: eth: asix: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:28 +0000 (10:25 -0500)]
usb: eth: asix: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: keystone_net: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:27 +0000 (10:25 -0500)]
net: keystone_net: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: cpsw: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:26 +0000 (10:25 -0500)]
net: cpsw: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: sunxi_emac: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:25 +0000 (10:25 -0500)]
net: sunxi_emac: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: smc911x: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:24 +0000 (10:25 -0500)]
net: smc911x: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: sh_eth: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:23 +0000 (10:25 -0500)]
net: sh_eth: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: rtl8169: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:22 +0000 (10:25 -0500)]
net: rtl8169: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: rtl8139: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:21 +0000 (10:25 -0500)]
net: rtl8139: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: phy: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:20 +0000 (10:25 -0500)]
net: phy: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: pcnet: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:19 +0000 (10:25 -0500)]
net: pcnet: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: netconsole: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:18 +0000 (10:25 -0500)]
net: netconsole: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: mvgbe: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:17 +0000 (10:25 -0500)]
net: mvgbe: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: mcfmii: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:16 +0000 (10:25 -0500)]
net: mcfmii: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: macb: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:15 +0000 (10:25 -0500)]
net: macb: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: ldpaa_eth: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:14 +0000 (10:25 -0500)]
net: ldpaa_eth: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: fsl-mc: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:13 +0000 (10:25 -0500)]
net: fsl-mc: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: fec_mxc: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:12 +0000 (10:25 -0500)]
net: fec_mxc: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: ethoc: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:11 +0000 (10:25 -0500)]
net: ethoc: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: eepro100: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:10 +0000 (10:25 -0500)]
net: eepro100: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: e1000: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:09 +0000 (10:25 -0500)]
net: e1000: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: dm9000x: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:08 +0000 (10:25 -0500)]
net: dm9000x: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: designware: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:07 +0000 (10:25 -0500)]
net: designware: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: dc2114x: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:06 +0000 (10:25 -0500)]
net: dc2114x: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: fm: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:05 +0000 (10:25 -0500)]
net: fm: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: tsec: Remove non-DM_ETH support code
Tom Rini [Sun, 27 Nov 2022 15:25:04 +0000 (10:25 -0500)]
net: tsec: Remove non-DM_ETH support code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.  Doing this removes some board support code
which was also unused. Finally, this removes some CONFIG symbols that
otherwise needed to be migrated to Kconfig, but were unused in code now.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoglobal: Remove extraneous DM_ETH imply/select
Tom Rini [Sun, 27 Nov 2022 15:25:03 +0000 (10:25 -0500)]
global: Remove extraneous DM_ETH imply/select

We only need to enable DM_ETH if we have a networking driver. All
networking drivers depend on DM_ETH being enabled, and their selection
ensures DM_ETH will be enabled.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agonet: Remove extraneous dependencies
Tom Rini [Sun, 27 Nov 2022 15:25:02 +0000 (10:25 -0500)]
net: Remove extraneous dependencies

With DM_ETH being required now for all drivers, we don't need this
listed on individual drivers as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agochromebook_samus_tpl: Disable SPL networking
Tom Rini [Sun, 27 Nov 2022 15:25:00 +0000 (10:25 -0500)]
chromebook_samus_tpl: Disable SPL networking

We don't appear to actually use networking in SPL here, disable it.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agotopic_miami*: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:59 +0000 (10:24 -0500)]
topic_miami*: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Mike Looijmans <mike.looijmans@topic.nl>
2 years agopinecube: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:58 +0000 (10:24 -0500)]
pinecube: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoLicheePi_Zero: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:57 +0000 (10:24 -0500)]
LicheePi_Zero: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Icenowy Zheng <icenowy@aosc.xyz>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoxenguest_arm64: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:56 +0000 (10:24 -0500)]
xenguest_arm64: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoMerge branch '2022-12-06-update-to-gcc-12-clang-14' into next
Tom Rini [Tue, 6 Dec 2022 20:47:59 +0000 (15:47 -0500)]
Merge branch '2022-12-06-update-to-gcc-12-clang-14' into next

- Bring in changes to default CI to using gcc-12.2 and clang-14 for
  building.

2 years agoCI: Update to gcc-12.2
Tom Rini [Tue, 22 Nov 2022 17:31:58 +0000 (12:31 -0500)]
CI: Update to gcc-12.2

- Update to gcc-12.2, and cherry-pick a fix in grub for risc-v

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agopogo_v4: Disable LTO
Tom Rini [Tue, 22 Nov 2022 17:31:57 +0000 (12:31 -0500)]
pogo_v4: Disable LTO

With gcc-12.2 we now get:
lib/zlib/inflate.c:360: undefined reference to `__gnu_thumb1_case_si'
when building this platform. This seems like some odd problem with LTO
and Thumb, but since the platform continues to link, I assume it's
within size constraints, so lets just disable LTO for now.

Cc: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agoarm: Use the WEAK assembly entry point consistently
Tom Rini [Tue, 22 Nov 2022 17:31:56 +0000 (12:31 -0500)]
arm: Use the WEAK assembly entry point consistently

It is a bad idea, and more modern toolchains will fail, if you declare
an assembly function to be global and then weak, instead of declaring it
weak to start with. Update assorted assembly files to use the WEAK macro
directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Pali Rohár <pali@kernel.org>
2 years agoevent: Re-add file paths to the tests
Tom Rini [Tue, 22 Nov 2022 17:31:55 +0000 (12:31 -0500)]
event: Re-add file paths to the tests

Now that we are enforcing dwarf-4 to be used we will have the full file
paths present.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2 years agoMakefile: Enforce DWARF4 output
Tom Rini [Tue, 22 Nov 2022 17:31:54 +0000 (12:31 -0500)]
Makefile: Enforce DWARF4 output

At this point in time, using DWARF-5 format isn't easy to do by default
with all toolchains that we support.  And relying on the implicit
default can lead to mixing 4 and 5 and then the debug info not being
useful to tools.  For now, enforce using DWARF-4 only.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>