From: Peng Fan <peng.fan@oss.nxp.com>
To: alice.guo@oss.nxp.com
Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>,
u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>,
Stefano Babic <sbabic@nabladev.com>,
Fabio Estevam <festevam@gmail.com>,
Greg Malysa <malysagreg@gmail.com>,
Arturs Artamonovs <arturs.artamonovs@analog.com>,
Vasileios Bimpikas <vasileios.bimpikas@analog.com>,
Utsav Agarwal <utsav.agarwal@analog.com>,
Nathan Barrett-Morrison <nathan.morrison@timesys.com>,
Kuan-Wei Chiu <visitorckw@gmail.com>,
Jerome Forissier <jerome.forissier@arm.com>,
Peng Fan <peng.fan@nxp.com>,
Raymond Mao <raymond.mao@riscstar.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Stefan Roese <stefan.roese@mailbox.org>,
Mattijs Korpershoek <mkorpershoek@kernel.org>,
Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>,
Ralph Siemsen <ralph.siemsen@linaro.org>,
Boon Khai Ng <boon.khai.ng@altera.com>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Christian Marangi <ansuelsmth@gmail.com>,
Ian Roberts <ian.roberts@timesys.com>, Ye Li <ye.li@nxp.com>,
Jacky Bai <ping.bai@nxp.com>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Sam Protsenko <semen.protsenko@linaro.org>,
Alice Guo <alice.guo@nxp.com>
Subject: Re: [PATCH v3 2/4] misc: ele_api: Add support for XSPI SET GMID command
Date: Tue, 3 Mar 2026 11:29:31 +0800 [thread overview]
Message-ID: <aaZVm03WW1iRuxLX@shlinux89> (raw)
In-Reply-To: <20260303-xspi-v1-2-8383ba6fdda8@nxp.com>
On Tue, Mar 03, 2026 at 09:10:27AM +0800, alice.guo@oss.nxp.com wrote:
>From: Ye Li <ye.li@nxp.com>
>
>The XSPI SET GMID command is used to assign GMID ownership to the
>requester, allowing access to protected XSPI control registers. This API
>must be called in SPL if XSPI GMID-protected settings need to be
>modified. Otherwise, XSPI configuration depends on the previous GMID
>owner to provide the correct settings.
>
>Signed-off-by: Ye Li <ye.li@nxp.com>
>Signed-off-by: Alice Guo <alice.guo@nxp.com>
>---
> arch/arm/include/asm/mach-imx/ele_api.h | 2 ++
> drivers/misc/imx_ele/ele_api.c | 28 ++++++++++++++++++++++++++++
> 2 files changed, 30 insertions(+)
>
>diff --git a/arch/arm/include/asm/mach-imx/ele_api.h b/arch/arm/include/asm/mach-imx/ele_api.h
>index 4e1afc42bd8..04e7f20a2a6 100644
>--- a/arch/arm/include/asm/mach-imx/ele_api.h
>+++ b/arch/arm/include/asm/mach-imx/ele_api.h
>@@ -49,6 +49,7 @@
> #define ELE_ATTEST_REQ (0xDB)
> #define ELE_RELEASE_PATCH_REQ (0xDC)
> #define ELE_OTP_SEQ_SWITH_REQ (0xDD)
>+#define ELE_SET_GMID_REQ (0xE4)
> #define ELE_WRITE_SHADOW_REQ (0xF2)
> #define ELE_READ_SHADOW_REQ (0xF3)
We should drop (), but to keep code consistent, it is fine here.
>
>@@ -162,6 +163,7 @@ int ele_return_lifecycle_update(ulong signed_msg_blk, u32 *response);
> int ele_start_rng(void);
[...]
>+ printf("Error: %s: ret %d, response 0x%x\n",
>+ __func__, ret, msg.data[0]);
>+
>+ if (response)
>+ *response = msg.data[0];
>+
>+ return ret;
>+}
Reviewed-by: Peng Fan <peng.fan@nxp.com>
>
>--
>2.43.0
>
next prev parent reply other threads:[~2026-03-03 3:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 1:10 [PATCH v3 0/4] Enable XSPI1 on i.MX943 EVK board alice.guo
2026-03-03 1:10 ` [PATCH v3 1/4] spi: nxp_xspi: Add new driver for NXP XSPI controller alice.guo
2026-03-03 3:27 ` Peng Fan
2026-03-03 1:10 ` [PATCH v3 2/4] misc: ele_api: Add support for XSPI SET GMID command alice.guo
2026-03-03 3:29 ` Peng Fan [this message]
2026-03-03 1:10 ` [PATCH v3 3/4] imx94_evk: Get ownership of XSPI control registers protected by GMID in SPL alice.guo
2026-03-03 3:30 ` Peng Fan
2026-03-03 1:10 ` [PATCH v3 4/4] imx943_evk: Enable XSPI1 alice.guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aaZVm03WW1iRuxLX@shlinux89 \
--to=peng.fan@oss.nxp.com \
--cc=alice.guo@nxp.com \
--cc=alice.guo@oss.nxp.com \
--cc=ansuelsmth@gmail.com \
--cc=arturs.artamonovs@analog.com \
--cc=boon.khai.ng@altera.com \
--cc=festevam@gmail.com \
--cc=ian.roberts@timesys.com \
--cc=jerome.forissier@arm.com \
--cc=malysagreg@gmail.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=mkorpershoek@kernel.org \
--cc=nathan.morrison@timesys.com \
--cc=neil.armstrong@linaro.org \
--cc=patrice.chotard@foss.st.com \
--cc=peng.fan@nxp.com \
--cc=ping.bai@nxp.com \
--cc=piotr.wojtaszczyk@timesys.com \
--cc=ralph.siemsen@linaro.org \
--cc=raymond.mao@riscstar.com \
--cc=sbabic@nabladev.com \
--cc=semen.protsenko@linaro.org \
--cc=stefan.roese@mailbox.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
--cc=utsav.agarwal@analog.com \
--cc=vasileios.bimpikas@analog.com \
--cc=visitorckw@gmail.com \
--cc=ye.li@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.