From patchwork Tue Sep 6 06:58:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 602945 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp4269964mae; Mon, 5 Sep 2022 23:59:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR79Yya0jnwtTL2ym2ghNKtHe8GyG8JHURhXQJDEz4vq6094pelqRCC2bie4y9F6Mf94v8qF X-Received: by 2002:a05:6402:454:b0:447:59a8:fc7d with SMTP id p20-20020a056402045400b0044759a8fc7dmr47426738edw.68.1662447545263; Mon, 05 Sep 2022 23:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662447545; cv=none; d=google.com; s=arc-20160816; b=RvfF4nNQRFNLBdyt9tJ919Ussh8/WajLdGZaTtiT0K/g+ux5axwOSyuWvW6lU/fVvw GN30fuHD4ECx0q3RC0AL+K9quXmq5OEwW8xdNF6ootBxC65cozn3jEY/y8pefXIVAwgi QfKCoJI0fRL2bMbvLAq9iIN2tkky3Q8wuU6IcWE3RmbjRJv2oAvDy7VBh0RZCEjgLL/7 XuzlBu2ab0BECFak4NzDtepHJefwfXWalJ7U80XWsl13i0Z8TGyrjuUObogNWjh69swx f4Sh481lVRxSu+deMNQNFlt/xFJwWzin4Ow8/YBfwct5Qf2yx2HyN+758tS33ssShPcZ 5MAg== 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=t7ggdT3ObTjGdQicYGjSwDrZckGSjMHj72YT6sCrO6g=; b=r731Vf2zlhmvPXLkPzbA/mR6FJa296xfWUIlB8cuB9AUhN+prt+L6Alg2YHb32kU16 3iAQyoY/t4+hnfInNmmIYnreTadAf6Y7riFKqrEo+kEHRvSH9+nn7paBwvN9XK2CakDH jDvvfbSOhFwgHgVqGIl1MHUk0VJI9MN9iFRuFF28c3JkxRgXzWsuihDeFylES50nxjc/ onljlVZ/OfVi53UPf9xuRssJIsXDHogMCM/4qm5Ob6Oaef943iGcJEqEJMrlEUZ5jhh6 +9HeKaqDo4h7FwkapP4+MA9I3TBJYsI/1SeLHqTvTZZdlCPYiWxnVx7qYGZKAxNd377x 9shw== 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 nc20-20020a1709071c1400b0073d67d3313dsi11179022ejc.364.2022.09.05.23.59.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 23:59:05 -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 84A0C84A47; Tue, 6 Sep 2022 08:59:00 +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 B689284A38; Tue, 6 Sep 2022 08:58:58 +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 A7343849C4 for ; Tue, 6 Sep 2022 08:58:56 +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 12D66139F; Mon, 5 Sep 2022 23:59:02 -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 E91BA3F73D; Mon, 5 Sep 2022 23:59:21 -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 v2 0/3] rockpi4: Add capsule update support Date: Tue, 6 Sep 2022 12:28:20 +0530 Message-Id: <20220906065823.7413-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 Changes since V1: * Move the capsule update related functions to a more common place under mach-rockchip to facilitate further reuse. * Split the board related declarations into a separate patch. * Split the enabling of the feature into a separate patch. * Enable config symbols needed access of EFI variables. Sughosh Ganu (3): rockpi4: capsule: Add functions needed for supporting capsule updates rockpi4: board: Add firmware image information needed for capsule updates rockpi4: capsule: Enable UEFI capsule update on RockPi4 boards arch/arm/mach-rockchip/Kconfig | 1 + arch/arm/mach-rockchip/board.c | 185 +++++++++++++++++++++++++ board/rockchip/evb_rk3399/evb-rk3399.c | 14 ++ configs/rock-pi-4-rk3399_defconfig | 8 ++ configs/rock-pi-4c-rk3399_defconfig | 8 ++ include/configs/rk3399_common.h | 16 +++ 6 files changed, 232 insertions(+)