diff options
| author | Ilias Apalodimas <[email protected]> | 2024-09-13 12:53:15 +0300 |
|---|---|---|
| committer | Peter Robinson <[email protected]> | 2024-12-11 15:54:52 +0000 |
| commit | 6a5fc32fd20b5e5367fda9a75f0e8de1a4b76649 (patch) | |
| tree | fe2773859ce0b970f5ac77b7c61850609a6cd25c /board/raspberrypi | |
| parent | 28a620d2815ca65f1ef884236d026409bf15bbbb (diff) | |
board: rpi: Enable capsule updates
Since RPI works well using EFI and has no size limitations with regards
to U-Boot, add the needed structures to support capsule updates.
While at it update the most commonly used defconfigs and include capsule
support and U-Boot commands needed by EFI
Tested-by: Sughosh Ganu <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'board/raspberrypi')
| -rw-r--r-- | board/raspberrypi/rpi/rpi.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c index 5b6df53bbf9..18be244aa79 100644 --- a/board/raspberrypi/rpi/rpi.c +++ b/board/raspberrypi/rpi/rpi.c @@ -68,6 +68,19 @@ struct msg_get_clock_rate { u32 end_tag; }; +struct efi_fw_image fw_images[] = { + { + .fw_name = u"RPI_UBOOT", + .image_index = 1, + }, +}; + +struct efi_capsule_update_info update_info = { + .dfu_string = "mmc 0=u-boot.bin fat 0 1", + .num_images = ARRAY_SIZE(fw_images), + .images = fw_images, +}; + #ifdef CONFIG_ARM64 #define DTB_DIR "broadcom/" #else |
