summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-06-02include/compiler.h: Audit include listTom Rini
This file does not need <time.h> so remove it. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/cbfs.h: Audit include listTom Rini
This file does not need <compiler.h> but does directly need <linux/types.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/cadence-nand.h: Audit include listTom Rini
This file does not need <linux/mtd/mtd.h> but does directly need <linux/types.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/bootstd.h: Audit include listTom Rini
This file does not need <linux/list.h> so remove it. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/bootflow.h: Audit include listTom Rini
This file does not need <linux/list.h> but does directly need <linux/types.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/bios_emul.h: Audit include listTom Rini
This file does not need <pc.h> but does directly need <linux/types.h>. Furthermore, arch/x86/lib/bios.c was getting <pci.h> via <bios_emul.h> so add it there. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/arm_ffa.h: Audit include listTom Rini
This file does not need <linux/printk.h> but does directly need <linux/types.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-06-02include/ahci.h: Audit include listTom Rini
This file does not need <pci.h> but does directly need <linux/types.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-16Merge tag 'dm-pull-16may25' of git://git.denx.de/u-boot-dm into nextTom Rini
Bring in the strim() changes and associated test
2025-05-16test: Add a test for strim()Simon Glass
This function trims whitespace from the start and end of a string. Add a test for it. Signed-off-by: Simon Glass <sjg@chromium.org>
2025-05-16strim: Sync up with Linux versionSimon Glass
Linux changed the behaviour of strim() so that a string with only spaces reduces places the terminator at the start of the string, rather than returning a pointer to the end of the string. Bring in this version, from Linux v6.14 Add a comment about the new behaviour. Signed-off-by: Simon Glass <sjg@chromium.org>
2025-05-13fs.h: Switch to using rtc_def.hTom Rini
This file only needs the definition of 'struct rtc_time' and that is found in <rtc_def.h>. Use that instead of pulling in rtc.h to pull in rtc_def.h as rtc.h includes many other include files. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-13fat.c: Add missing includeTom Rini
This file references rtc functions and implicitly includes <rtc.h> today. Add this explicitly. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-13ext4fs.c: Add missing includeTom Rini
This file references rtc functions and implicitly includes <rtc.h> today. Add this explicitly. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-13cmd/cat.c: Add missing includeTom Rini
This file references errno values and so needs to include <linux/errno.h>. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-12Prepare v2025.07-rc2v2025.07-rc2Tom Rini
Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-12configs: Resync with savedefconfigTom Rini
Resync all defconfig files using qconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-12clk: Fix clk_set_parent() regressionJonas Karlman
The commit ac30d90f3367 ("clk: Ensure the parent clocks are enabled while reparenting") add a call to clk_enable() for the parent clock. For clock drivers that do not implement the enable() ops, like most Rockchip clock drivers, this now cause the set_parent() ops to never be called when CLK_CCF=n (default for Rockchip). clk_enable() typically return -ENOSYS when the enable() ops is not implemented by the clock driver, with CLK_CCF=y clk_enable() instead return 0 when the enable() ops is unimplemented. Change to ignore -ENOSYS from the newly introduced clk_enable() call to fix this regression and restore the old behavior of set_parent() ops being called regardless of if enable() ops is implemented or not. Fixes: ac30d90f3367 ("clk: Ensure the parent clocks are enabled while reparenting") Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Tested-by: Dang Huynh <danct12@riseup.net> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
2025-05-11Merge tag 'efi-2025-07-rc3' of ↵Tom Rini
https://source.denx.de/u-boot/custodians/u-boot-efi Pull-request efi-2025-07-rc3 CI: * https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/26146 Documentation: * Improve the pytest documentation * u-boot-test-reset: mention power cycling * describe u-boot-test-release * correct link to QEMU * describe that RISC-V supports semihosting UEFI: * link libggc via PLATFORM_LIBGCC to EFI binaries * allow suppressing ANSI output in dtbdump.efi * test/py/test_efi_fit: test fdt and initrd # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCAAdFiEEK7wKXt3/btL6/yA+hO4vgnE3U0sFAmggj+IACgkQhO4vgnE3 # U0sjTBAAkWySSBNFoj12AyjO2h4kJecxiJJxyoMYTcsr3xdgV0WTPQFaWcSBqTsL # NgKq5KFNe+ywUdDIqU1VLOTcQf298hofRrcp5Gfhv+syZaRCorCSoSJI6ZveZ5Bi # 9N2pPvhEVrlFBF2XannJ5ilYtLAbiqIvVFmdLmFwRPbODv/gfEkSudSy0Za7t1tM # c7RoRegpXziY4Y1XPfr3MpXgKpUQkOPnvXKUwtHhL055X/1Ggg87dzPg1fiU+DiQ # AGAgvGD/KF/ym4aWQ3jWyji8Kxc5BLsurv083it7JAmL82wqNbU9j5cx3mS/f2Le # uL7YWv1GANbq+MoBC5O3nkB+yUtHSLylFC3KKFiehmKhc/JO+Uj3cJY/Q/25+lxs # aahG3C/5xgBTgM6YEqJfSqKYQVFsC2V/a7gWAFlX7OidYXm6oDBu4TeAHmAtBgcj # pz0AVCYMWyhKE+zb+4U2mlKEQ8bJpFdC2Q+pTMciGAM3YyztotJ1yoM4IndDrh4q # ScrIpXHSqWLlZfev+NnJDw1UKLWEJIMeXh0uzfpaT5M0cLEDeHTOSX9Fp3ZPj9Af # +T3nNWSXWlOW0wc6C5igj4p0UiGSbHMMPOa54f/D0gdl/UkPZ1YPBYVBa/eX1yBy # NlaJziLCmLqyWpYIVhaigKDtGWfgjoHGaABfyuSIj/HxmIHhD5w= # =NbGi # -----END PGP SIGNATURE----- # gpg: Signature made Sun 11 May 2025 05:54:10 AM CST # gpg: using RSA key 2BBC0A5EDDFF6ED2FAFF203E84EE2F827137534B # gpg: Can't check signature: No public key
2025-05-11test/py/test_efi_fit: test fdt and initrdAdriano Cordova
Add tests to check initrd and dtb loading Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
2025-05-11efi_loader: fix dtbdump output color and formatAdriano Cordova
Imitate in dtbdump what initrddump does for color, newlines and input handling. The output parsing in the CI is strict and with the current output the CI is not recongnizing the prompt '=>'. Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-05-11scripts/Makefile.lib: add PLATFORM_LIBGCC to efi linkingAdriano Cordova
Link .efi applications using libgcc Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
2025-05-11doc: RISC-V supports semihostingHeinrich Schuchardt
Mention that RISC-V supports semihosting. Update the link to ARM's semihosting documentation Update SPDX identifier to current format. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-05-11doc: correct link to QEMUHeinrich Schuchardt
%s/hhttps:/https:/ Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-05-11doc: pytest: Document the test_button testTom Rini
Add this test to the documentation. No changes to the test itself were required. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Document the test_bootmenu testTom Rini
Add this test to the documentation. There was already a function comment that included the argument, so convert it to the right style to be rendered correctly in output. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Document the test_bind testTom Rini
Add this test to the documentation. None of the functions had comments, so attempt to explain what each does. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Document the test_efi_loader testTom Rini
Add this test to the documentation. We need to add a code-block annotation to the example and indent it correctly. We also need to document the do_test_efi_helloworld_net function and that in turn means changing the documentation to test_efi_helloworld_net_http and test_efi_helloworld_net_tftp to reflect what is and isn't done in those functions themselves now. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Document the test_bootstage testTom Rini
Add this test to the documentation. We need to move the import to follow the main comment so that it renders correctly, and add a code-block annotation to the example and indent it correctly. Next, neither of the functions had comments themselves, so document them now. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Document the test_net testTom Rini
Add this test to the documentation. While the diff appears large at first, the only changes within the test are to move the imports to follow the pydoc comment and then to code-block and indent the example configuration. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11test: test_net_boot: Add more commentsTom Rini
Some of the functions were missing pydoc comments. Add them so they will be included in the documentation. Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Document the test_net_boot testTom Rini
Add the test_net_boot.py test to the generated documentation. While most of this was already commented correctly for inclusion the biggest problem was examples of code without a code-block notation. This in turn broke parsing. Add the missing notations. We also must have the comment prior to any import lines or it will not be seen as a comment on the overall file and thus not included. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: pytest: Framework for documenting tests and document test_000_versionTom Rini
In order to easily document pytests, we need to include the autodoc extension. We also need to make sure that for building the docs, CI includes pytest and that we have PYTHONPATH configured such that it will find all of the tests and related files. Finally, we need to have our comments in the test file by in proper pydoc format in order to be included in the output. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11doc: Start improving our pytest documentationTom Rini
Begin the work of documenting all of our pytests. To do this, we should have a directory under develop for it as there will be a large number of new files. As the current document is referenced externally in a number of locations, add the sphinx_reredirects module so that we can redirect from the old location to the new. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-11cmd: nvedit: fix efi env -e -i command helpVincent Stehlé
The help string for the `setenv -e' command shows a comma being used as the separator between address and size for the -i option, which deals with UEFI Variables contents passed as a buffer in memory. This is no longer the case since commit 2b3fbcb59f41 ("efi_loader: use ':' as separator for setenv -i") and commit 8f0ac536d493 ("efi: change 'env -e -i' usage syntax"), which changed the separator from a comma to a colon. Therefore fix this last bit of the help string accordingly. While at it, fix the comment of function do_env_set_efi(), which also mentions a comma as separator. Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com> Cc: Tom Rini <trini@konsulko.com> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Cc: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-05-11doc: describe u-boot-test-releaseHeinrich Schuchardt
The scripts u-boot-test-release is called at the end of testing. Describe it. Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-05-11doc: u-boot-test-reset: mention power cyclingHeinrich Schuchardt
Using power cycling is a valid option to implement u-boot-test-reset. Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-05-09board: ti: sec-cfg.yaml: Fix OTP write_host_id orderAndrew Davis
The write_host_id is the last element here and order does matter. This may have gone unnoticed before as by default all elements are 0, but if this is updated to a different host, it will not work. Update the order so write_host_id is the last element in all current secure board configs. Reported-by: Prashant Shivhare <p-shivhare@ti.com> Signed-off-by: Andrew Davis <afd@ti.com>
2025-05-09Dockerfile: use lz4 instead of lz4-toolsHeinrich Schuchardt
Since Ubuntu Jammy lz4-tools is only a virtual package which pulls in lz4 as dependency. Update documentation too. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2025-05-09board: ti: common: Kconfig: add CMD_CACHEAnshul Dalal
Add CMD_CACHE to list of configs implied by TI_COMMON_CMD_OPTIONS. This allows the usage of cache commands from U-Boot prompt. Signed-off-by: Anshul Dalal <anshuld@ti.com> Reviewed-by: Daniel Schultz <d.schultz@phytec.de>
2025-05-09configs: j722s_evm_r5_defconfig: Enable PMIC configUdit Kumar
In kernel device tre commit 714d54917147: ("arm64: dts: ti: k3-j722s-evm: Enable PMIC") adds pmic support. Above commit of kernel get synched in u-boot by sha ab06a533f08e:("Squashed 'dts/upstream/' changes from 8531b4b4988c..955176a4ff59"). Now, PMIC DT is available in u-boot for J722S EVM, So enable PMIC in defconfig as well. Signed-off-by: Udit Kumar <u-kumar1@ti.com>
2025-05-09disable mail for swarrenStephen Warren
I haven't been involved in U-Boot development for quite a while, so CCing me on patches isn't currently useful. Add a .mailmap entry that I believe will turn off patch CCs. This can always be removed if I become active again! Remove myself from a few MAINTAINERS failed and the git mailrc file too.
2025-05-09net: dwc: xgmac: Allow DMA buffers above 4GBNikunj Kela
Currently, Synopsis xgmac driver only works if DMA region is under 4GB. This change enables the DMA buffers allocations above 4GB memory regions. Signed-off-by: Nikunj Kela <nikunj.kela@sima.ai>
2025-05-09x86: Correct usage of FSP_VERSION2Tom Rini
As the code is today, we get a warning about "select" statements on "choice" options not doing anything. In this case, we move to having a "default FSP_VERSION2 if INTEL_APOLLOLAKE" in order to get the desired outcome. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-09x86: spl: Add support for NVMe boot deviceNaresh Solanki
This change adds `BOOT_DEVICE_NVME` to the `enum` list in `arch/x86/include/asm/spl.h`, enabling NVMe as a recognized boot device for SPL (Secondary Program Loader). Tested x86 hardware with coreboot + U-Boot payload. Verified successful boot to NVMe drive. Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-09gpio: x86: Correct usage of IS_ENABLED() macro in intel_pinctrl_defs.hTom Rini
This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-09x86: Correct usage of IS_ENABLED() macro in arch/x86/lib/spl.cTom Rini
This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-09x86: apl: Correct usage of IS_ENABLED() macro in acpi-pmc-uclass.cTom Rini
This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected. Signed-off-by: Tom Rini <trini@konsulko.com>
2025-05-09x86: cpu: Describe board final hooks in the headerAndy Shevchenko
The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2025-05-08Merge branch 'staging' of https://source.denx.de/u-boot/custodians/u-boot-tegraTom Rini