From: Ferass El Hafidi Date: Thu, 11 Dec 2025 15:37:01 +0000 (+0000) Subject: board: libre-computer: use common Amlogic EFI capsule support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e844dd4df6765e5e772b5606a675c16fe98d9ac;p=thirdparty%2Fu-boot.git board: libre-computer: use common Amlogic EFI capsule support Remove the board-specific capsule support code, as we now support EFI capsules across multiple Amlogic boards without the need for that. Signed-off-by: Ferass El Hafidi Link: https://patch.msgid.link/20251211-meson-capsule-v4-2-59f126ba4115@postmarketos.org Signed-off-by: Neil Armstrong --- diff --git a/board/libre-computer/aml-a311d-cc/aml-a311d-cc.c b/board/libre-computer/aml-a311d-cc/aml-a311d-cc.c index b3b78bfd0ea..760dc740004 100644 --- a/board/libre-computer/aml-a311d-cc/aml-a311d-cc.c +++ b/board/libre-computer/aml-a311d-cc/aml-a311d-cc.c @@ -12,20 +12,6 @@ #include #include -struct efi_fw_image fw_images[] = { - { - .fw_name = u"AML_A311D_CC_BOOT", - .image_index = 1, - }, -}; - -struct efi_capsule_update_info update_info = { - .dfu_string = "sf 0:0=u-boot-bin raw 0 0x10000", - .num_images = ARRAY_SIZE(fw_images), - .images = fw_images, -}; - - #if IS_ENABLED(CONFIG_SET_DFU_ALT_INFO) void set_dfu_alt_info(char *interface, char *devstr) { diff --git a/board/libre-computer/aml-s805x-ac/aml-s805x-ac.c b/board/libre-computer/aml-s805x-ac/aml-s805x-ac.c index daece299848..966fd287878 100644 --- a/board/libre-computer/aml-s805x-ac/aml-s805x-ac.c +++ b/board/libre-computer/aml-s805x-ac/aml-s805x-ac.c @@ -20,19 +20,6 @@ #define EFUSE_MAC_OFFSET 52 #define EFUSE_MAC_SIZE 6 -struct efi_fw_image fw_images[] = { - { - .fw_name = u"AML_S805X_AC_BOOT", - .image_index = 1, - }, -}; - -struct efi_capsule_update_info update_info = { - .dfu_string = "sf 0:0=u-boot-bin raw 0 0x10000", - .num_images = ARRAY_SIZE(fw_images), - .images = fw_images, -}; - #if IS_ENABLED(CONFIG_SET_DFU_ALT_INFO) void set_dfu_alt_info(char *interface, char *devstr) { diff --git a/board/libre-computer/aml-s905d3-cc/aml-s905d3-cc.c b/board/libre-computer/aml-s905d3-cc/aml-s905d3-cc.c index 09a69b090ab..760dc740004 100644 --- a/board/libre-computer/aml-s905d3-cc/aml-s905d3-cc.c +++ b/board/libre-computer/aml-s905d3-cc/aml-s905d3-cc.c @@ -12,20 +12,6 @@ #include #include -struct efi_fw_image fw_images[] = { - { - .fw_name = u"AML_S905D3_CC_BOOT", - .image_index = 1, - }, -}; - -struct efi_capsule_update_info update_info = { - .dfu_string = "sf 0:0=u-boot-bin raw 0 0x10000", - .num_images = ARRAY_SIZE(fw_images), - .images = fw_images, -}; - - #if IS_ENABLED(CONFIG_SET_DFU_ALT_INFO) void set_dfu_alt_info(char *interface, char *devstr) {