| Message ID | 20261107143241.2236511-27-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Delivered-To: michael@amarulasolutions.com
Received: by 2002:a05:7300:aca6:b0:36a:3487:1c26 with SMTP id
cr38csp769531dyb;
Sat, 7 Nov 2026 06:33:38 -0800 (PST)
X-Received: by 2002:a05:600c:1d0c:b0:4b2:612d:908c with SMTP id
5b1f17b1804b1-4b6df9beb91mr104003775e9.34.1794062018219;
Sat, 07 Nov 2026 06:33:38 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1794062018; cv=none;
d=google.com; s=arc-20260327;
b=rm+hM76XTUNEgvMkBiVqWhk9aeVIm1OKOTeFWmW8bemfk4pD6+sI4+QYAUgiM4r7Xq
kB7IiXI8pOkTvA4MzblKaxZQkug0Ida5Do+OG0yXpck2euv8f3R2M5KS10SNTc4GCwjL
9KuIjxRIJHolskLhKlK5rt1kNJCAwbaWD7O11jDjaDWL+2/GRAgrQqUYf6hGJI7X3Z7n
QtP8NP8Yqx2hj564wTadERmiLXSgauttIBWL8GkprKrspoHvDQcK8g2WYAhMYaBmJCAL
Ei0NMYnvRPC10oX1p7ZUm+EjRvUK0lReyh5JAIriccJCN70IbQ5L5CxhgizGuBgu2ZgU
dzew==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=Is8YiIAkPRvCdo9EIVYRvpHHVxIIDYQGu3g9U2pOqrw=;
fh=UXIMprPCznUKJm1JNU47zytEIDMksTVz0BotqoGZLbk=;
b=UWxwBeTVDNLHlFsP2PdnTmWvoo951Ai3iMYljh2iigrmlKBBNR7Db2o/wPjKBsRgZW
JhvmeaP3htbHz3Tw0JgJo2xTgS6Ib/Ct5oaVjeUMpUkc4ORaTEL4UWdin9v4N5K0S94V
MlY+xHZKb3g1A1ctlJcGSuwmgxW1S/seSuzC14QnxjMpBcOi68+hdWbswA+w+DeW3su1
jszYVpB1nJ05V+6tM5/J/V4Fwx2xcEmg/KmTHGI6dlzVj8+mVHLc1c6RAsqNas3vgfHW
5n9vNuCyN86jMsyUFJ9r4oNDA6r/OkI8iYTNP2IFIqEIynbfMgBRQenA+83YloqCtagJ
TpaA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=DXOLIxLz;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
ffacd0b85a97d-492d7701ad8sor811061f8f.15.2026.11.07.06.33.38
for <michael@amarulasolutions.com>
(Google Transport Security);
Sat, 07 Nov 2026 06:33:38 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=DXOLIxLz;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1794062017; x=1794666817;
darn=amarulasolutions.com;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=Is8YiIAkPRvCdo9EIVYRvpHHVxIIDYQGu3g9U2pOqrw=;
b=DXOLIxLzbvek5924QKBa01a40gUhhWDk7ffeaq/yCtQRt2+ij+meB1FTdGP2BaRYGx
dVYEVHByZgv08aGPiak3ib746uZTRqGydLlYRyj+iDqL7t97Wz3+GBRFrhGCxv8E0BlY
FHHEwesrq/qwXv9W0tIOVhf+KxfpBrT2ID3Zk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794062017; x=1794666817;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=Is8YiIAkPRvCdo9EIVYRvpHHVxIIDYQGu3g9U2pOqrw=;
b=a9HAWOuRTDxb37lKLrkoYQHxJWC9rk2wVp/D0yEp1rndMYTpCHT3KYfYVVwilRRfDw
Go9hU1w4PI2HH0xGIazfOfXM0fdDwKi3EuvR8FSvPjmB4fIAzqcfhAu8HsHhrPYh2fWV
6QNnKya7jgj/1MK8NDUtk9kUjanY20c2u2nPHoUJ6imTYGJIddgDX8JtHRW9u58uRtNK
rzilvOSatc5pV7aMZr/XIMe4QvPQZaLyKNINa6/f3jfyP5XjA+VsX2ZGD5W7PdVqMYz4
xvRJDtQyPJPHgIWL0/xhYnwHerrqzRTjNc+6lm+GNIvPYWwmLu6yPr9NsxAQO9sWDrPt
m/QA==
X-Gm-Message-State: APuU4Z+gKj1OnaUtkH56jn8JFrEEK38X538YLvkVAi4E5JsDmFsvRA5U
+z2TKa59+7v5RvS12OEN87EDtv2/IV+kry0z4wGLTkXq9cfcX9a/Lw7jl2PLhMXK3uF3Hg==
X-Gm-Gg: AYBFou2aq7NRec6seClm9aHkPoyvlx0WBvNeW+OWNzrt/inZoL2O+O/k0IRv224w5QK
7RLtcsKKSI/Grs8QA72Le5homwHm33WxfMshIG6M5bCipvdkEAfYYbHj+15/wRVK6hx9jJxdF7x
cYrbavKuuw9JkR+EUpcWjwJJOUEjLN1tj0TLtE2s8B2Rk+3lqAIvKCDjRhJA8m6npceep/N2wOD
UqYI+qJlTBXUSeyf1D/Y2Nuvh6d8+s7v5D9pON6geK5X4GmNKlFe8CRuW4k7rYuPRMfPqV3VvkR
TkJUI1ZV4i+ZX2Cxx0DvChxT1kDZyvDepJOsHvIzSd19mIry/keBuks6FqY2pvamZH/c8meXEb2
sWhb0oQI4RthKe2yAmRRfFe6AHSgNMPsKTODYENAZWQhQcFb5qx3zoSdprrM77eokYitGEL0CoQ
1sy7eYhw6eEUCTyVfXj9L0qImf0je/ZPIX3ldU0EjhosGgydH9XrmhoiJ95LBGygSSYQqFGvGXp
Hb8ypfzbeaOI7AZsnhAg3DTxKJ03zIsS6v5NZwALlNhvoWu5lUNPf8HLEkA8tpadvvbMUAy+Y3g
MaEY4JknOBGSqm+4SGW6VBT21s+rpP+YjerYbyOy0o5Yz5O8tiJTPiuhb02qJyLnhiKSjE2BMhP
wMWh5knZRG0aBerJaO+lM+UWoJQq67ua9I7FjbYTt8G8yNCLLy5QM2yobf0AkZPtiXRCO0fT9ST
bgd1BrY1yKgI8Qa2v/bJXnvWaolpnXLHx0Rof71aEs1+nm+2U=
X-Received: by 2002:a5d:5e86:0:b0:48f:ead0:631a with SMTP id
ffacd0b85a97d-49277e91eb9mr10361564f8f.47.1794062017580;
Sat, 07 Nov 2026 06:33:37 -0800 (PST)
Return-Path: <dario.binacchi@amarulasolutions.com>
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-79-14-29-58.business.telecomitalia.it. [79.14.29.58])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-492d7cc6187sm10027247f8f.46.2026.11.07.06.33.36
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 07 Nov 2026 06:33:37 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: michael@amarulasolutions.com,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Tom Rini <trini@konsulko.com>,
u-boot@lists.denx.de,
u-boot@lists.u-boot-project.org,
uboot-stm32@st-md-mailman.stormreply.com
Subject: [PATCH v2 26/35] arm: stm32mp: move FWU multi-bank support to SoC
code
Date: Sat, 7 Nov 2026 15:32:16 +0100
Message-ID: <20261107143241.2236511-27-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20261107143241.2236511-1-dario.binacchi@amarulasolutions.com>
References: <20261107143241.2236511-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
|
| Series |
Add Engicam MicroGEA-STM32MP257D-RMM board support
|
|
Commit Message
Dario Binacchi
Nov. 7, 2026, 2:32 p.m. UTC
The FWU multi-bank support, i.e. the boot index read from the TAMP
backup register and the selection of the partitions of the booted bank,
only depends on the SoC and the TF-A, so it is not specific to the
STMicroelectronics boards.
Move it from board/st/common to the SoC code, renaming it to fwu.c as
the stm32mp_ prefix is redundant there, so that other vendor boards can
use it too.
No functional change intended.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
arch/arm/mach-stm32mp/Makefile | 1 +
board/st/common/stm32mp_fwu.c => arch/arm/mach-stm32mp/fwu.c | 0
board/st/common/Makefile | 1 -
3 files changed, 1 insertion(+), 1 deletion(-)
rename board/st/common/stm32mp_fwu.c => arch/arm/mach-stm32mp/fwu.c (100%)
--
2.43.0
Comments
On 11/7/26 15:32, Dario Binacchi wrote: > The FWU multi-bank support, i.e. the boot index read from the TAMP > backup register and the selection of the partitions of the booted bank, > only depends on the SoC and the TF-A, so it is not specific to the > STMicroelectronics boards. > > Move it from board/st/common to the SoC code, renaming it to fwu.c as > the stm32mp_ prefix is redundant there, so that other vendor boards can > use it too. > > No functional change intended. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > (no changes since v1) > > arch/arm/mach-stm32mp/Makefile | 1 + > board/st/common/stm32mp_fwu.c => arch/arm/mach-stm32mp/fwu.c | 0 > board/st/common/Makefile | 1 - > 3 files changed, 1 insertion(+), 1 deletion(-) > rename board/st/common/stm32mp_fwu.c => arch/arm/mach-stm32mp/fwu.c (100%) > > diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile > index 853469f3c503..e22207465658 100644 > --- a/arch/arm/mach-stm32mp/Makefile > +++ b/arch/arm/mach-stm32mp/Makefile > @@ -22,4 +22,5 @@ ifndef CONFIG_XPL_BUILD > obj-y += cmd_stm32prog/ > obj-$(CONFIG_CMD_STM32KEY) += cmd_stm32key.o > obj-$(CONFIG_TFABOOT) += boot_params.o > +obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu.o > endif > diff --git a/board/st/common/stm32mp_fwu.c b/arch/arm/mach-stm32mp/fwu.c > similarity index 100% > rename from board/st/common/stm32mp_fwu.c > rename to arch/arm/mach-stm32mp/fwu.c > diff --git a/board/st/common/Makefile b/board/st/common/Makefile > index 36dfaddfa0eb..122b13c3aa8d 100644 > --- a/board/st/common/Makefile > +++ b/board/st/common/Makefile > @@ -9,7 +9,6 @@ obj-$(CONFIG_PMIC_STPMIC1) += stpmic1.o > ifeq ($(CONFIG_ARCH_STM32MP),y) > obj-$(CONFIG_SET_DFU_ALT_INFO) += stm32mp_dfu.o > obj-$(CONFIG_$(PHASE_)DFU_VIRT) += stm32mp_dfu_virt.o > -obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += stm32mp_fwu.o > endif > > obj-$(CONFIG_TYPEC_STUSB160X) += stusb160x.o Hi Dario Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Thanks Patrice
diff --git a/arch/arm/mach-stm32mp/Makefile b/arch/arm/mach-stm32mp/Makefile index 853469f3c503..e22207465658 100644 --- a/arch/arm/mach-stm32mp/Makefile +++ b/arch/arm/mach-stm32mp/Makefile @@ -22,4 +22,5 @@ ifndef CONFIG_XPL_BUILD obj-y += cmd_stm32prog/ obj-$(CONFIG_CMD_STM32KEY) += cmd_stm32key.o obj-$(CONFIG_TFABOOT) += boot_params.o +obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += fwu.o endif diff --git a/board/st/common/stm32mp_fwu.c b/arch/arm/mach-stm32mp/fwu.c similarity index 100% rename from board/st/common/stm32mp_fwu.c rename to arch/arm/mach-stm32mp/fwu.c diff --git a/board/st/common/Makefile b/board/st/common/Makefile index 36dfaddfa0eb..122b13c3aa8d 100644 --- a/board/st/common/Makefile +++ b/board/st/common/Makefile @@ -9,7 +9,6 @@ obj-$(CONFIG_PMIC_STPMIC1) += stpmic1.o ifeq ($(CONFIG_ARCH_STM32MP),y) obj-$(CONFIG_SET_DFU_ALT_INFO) += stm32mp_dfu.o obj-$(CONFIG_$(PHASE_)DFU_VIRT) += stm32mp_dfu_virt.o -obj-$(CONFIG_FWU_MULTI_BANK_UPDATE) += stm32mp_fwu.o endif obj-$(CONFIG_TYPEC_STUSB160X) += stusb160x.o