From: u-boot@emagii.com
To: u-boot@lists.denx.de
Cc: marex@denx.de, monstr@monstr.eu, sjg@chromium.org,
Ulf Samuelsson <ulf@emagii.com>
Subject: [PATCH 2/4] cmd/mtd.c: Support FPGAs in mtd command
Date: Sat, 11 Feb 2023 11:07:41 +0100 [thread overview]
Message-ID: <20230211100743.12087-3-u-boot@emagii.com> (raw)
In-Reply-To: <20230211100743.12087-1-u-boot@emagii.com>
From: Ulf Samuelsson <ulf@emagii.com>
Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
---
cmd/mtd.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/cmd/mtd.c b/cmd/mtd.c
index eb6e2d6892..09d5fdaa11 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -158,6 +158,9 @@ static void mtd_show_device(struct mtd_info *mtd)
case MTD_MLCNANDFLASH:
printf("MLC NAND flash\n");
break;
+ case MTD_FPGA:
+ printf("FPGA\n");
+ break;
case MTD_ABSENT:
default:
printf("Unknown\n");
@@ -275,6 +278,11 @@ static int do_mtd_io(struct cmd_tbl *cmdtp, int flag, int argc,
raw = strstr(cmd, ".raw");
woob = strstr(cmd, ".oob");
write_empty_pages = !has_pages || strstr(cmd, ".dontskipff");
+ if (mtd->type == MTD_FPGA) {
+ raw = true;
+ woob = false;
+ write_empty_pages = true;
+ }
argc -= 2;
argv += 2;
--
2.17.1
next prev parent reply other threads:[~2023-02-11 10:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-11 10:07 [PATCH 0/4] FPGAs as Memory Technology Devices in U-Boot u-boot
2023-02-11 10:07 ` [PATCH 1/4] include/mtd/mtd-abi.h: Add FPGA as MTD device u-boot
2023-02-11 10:07 ` u-boot [this message]
2023-02-11 10:07 ` [PATCH 3/4] mtd/fpga: add fpga directory to mtd (with Cyclone 10) u-boot
2023-02-12 19:31 ` Marek Vasut
2023-02-12 19:52 ` Ulf Samuelsson
2023-02-12 20:01 ` Marek Vasut
2023-02-12 22:07 ` Ulf Samuelsson
2023-02-12 22:40 ` Marek Vasut
2023-02-13 9:30 ` Ulf Samuelsson
2023-02-20 16:17 ` Marek Vasut
2023-02-20 21:29 ` Ulf Samuelsson
2023-02-20 22:34 ` Marek Vasut
2023-02-20 23:47 ` Ulf Samuelsson
2023-02-21 1:13 ` Marek Vasut
2023-02-21 9:08 ` Michael Walle
2023-02-21 10:42 ` Ulf Samuelsson
2023-02-21 11:19 ` Michael Walle
2023-02-21 11:20 ` Michael Walle
2023-02-21 15:37 ` Ulf Samuelsson
2023-02-21 16:01 ` Michael Walle
2023-02-21 10:58 ` Ulf Samuelsson
2023-02-22 19:51 ` Steffen Dirkwinkel
2023-02-23 8:28 ` Ulf Samuelsson
2023-02-23 8:51 ` Steffen Dirkwinkel
2023-02-23 8:51 ` Steffen Dirkwinkel
2023-02-21 11:54 ` Ulf Samuelsson
2023-02-11 10:07 ` [PATCH 4/4] mtd/Kconfig,Makefile support FPGA u-boot
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=20230211100743.12087-3-u-boot@emagii.com \
--to=u-boot@emagii.com \
--cc=marex@denx.de \
--cc=monstr@monstr.eu \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=ulf@emagii.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox