From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: abdellatif.elkhlifi@arm.com, u-boot@lists.denx.de, nd@arm.com
Subject: Re: [PATCH v1 3/6] sandbox64: add support for NVMXIP QSPI
Date: Tue, 7 Feb 2023 11:30:18 -0500 [thread overview]
Message-ID: <Y+J8mnatCaBW4ALd@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ35m7qoRRMoRC6NLzDEePftq_Ug8EOuwdLduzAXY6-D_w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3388 bytes --]
On Mon, Feb 06, 2023 at 09:02:38PM -0700, Simon Glass wrote:
> On Mon, 16 Jan 2023 at 10:28, <abdellatif.elkhlifi@arm.com> wrote:
> >
> > From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
> >
> > enable NVMXIP QSPI for sandbox 64-bit
> >
> > Adding two NVM XIP QSPI storage devices.
> >
> > Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
> > ---
> > arch/sandbox/dts/sandbox64.dts | 13 +++++++++++++
> > arch/sandbox/dts/test.dts | 14 ++++++++++++++
> > configs/sandbox64_defconfig | 1 +
> > drivers/nvmxip/nvmxip.c | 4 ++++
> > drivers/nvmxip/nvmxip.h | 3 +++
> > 5 files changed, 35 insertions(+)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> Nit below
>
> >
> > diff --git a/arch/sandbox/dts/sandbox64.dts b/arch/sandbox/dts/sandbox64.dts
> > index a9cd7908f8..aed3801af8 100644
> > --- a/arch/sandbox/dts/sandbox64.dts
> > +++ b/arch/sandbox/dts/sandbox64.dts
> > @@ -89,6 +89,19 @@
> > cs-gpios = <0>, <&gpio_a 0>;
> > };
> >
> > + nvmxip-qspi1@08000000 {
> > + compatible = "nvmxip,qspi";
> > + reg = <0x0 0x08000000 0x0 0x00200000>;
> > + lba_shift = <9>;
> > + lba = <4096>;
> > + };
> > +
> > + nvmxip-qspi2@08200000 {
> > + compatible = "nvmxip,qspi";
> > + reg = <0x0 0x08200000 0x0 0x00100000>;
> > + lba_shift = <9>;
> > + lba = <2048>;
> > + };
> > };
> >
> > #include "sandbox.dtsi"
> > diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
> > index dffe10adbf..c3ba0a225e 100644
> > --- a/arch/sandbox/dts/test.dts
> > +++ b/arch/sandbox/dts/test.dts
> > @@ -1745,6 +1745,20 @@
> > compatible = "u-boot,fwu-mdata-gpt";
> > fwu-mdata-store = <&mmc0>;
> > };
> > +
> > + nvmxip-qspi1@08000000 {
> > + compatible = "nvmxip,qspi";
> > + reg = <0x08000000 0x00200000>;
> > + lba_shift = <9>;
> > + lba = <4096>;
> > + };
> > +
> > + nvmxip-qspi2@08200000 {
> > + compatible = "nvmxip,qspi";
> > + reg = <0x08200000 0x00100000>;
> > + lba_shift = <9>;
> > + lba = <2048>;
> > + };
> > };
> >
> > #include "sandbox_pmic.dtsi"
> > diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig
> > index ba45ac0b71..cd4dadb190 100644
> > --- a/configs/sandbox64_defconfig
> > +++ b/configs/sandbox64_defconfig
> > @@ -259,3 +259,4 @@ CONFIG_FWU_MULTI_BANK_UPDATE=y
> > CONFIG_UNIT_TEST=y
> > CONFIG_UT_TIME=y
> > CONFIG_UT_DM=y
> > +CONFIG_NVMXIP_QSPI=y
> > \ No newline at end of file
> > diff --git a/drivers/nvmxip/nvmxip.c b/drivers/nvmxip/nvmxip.c
> > index c276fb147e..ea9b9bfa48 100644
> > --- a/drivers/nvmxip/nvmxip.c
> > +++ b/drivers/nvmxip/nvmxip.c
> > @@ -87,6 +87,10 @@ int nvmxip_init(struct udevice *udev)
> > priv_data->udev = udev;
> > priv_data->plat_data = plat_data;
> >
> > +#if CONFIG_IS_ENABLED(SANDBOX64)
>
> if (IS_ENABLED(CONFIG_SANDBOX64))
>
>
> > + sandbox_set_enable_memio(true);
> > +#endif
Isn't that just going to introduce a warning about undeclared function
on non-sandbox64?
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2023-02-07 16:30 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 17:28 [PATCH v1 0/6] introduce NVM XIP block storage emulation abdellatif.elkhlifi
2023-01-16 17:28 ` [PATCH v1 1/6] drivers/nvmxip: " abdellatif.elkhlifi
2023-02-07 18:38 ` Simon Glass
2023-04-17 9:19 ` Abdellatif El Khlifi
2023-01-16 17:28 ` [PATCH v1 2/6] sandbox64: fix: return unsigned long in readq() abdellatif.elkhlifi
2023-01-16 17:28 ` [PATCH v1 3/6] sandbox64: add support for NVMXIP QSPI abdellatif.elkhlifi
2023-02-07 4:02 ` Simon Glass
2023-02-07 16:30 ` Tom Rini [this message]
2023-02-07 18:38 ` Simon Glass
2023-04-17 9:25 ` Abdellatif El Khlifi
2023-01-16 17:28 ` [PATCH v1 4/6] corstone1000: add NVM XIP QSPI device tree node abdellatif.elkhlifi
2023-01-16 17:28 ` [PATCH v1 5/6] corstone1000: enable NVM XIP QSPI flash abdellatif.elkhlifi
2023-01-16 17:28 ` [PATCH v1 6/6] sandbox64: add a test case for UCLASS_NVMXIP abdellatif.elkhlifi
2023-02-07 4:02 ` Simon Glass
2023-04-17 9:21 ` Abdellatif El Khlifi
2023-02-06 14:17 ` [PATCH v1 0/6] introduce NVM XIP block storage emulation Abdellatif El Khlifi
2023-02-07 4:02 ` Simon Glass
2023-04-17 9:11 ` [PATCH v2 0/7] " Abdellatif El Khlifi
2023-04-17 9:11 ` [PATCH v2 1/7] drivers/mtd/nvmxip: " Abdellatif El Khlifi
2023-04-17 9:11 ` [PATCH v2 2/7] drivers/mtd/nvmxip: introduce QSPI XIP driver Abdellatif El Khlifi
2023-04-17 9:11 ` [PATCH v2 3/7] sandbox64: fix: return unsigned long in readq() Abdellatif El Khlifi
2023-04-19 1:49 ` Simon Glass
2023-04-17 9:11 ` [PATCH v2 4/7] sandbox64: add support for NVMXIP QSPI Abdellatif El Khlifi
2023-04-17 9:11 ` [PATCH v2 5/7] corstone1000: add NVM XIP QSPI device tree node Abdellatif El Khlifi
2023-04-17 9:11 ` [PATCH v2 6/7] corstone1000: enable NVM XIP QSPI flash Abdellatif El Khlifi
2023-04-17 9:11 ` [PATCH v2 7/7] sandbox64: add a test case for UCLASS_NVMXIP Abdellatif El Khlifi
2023-04-27 23:23 ` [PATCH v2 0/7] introduce NVM XIP block storage emulation Tom Rini
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=Y+J8mnatCaBW4ALd@bill-the-cat \
--to=trini@konsulko.com \
--cc=abdellatif.elkhlifi@arm.com \
--cc=nd@arm.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox