From patchwork Mon Feb 12 07:47:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 772038 Delivered-To: patch@linaro.org Received: by 2002:adf:9dca:0:b0:33b:4db1:f5b3 with SMTP id q10csp2000852wre; Sun, 11 Feb 2024 23:50:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEL0zEMht+zbdTLEfFpnbheOw2IhMeXzXyObmoVN1lPNelwHlJh/0GS4y7zhjuKHvSofoB8 X-Received: by 2002:a17:906:1b42:b0:a3c:c674:ccd7 with SMTP id p2-20020a1709061b4200b00a3cc674ccd7mr455897ejg.23.1707724220417; Sun, 11 Feb 2024 23:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707724220; cv=none; d=google.com; s=arc-20160816; b=aZhpkHp931FYkQxsAfnGFEmX1dEpiqO+LUL2853SylDI8th7kqXwAxcJLgKgx8kHlp qbLjFbGFIC91CN8VpnNJONkC+OATnEyJndDct+rhmQijPZRVB9QGtFDzzQ8QAV+KrTRY ArH/4LWe7hvBtWSr/eZ5PULmca/GAwdhqK6/bjYEofvykSczsC54EGONVAY5nux7wXu3 ljk0I6/MOq3uqJ++DgWdWfIJAeQ9lWXO1uT36sHK+2OD5LzEPaXUDX3pi3v8sCuaH6O0 Ln/NDXMxDd8ivjnoUuzcy3IUtnE0/EbCskqv4iVQJsukRXoYEo59hq+ENCyiATUHLl25 58lQ== 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=AtK6Qi5UM7Qg3AX/ti6qb25Q3uV7ztPw+xitm7+z7/A=; fh=XXtXJzdBgEtZrB9pQbRZBAq44Y6zQuZlzpZDRqA+3g8=; b=p591PV7GOShB6Cg6fM6KkpiausKPiNvrkdBKWQwwO4aNgRJ0VmhNR9gEz7XvnWRDuP veQHQyBT5/cdw9YQaqI5oI8flGDL+y9nbMg7cRHGbIZRQD8cBF0WpqS7/NzfN5A5jP7T 4u5o2f2JPRJIPetzpqM8jB0H5WIt+/tFx1bpmq4P3QWVFHx04Amnr/M5bxYAhfh2tj+o XoPU4W7lTpQ8VGvlGzjzJY6/zcTeNObvi8OYP7OslGFyqg85lNwxnFoNWnHlmlfIxYnF Uey9gZbMwuEyf5+rsoqST1uMOGnE0RunyW+cY68ufFOIqFqUD5M3tIEdM6RQE6Y0vxUs PxYg==; darn=linaro.org 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 X-Forwarded-Encrypted: i=1; AJvYcCVN+cFfilun0cbBOg/umnsEnvu0i1jGMUotTmAmA4RO0Tz5csG05d3Xbfnvn51xGDDWDDmSERe1wOgdyJLvwl6G4WX7i+zIjppY/1UIZrQu44g6VbQzyRm+F5sPyb6RTGI3LX8hrOyxEqGc35UvWSmeRncxHOKfFEPjlYTcsNc6cDCVhFYt3ijXwDUT1VjvJIWhhQHBpCzZMxvvshn71uhqgxyGTHfvaGVrmEwkLbX3mDqiqASd6AS2Q54UbkjFHGx9KT//pTsbDyL7K1XUu4XZKdBojuxkTINbRhLyzbAwgulM/qZE4KNtJjSGM3WJssek0EdqizvMxjuSKN5WQXPgUuUHXdQtwxfA9yuHZkYRdx/z0qlmYvcWtPpbnZh+Jc2AlANMGZpOFcr/b0zex5x3XeU0Ia0ZOjhTmPaZkMZMdnPdMDLMpFhiqDmuD+qh/VpIZNZSqmOg/HUREqcQ15K6D4P+NMfYJ9nZo+nHMC5ttN3shokuJRICsCuPEkJ1ZgGmcX3wc65hMeenpeTHN9MbRP1udFMBGm5CXzNONsuJp2ojC5TcbRj0MwYkOa0yY3VYJKSaj1n0u9hYXGjR+BsYg5ea6PXyalAXScilyW24FtsMCoNGRNLAr63upskXdS06iNZD7u3cixxKsUUEMxUFElNUgMMYmF8JoPt3IGTtD91FUKFwctPB2WvVheN1kyP2B+aystuZMgZ8RwSUqvjIeg155A/MiFyM8JfNTKnTXGbNcXKgJLiuac/WgW3G2u5uO+71QkdKsYWLEfgGiXm8UHmh5HZBt+T4BD6dM3Jv2fdY/jSr/GLi+PT4j64evJ509vJ1W3XCPKk4uVXFAngmDzpkRtJV9E+TjfSHwUDoOt8= 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 ss16-20020a170907039000b00a35256143f4si3579744ejb.447.2024.02.11.23.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 23:50:20 -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 2B70987F10; Mon, 12 Feb 2024 08:48:37 +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 7688287F10; Mon, 12 Feb 2024 08:48:36 +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,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 8416587EF9 for ; Mon, 12 Feb 2024 08:48:34 +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 930D0FEC; Sun, 11 Feb 2024 23:49:15 -0800 (PST) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C68843F762; Sun, 11 Feb 2024 23:48:30 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima , Patrice Chotard , Patrick Delaunay , Yann Gautier , Etienne Carriere , Michal Simek , Jassi Brar , Sughosh Ganu Subject: [PATCH v2 16/21] fwu: remove the config symbols for number of banks and images Date: Mon, 12 Feb 2024 13:17:07 +0530 Message-Id: <20240212074712.3657076-17-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240212074712.3657076-1-sughosh.ganu@linaro.org> References: <20240212074712.3657076-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.8 at phobos.denx.de X-Virus-Status: Clean With the migration to the FWU metadata version 2 structure, the values of number of banks and number of images per bank are now obtained from the metadata at runtime. Remove the now superfluous config symbols. Signed-off-by: Sughosh Ganu --- Changes since V1: None arch/sandbox/Kconfig | 6 ------ board/armltd/corstone1000/corstone1000.c | 2 +- lib/fwu_updates/Kconfig | 11 ----------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig index 0ce77de2fc..29013a5673 100644 --- a/arch/sandbox/Kconfig +++ b/arch/sandbox/Kconfig @@ -79,9 +79,3 @@ config SYS_FDT_LOAD_ADDR See `doc/arch/sandbox.rst` for more information. endmenu - -config FWU_NUM_BANKS - default 2 - -config FWU_NUM_IMAGES_PER_BANK - default 2 diff --git a/board/armltd/corstone1000/corstone1000.c b/board/armltd/corstone1000/corstone1000.c index 01c80aaf9d..15de738154 100644 --- a/board/armltd/corstone1000/corstone1000.c +++ b/board/armltd/corstone1000/corstone1000.c @@ -109,7 +109,7 @@ void fwu_plat_get_bootidx(uint *boot_idx) */ ret = fwu_get_active_index(boot_idx); if (ret < 0) { - *boot_idx = CONFIG_FWU_NUM_BANKS; + *boot_idx = 0; log_err("corstone1000: failed to read active index\n"); } } diff --git a/lib/fwu_updates/Kconfig b/lib/fwu_updates/Kconfig index d35247d0e5..6bb94f88d3 100644 --- a/lib/fwu_updates/Kconfig +++ b/lib/fwu_updates/Kconfig @@ -12,17 +12,6 @@ menuconfig FWU_MULTI_BANK_UPDATE if FWU_MULTI_BANK_UPDATE -config FWU_NUM_BANKS - int "Number of Banks defined by the platform" - help - Define the number of banks of firmware images on a platform - -config FWU_NUM_IMAGES_PER_BANK - int "Number of firmware images per bank" - help - Define the number of firmware images per bank. This value - should be the same for all the banks. - config FWU_TRIAL_STATE_CNT int "Number of times system boots in Trial State" default 3