summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-09-22configs: am65x_evm_r5_usbmsc_defconfig: Enable DWC3 wrapper for SPLRavi Gunasekaran1-0/+2
commit 280f45d23977 ("configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC") missed enabling DWC3 glue layer for usbmsc_defconfig and this broke boot from USB mass storage. Fix this by enabling DWC3 glue layer. Fixes: 280f45d23977 ("configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC") Signed-off-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2023-09-22net: wget: Avoid packet queue overflowRichard Weinberger1-1/+9
Make sure to stay within bounds, as a misbehaving HTTP server can trigger a buffer overflow if not properly handled. Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
2023-09-21Merge https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini2-0/+8
- Fixup memory size passed to kernel on visionfive2
2023-09-20board: visionfive2: Fixup memory size passed to kernelShengyu Qu1-0/+7
Use fdt_fixup_memory to make the memory size data from dtb match the actual size. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
2023-09-20configs: visionfive2: Enable CONFIG_OF_BOARD_SETUPShengyu Qu1-0/+1
Enable CONFIG_OF_BOARD_SETUP, so we could use ft_board_setup() to fixup memory size passed to kernel. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
2023-09-17Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-shTom Rini11-0/+12
- Fix PHY in some cases on some platforms via enabling DM_ETH_PHY.
2023-09-17Merge tag 'doc-2023-10-rc5-2' of ↵Tom Rini6-10/+10
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request doc-2023-10-rc5-2 Documentation: * fix code comments referring to doc/develop/expo.rst * remove unused values from Chromebook kernel command line * correct reference tag placement in tools/binman/binman.rst Others: * test: fix build dependency for event unit tests
2023-09-17ARM: renesas: Enable DM_ETH_PHY on 64-bit R-Car boardsMarek Vasut10-0/+10
Enable DM_ETH_PHY to correctly release the PHY on these boards from reset. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2023-09-17ARM: dts: renesas: Add compatible properties to KSZ9031 Ethernet PHYs on ↵Marek Vasut1-0/+2
Salvator-X boards Add compatible values to Ethernet PHY subnodes representing Micrel KSZ9031 PHYs on R-Car Gen3 Salvator-X boards. This allows software to identify the PHY model at any time, regardless of the state of the PHY reset line. This is a fix for missed addition of these properties on Salvator-X boards. Ported from Linux kernel commit 722d55f3a9bd810f3a1a31916cc74e2915a994ce . Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2023-09-16binman: doc: fix reference tag placement for Logging sectionMassimo Pegorer1-1/+1
Move BinmanLogging reference tag after section "Signing FIT container with private key in an image" and just before section "Logging". Fixes: 0f40e23fd22 ("binman: add documentation for binman sign option") Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-16expo: Fix documentation referenceMassimo Pegorer2-4/+4
Fix typo: doc/develop/expo.rst instead of doc/developer/expo.rst Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-16doc: delete unused values kernel command lineJaewon Jung2-4/+4
Delete "boot=local", "noswap" unused values in kernel command line Signed-off-by: Jaewon Jung <jw.jung@navercorp.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-16test: build dependency for event unit testsHeinrich Schuchardt1-1/+1
The test_event_base and test_event_probe unit tests use function event_register() which depends on CONFIG_EVENT_DYNAMIC=y. Fixes: 7d02645fe4c0 ("event: Add a simple test") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-09Merge tag 'doc-2023-10-rc5' of ↵Tom Rini17-747/+984
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request doc-2023-10-rc5 Documentation: * move more TI board documentation to HTML * update TPM usage instructions for qemu-arm * update the EFI app documentation Other: * tpm: Fix autostart for TPM1.2 devices * spl: fix undefined return value in spl_blk_load_image
2023-09-09doc: board: ti: Move documentation from README to .rstNeha Malcom Francis11-724/+965
Make the conversion for all existing TI documentation from README to .rst Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
2023-09-09doc: Update path to source_file_format.rstJoao Marcos Costa1-2/+2
Previously, the file extension was .txt, and it referenced the uImage.FIT directory, which no longer exists. This commit updates the path accordingly. Signed-off-by: Joao Marcos Costa <jmcosta944@gmail.com> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-09timer: document the unit of the timer rateHeinrich Schuchardt1-3/+3
To avoid confusion document that timer_dev_priv.clock_rate and timer_get_rate() yield the timer rate in hertz. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-09doc: efi: Update for the 64-bit appSimon Glass1-15/+11
The 64-bit app is supported now, so update the documentation. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-09doc: qemu: switch swtpm instruction to 'tpm autostart'Ilias Apalodimas1-1/+1
We don't have a documentation page for our TPM subsystem. I plan on sending one in the future, but in the meantime document the new 'tpm autostart' command in the QEMU instructions while using a SWTPM Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2023-09-09tpm: Fix autostart for TPM1.2 devicesIlias Apalodimas1-1/+1
On commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command") an autostart function was added for both TPM1.2 and 2.0 devices. Instead of correctly wiring the autostart command for TPM1.2 devices that patch mistakenly added it on 'tpm init' Fixes: commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command") Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-09-09spl: undefined return value in spl_blk_load_imageHeinrich Schuchardt1-1/+1
spl_blk_load_image() should not return an uninitialized value if blk_get_devnum_by_uclass_id() fails. Fixes: 8ce6a2e17577 ("spl: blk: Support loading images from fs") Reported-by: Xavier Drudis Ferran <xdrudis@tinet.cat> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
2023-09-05Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-usbTom Rini1-3/+2
- DWC3 fix on Layerscape
2023-09-05Merge tag 'u-boot-imx-20230905' of ↵Tom Rini10-16/+17
https://gitlab.denx.de/u-boot/custodians/u-boot-imx Fixes for release ----------------- - imx9: fix DRAM calculation - thermal: fixes - fixed for DM, DH and Gateworks boards CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/17639
2023-09-05Merge https://source.denx.de/u-boot/custodians/u-boot-riscvTom Rini14-12/+108
+ Implement OpenSBI DBCN extension for early debug console + Fixes for VisionFive2 board + Fix timer missing + Fix L2 LIM issue + Enable PCIE auto enumeration to support USB and NVMe by default + Set eth0 mac address properly + Add __noreturn attribute to spl_invoke_opensbi
2023-09-05risc-v: implement DBCN based debug consoleHeinrich Schuchardt2-1/+24
Use the DBCN SBI extension to implement a debug console. Make it the default for S-mode RISC-V. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05risc-v: implement DBCN write byteHeinrich Schuchardt2-0/+17
The DBCN extension provides a Console Write Byte call. Implement function sbi_dbcn_write_byte to invoke it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05spl: add __noreturn attribute to spl_invoke_opensbi functionChanho Park2-4/+5
spl_invoke_opensbi function is not returned to SPL. Thus, we need to set __noreturn function attribute. Signed-off-by: Chanho Park <chanho61.park@samsung.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05configs: starfive: Disable SYS_MALLOC_CLEAR_ON_INIT by defaultShengyu Qu1-0/+2
SPL_SYS_MALLOC_CLEAR_ON_INIT would enable SYS_MALLOC_CLEAR_ON_INIT by default, but that's not need on JH7110, so disable that. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05riscv: cpu: jh7110: Imply SPL_SYS_MALLOC_CLEAR_ON_INITShengyu Qu1-0/+1
Starfive JH7110 needs to clear L2 LIM to zero before use or ECC error would be triggered. Currently, we use DDR ram for SPL malloc arena on Visionfive 2 board in defconfig, but it's also possible to use L2 LIM as SPL malloc arena. To avoid triggering ECC error in this scenario, we imply SPL_SYS_MALLOC_CLEAR_ON_INIT as default. Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05dlmalloc: Add support for SPL_SYS_MALLOC_CLEAR_ON_INITShengyu Qu1-3/+3
To support SPL_SYS_MALLOC_CLEAR_ON_INIT, we have to modify #ifdef CONFIG_SYS_MALLOC_CLEAR_ON_INIT to #if CONFIG_IS_ENABLED(SYS_MALLOC_CLEAR_ON_INIT) Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-09-05Kconfig: Add SPL_SYS_MALLOC_CLEAR_ON_INITShengyu Qu1-0/+11
Add SPL version of SYS_MALLOC_CLEAR_ON_INIT, this would help devices that need to clear ram before use to work correctly. Signed-off-by: Bo Gan <ganboing@gmail.com> Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-09-05doc: board: starfive: Add more info about supported driverShengyu Qu1-0/+2
Since PLDA PCIE driver is added and VL805 support is enabled in defconfig for Starfive Visionfive 2, modify the document to keep consistent. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
2023-09-05configs: starfive: Enable PCIE auto enum and NVME/USB stuff for Starfive ↵Shengyu Qu1-1/+7
Visionfive 2 Although PCIE driver already exists, board defconfig isn't configured to enable PCIE enum on boot, thus USB storage device and NVME drive are not supported by default. So modify defconfig to enable PCIE auto enum, then start USB subsystem and scan nvme drive on boot. Signed-off-by: Shengyu Qu <wiagn233@outlook.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
2023-09-05riscv: jh7110: enable riscv,timer in the device treeTorsten Duwe1-0/+9
The JH7110 has the arhitectural CPU timer on all 5 rv64 cores. Note that in the device tree. Signed-off-by: Torsten Duwe <duwe@suse.de> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05riscv: allow riscv timer to be instantiated via device treeTorsten Duwe1-2/+26
For the architectural timer on riscv, there already is a defined device tree binding[1]. Allow timer instances to be created from device tree matches, but for now retain the old mechanism, which registers the timer biggy-back with the CPU. [1] linux/Documentation/devicetree/bindings/timer/riscv,timer.yaml Signed-off-by: Torsten Duwe <duwe@suse.de> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05eeprom: starfive: set eth0 mac address properlySeung-Woo Kim1-1/+1
fdt_fixup_ethernet() sets eth0 mac address from ethaddr. Set ethaddr to environment instead of eth0addr. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
2023-09-05nokia_rx51: Remove platformTom Rini17-2264/+1
This platform is behind on migrations (it is the sole user of the oldest legacy version of the USB gadget stack and is long overdue for migration) and with Pali no longer being a maintainer, we remove this platform. Signed-off-by: Tom Rini <trini@konsulko.com>
2023-09-05MAINTAINERS: Drop Pali RohárTom Rini4-5/+1
Remove Pali from his listed maintainer entries due to his publicly visible actions on the mailing list. Signed-off-by: Tom Rini <trini@konsulko.com>
2023-09-04thermal: imx_tmu: Increase the polling intervalFabio Estevam1-1/+1
Polling every second to check whether the CPU has cooled down is too frequent. Allow more time for the CPU to cool down by increasing the polling interval to 5 seconds by defaut. This value is used in the absence of the 'polling-delay' devicetree property. Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-04thermal: imx_tmu: Fix the temperature unitFabio Estevam1-2/+2
The temperature unit is millidegree Celsius, so divide by 1000 to correctly print the temperature values in Celsius. While at it, also change a typo: "has beyond" to "is beyond". Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-04thermal: imx_tmu: Increase the log level for high temperaturesFabio Estevam1-1/+1
dev_info() message is not printed by default. Increase the log level to dev_crit(). This allows the critical messages related to the temperature getting beyong the alert threshold to be displayed. Signed-off-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
2023-09-04thermal: imx_tmu: Fix the polling defaultFabio Estevam1-1/+5
When the 'polling-delay' property is not passed via devicetree, pdata->polling_delay keeps at 0. This causes the imx_tmu driver to get stuck inside the busy while() loop when the CPU temperature is above the alert point. Fix this problem by passing a one second polling interval, which provides a proper delay to let the system to cool down and exit the while() loop when the temperature is below the alert point. Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-04imx8mm_evk_defconfig: Select CONFIG_IMX_TMUFabio Estevam1-0/+1
Select the i.MX8MM thermal driver as it is useful for displaying the CPU temperature and its grading: CPU: Commercial temperature grade (0C to 95C) at 38C It also prevents booting when the temperature is above the alert point. Signed-off-by: Fabio Estevam <festevam@denx.de>
2023-09-04Prepare v2023.10-rc4Tom Rini2-2/+2
Signed-off-by: Tom Rini <trini@konsulko.com>
2023-09-04Merge tag 'rpi-2023.10' of ↵Tom Rini11-143/+86
https://source.denx.de/u-boot/custodians/u-boot-raspberrypi Updates for RPi for 2023.10: - rpi: Disable DISTRO_DEFAULTS - arm: rpi: Switch to standard boot - arm: rpi: Switch to a text environment
2023-09-04usb: dwc3: Fix enabling USB_DR_MODE_HOSTOleksandr Suvorov1-1/+1
The original logic always enables USB_DR_MODE_HOST operation mode in dwc3_layerscape_bind() in u-boot. Prevent choosing USB_DR_MODE_HOST operation mode if USB_HOST is not enabled. Fixes: 2b0b51d0bed ("usb: dwc3: add layerscape support") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
2023-09-04usb: dwc3: Fix renaming SPL_USB_HOST_SUPPORT to SPL_USB_HOSTOleksandr Suvorov1-3/+2
In the usb/dwc3-layerscape driver the first option should be renamed to the latter as well. Do it. Fix original logic in dwc3_layerscape_bind() - do not enable Fixes: 333e4a621df ("Rename SPL_USB_HOST_SUPPORT to SPL_USB_HOST") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
2023-09-04ARM: imx: Use default SAVED_DRAM_TIMING_BASE on Data Modul i.MX8M Plus eDM SBCMarek Vasut1-1/+0
Use default SAVED_DRAM_TIMING_BASE as that is what upstream TFA expects. Without this change, the board will fail to suspend/resume e.g. in Linux. Signed-off-by: Marek Vasut <marex@denx.de>
2023-09-04ARM: imx: Use default SAVED_DRAM_TIMING_BASE on Data Modul i.MX8M Mini eDM SBCMarek Vasut1-1/+0
Use default SAVED_DRAM_TIMING_BASE as that is what upstream TFA expects. Without this change, the board will fail to suspend/resume e.g. in Linux. Signed-off-by: Marek Vasut <marex@denx.de>
2023-09-04ARM: imx: Use default SAVED_DRAM_TIMING_BASE on DH i.MX8M Plus DHCOMMarek Vasut2-2/+0
Use default SAVED_DRAM_TIMING_BASE as that is what upstream TFA expects. Without this change, the board will fail to suspend/resume e.g. in Linux. Signed-off-by: Marek Vasut <marex@denx.de>