From patchwork Tue Sep 6 06:58:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 602947 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp4270169mae; Mon, 5 Sep 2022 23:59:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR5aANvRBztb3Sw/ShBz7I5bQIioXuAUunHnYBwmZAC55k+ifWfzqKo+JuCqZebnWVL/B0w3 X-Received: by 2002:a17:906:5a61:b0:741:78ac:851f with SMTP id my33-20020a1709065a6100b0074178ac851fmr28766620ejc.431.1662447566306; Mon, 05 Sep 2022 23:59:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662447566; cv=none; d=google.com; s=arc-20160816; b=CLzihZ7KZ2Xb2ur+4Ecpj1+jRK3Rgz3g91wnlGdet6ha74RTACaJz3gANjRpxQJrcn urqZtHE6i7DdFmEzGDk9hJEnNR8W9q2/OsDRDxyv66FveXTWKdR7+7qJqNIzyTWSDlDb uxb4uau3v7BzQm76daGu0tDX9mByHufYziFcyNe3P4HZKw2IOLM6IwaR1msug8FaxPpF Need6LaGb7xzk0l8R7TwZ3yjaz4UEuiKRpMbIFbaQ9YZFmj6t+a7f1wSFbVWrZZW0X8V HyE7q2BbXyN0xEm9WnyBvEF4daz33QE3mbqNtpNxEiFHQFE8G6mprVB9rpCC+MmE+vRn M8RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=0jhmB/ZhocNDzl3Z5cLPITEcQQwJqBPQEM0W/CDliBE=; b=PjzHJAVo+fx1gwoL+GEOtCScHQbbrL3UWG94Lq4csxKdx9YZCu5VM0OkEaAnrToPD8 jRNdb7Z/6Pa+v1og3DbIhxd27YnAcl5BWrXWj6cYyaKY90oz3hC11DUpwwDW0tCJajH+ nYuT4ep8Tf1O2oLmkNecM1e1jwHy/vpwXgWWm7l9iisX+Irfa1pc7sR122zxcy/AcyWy +/KYpftS5xnd5llOQ8yInvksSdRA82eN6GYcKLDNi+NIAhN2OlDStRUGxckniThnrh4s PgBjzqcurfvcjlHoc/AZAkYinZrCy6M46K974cQqHzLiPCA0q2tlpbPj3DowjnQuMAUp rQxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id o15-20020a170906974f00b0076f5b24a7b9si269099ejy.735.2022.09.05.23.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 23:59:26 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7DE8284A58; Tue, 6 Sep 2022 08:59:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 6650E84A6B; Tue, 6 Sep 2022 08:59:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id A6869849C4 for ; Tue, 6 Sep 2022 08:59:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E002C139F; Mon, 5 Sep 2022 23:59:07 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 889813F73D; Mon, 5 Sep 2022 23:59:27 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Peter Griffin , Jerome Forissier , Peter Robinson , Kever Yang , Jagan Teki , Philipp Tomsich , Sughosh Ganu Subject: [PATCH v2 2/3] rockpi4: board: Add firmware image information needed for capsule updates Date: Tue, 6 Sep 2022 12:28:22 +0530 Message-Id: <20220906065823.7413-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220906065823.7413-1-sughosh.ganu@linaro.org> References: <20220906065823.7413-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Add information that will be needed for enabling the UEFI capsule update feature on the RockPi4 boards. With the feature enabled, it would be possible to update the idbloader and u-boot.itb images on the RockPi4B and RockPi4C variants. Signed-off-by: Sughosh Ganu --- Changes since V1: * Split the board related declarations into a separate patch. board/rockchip/evb_rk3399/evb-rk3399.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c index abb76585cf..abb0580a8e 100644 --- a/board/rockchip/evb_rk3399/evb-rk3399.c +++ b/board/rockchip/evb_rk3399/evb-rk3399.c @@ -5,11 +5,25 @@ #include #include +#include #include #include #include +#include #include +#define ROCKPI4_UPDATABLE_IMAGES 2 + +#if CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) +struct efi_fw_image fw_images[ROCKPI4_UPDATABLE_IMAGES] = {0}; + +struct efi_capsule_update_info update_info = { + .images = fw_images, +}; + +u8 num_image_type_guids = ARRAY_SIZE(fw_images); +#endif + #ifndef CONFIG_SPL_BUILD int board_early_init_f(void) {