]> git.ipfire.org Git - thirdparty/u-boot.git/commit
spl: Add support for Device Firmware Upgrade (DFU) over PCIe
authorHrushikesh Salunke <h-salunke@ti.com>
Thu, 23 Oct 2025 08:09:22 +0000 (13:39 +0530)
committerMattijs Korpershoek <mkorpershoek@kernel.org>
Thu, 6 Nov 2025 09:17:05 +0000 (10:17 +0100)
commitcde77583cf0b54dd572a38acd159ded7dd5e3e86
tree857567f21d74890616f9a02904b414e87ff22c54
parent1c250e444ad3b15315ee8b0fcb3fc3acc26449e2
spl: Add support for Device Firmware Upgrade (DFU) over PCIe

Introduces support for Device Firmware Upgrade (DFU) over PCIe in
U-Boot. Traditionally, the DFU protocol is used over USB, where a
device enters DFU mode and allows a host to upload firmware or binary
images directly via the USB interface. This is a widely adopted and
convenient method for updating firmware.

In the context of Texas Instruments (TI) SoCs, PCIe can be used as a
boot interface in a manner that differs from the conventional
"PCIe Boot" process, which typically refers to booting an OS or
firmware image from an NVMe SSD or other PCIe-attached storage devices.
Instead, TI SoCs can be configured as a PCIe Endpoint, allowing a
connected PCIe Root Complex (host) to transfer images directly into the
device’s memory over the PCIe bus for boot purposes. This mechanism is
analogous to DFU over USB, but leverages the high-speed PCIe link and
does not depend on traditional storage devices.

By extending the DFU framework in U-Boot to support PCIe, it will be
possible to flash images over PCIe. While this implementation is
motivated by TI SoC use cases, the framework is generic and can be
adopted by everyone for platforms that support PCIe Endpoint mode.
Platforms with hardware support for PCIe-based memory loading can use
this to implement PCIe as a boot mode, as well as to enable flashing
and recovery scenarios similar to DFU over USB.

In summary, enable support for:
- DFU-style flashing of firmware/images over PCIe, analogous to existing
USB DFU workflows
- PCIe as a boot mode where a host can load images directly into device
memory using DFU over PCIe

Signed-off-by: Hrushikesh Salunke <h-salunke@ti.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Link: https://lore.kernel.org/r/20251023080922.3527052-1-h-salunke@ti.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
common/spl/Kconfig
common/spl/spl_dfu.c
common/spl/spl_ram.c
drivers/Makefile