From patchwork Wed Sep 14 10:09:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 605707 Delivered-To: patch@linaro.org Received: by 2002:ab3:1c02:0:b0:1e7:4ce8:c350 with SMTP id u2csp630060lth; Wed, 14 Sep 2022 03:10:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR6i+9K6W2wZBhTyt/Hc6hlh5TDiSXAWp+7SlNdKoCRR8rY/U1RPQOcvg1z4ncpM0NDHDMd0 X-Received: by 2002:aa7:c90e:0:b0:44e:b410:b1d5 with SMTP id b14-20020aa7c90e000000b0044eb410b1d5mr30068427edt.359.1663150237670; Wed, 14 Sep 2022 03:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663150237; cv=none; d=google.com; s=arc-20160816; b=Z0E845vX4ROqM3Ninba29gHZGa5k3mBthpuIrocd7sHvNSyHZhI2L6yu3FWVJmujZT Scj3FleVLjy72WfBMEnjMEXDazAgPnOq+agAeIiRWDMYIYOB22NI09/5T0+NyrmAOG73 Ca+sHg/JJcNCg0KO2Ffd914HPGBusJez757sOow5IRKjk4Tp5iXxAD/iDUYwXh87/YrZ jINGhbQOsjjoG8rFO/Eq+I/YjscDcE6CFlu3MOkGjNHrSQoyNHf7ofkunauz4ZIfzUYD CaqNxFJ+A9txcY5ZVEBcS2tsADsSrA4f+iqSQBM9jX8yQC7UZd4I059CI5WGOJZSMa9P LM0Q== 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=PHzislejg6c0WNm/uTPpbInL0p/OvRlp9dkXJHTh5y4=; b=t9gffVZ68BrRUl27jn/WpjOl4Fh/VWJwYqvLlAFnDoZZ3UyOfn0+AsKXWhYKop+D4q +kEeuiMX5MHkTL+WAhJjPL8bVLNFc2ZQRHw7nzTkNyWabwsh6+jf/wiUkKlb6cNn9IOj 2powMlN8+mmkZ+zIPiXU/7xpF1u/mwPfFsBoJzC0dl05t0ekF0Vgh19njphNZuUGrnZc JTCuOgXbFtMV5YxoTxrehFRSAMip0a+n2lt/TlDKXR5q2/fJ8r4T6Ins2I1eqfxEO91w w0G+MVK0GriyVzcSYoGq/8sWVz9xQI9iVhh/8xRpb+SHWHh+742C5BJE9scQMmQKm33G Wpjw== 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 j6-20020a05640211c600b00452183f16cdsi7074732edw.479.2022.09.14.03.10.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 03:10:37 -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 09D7084AD8; Wed, 14 Sep 2022 12:10:34 +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 C1F7184A90; Wed, 14 Sep 2022 12:10:31 +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 826B7841B7 for ; Wed, 14 Sep 2022 12:10:29 +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 388441576; Wed, 14 Sep 2022 03:10:35 -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 974D53F71A; Wed, 14 Sep 2022 03:10:26 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Peter Griffin , Jerome Forissier , Peter Robinson , Kever Yang , Jagan Teki , Philipp Tomsich Subject: [PATCH v3 0/3] rockpi4: Add capsule update support Date: Wed, 14 Sep 2022 15:39:53 +0530 Message-Id: <20220914100956.480554-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 V2: * Use rockchip in the commit message summary instead of rockpi * Use num_image_type_guids instead of ROCKPI4_UPDATABLE_IMAGES macro * Move the board specific code out of this file into evb_rk3399.c * Add a function rockchip_capsule_update_board_setup() for setting up the board specific part needed for capsule updates 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 | 152 ++++++++++++++++++++++ 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, 240 insertions(+), 1 deletion(-)