From patchwork Thu Nov 10 09:19:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 623327 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1150pvb; Thu, 10 Nov 2022 01:19:57 -0800 (PST) X-Google-Smtp-Source: AMsMyM7BAnYnOnCQmxq5Oct54o/S+fku9TIyXZzyTOyzbZJ34vDnIyI9ie0LsGbokySwb6FLzys4 X-Received: by 2002:a17:906:db0e:b0:77b:82cf:54a6 with SMTP id xj14-20020a170906db0e00b0077b82cf54a6mr58313761ejb.691.1668071996769; Thu, 10 Nov 2022 01:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668071996; cv=none; d=google.com; s=arc-20160816; b=BtKRJ96MZ7YBonwqjxdGZ2AI4ZkpwsKna5dvg5e36CbUZ18WI2J65lvOpWNWpMCBPu Ytujes9SUegrls9JGQWnyZ6ZXQy4UC/zQRK8qujOcaLvS+UCUwItrIixOP9Sw2aya6up MZRR337qWVRbPAoY1xozqYLP+Gfmg9zW6lsoHtLs8i3/8CeRYmg1S/z2sicBb/QsCNjI 8x0RJG3g4wyw5Huq4+Gz0h8ogsN1Dw81F7cm/fgptVC1FCZfZpPGAumvMTzVfaps0oFh 9jTjQUVVHtW8OO2TuL3y5EINF8x70TMm/0jbHDf6l0dOT6/k9nC2KOFKO7gsJlue925q Jecw== 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:message-id:date:subject:cc:to:from; bh=UjBZlcpEk17OYqBPX6YccWywdAo1L9hORgkBXNvjwgE=; b=cYX97M92ptbZPi+n6Mzwj743r6QXJtnFt8mf0pesU1ALZRCwTMmZtTayshvLamjqyS 03AtVQPeFBqbqIPJCOgug40WOVK2f7QjiTuC2ML/qKJULDaEwwG1slDZvCi+D2HRKFGT iosLacoAkIpDd5zdEu54BY2UKvywvHgUEJtcyvQjdE1zoH7keGzgwLx7BXKS6bRU92lt jIgNuYjXw5gVQKiYPWTVdYABVt4fbauZp1vuNJfgighzfxtYaGfv/QB7OpCneyodjKYB h3e/NJFk516lal7zyLHvoy1wdhcNLGMu+wL9lwUmUX4QmFP24rEwiP1Nz63B4MyP327u c71g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ho15-20020a1709070e8f00b007763cc7093csi18989917ejc.884.2022.11.10.01.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 01:19:56 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 80139850FB; Thu, 10 Nov 2022 10:19:53 +0100 (CET) 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 58CA88510E; Thu, 10 Nov 2022 10:19:51 +0100 (CET) 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 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 10BEF850DB for ; Thu, 10 Nov 2022 10:19:49 +0100 (CET) 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 EECCC1FB; Thu, 10 Nov 2022 01:19:53 -0800 (PST) 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 4DD6B3F534; Thu, 10 Nov 2022 01:19:46 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Peter Robinson , Kever Yang , Tom Rini Subject: [PATCH v5 0/3] rockpi4: Add capsule update support Date: Thu, 10 Nov 2022 14:49:14 +0530 Message-Id: <20221110091917.3966430-1-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 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 capsule update support for the RockPi4B and RockPi4C boards. Support is being added for updating the idbloader.img and u-boot.itb firmware images on configurations with the firmware images stored on GPT partitioned uSD card device. Changes since V5: * Get the pointer to struct efi_fw_image through struct efi_capsule_update_info * Mark fw_images array as a static variable * Populate num_image_type_guids through ROCKPI4_UPDATABLE_IMAGES Sughosh Ganu (3): rockchip: capsule: Add functions for supporting capsule updates rockpi4: board: Add firmware image information for capsule updates rockpi4: capsule: Enable UEFI capsule update on RockPi4 boards arch/arm/include/asm/arch-rockchip/misc.h | 1 + arch/arm/mach-rockchip/Kconfig | 1 + arch/arm/mach-rockchip/board.c | 153 ++++++++++++++++++++++ board/rockchip/evb_rk3399/evb-rk3399.c | 55 +++++++- configs/rock-pi-4-rk3399_defconfig | 8 ++ configs/rock-pi-4c-rk3399_defconfig | 8 ++ include/configs/rk3399_common.h | 16 +++ 7 files changed, 241 insertions(+), 1 deletion(-)