Linux-SPI Archive mirror
 help / color / mirror / Atom feed
From: Witold Sadowski <wsadowski@marvell.com>
To: <linux-spi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<broonie@kernel.org>
Cc: Witold Sadowski <wsadowski@marvell.com>
Subject: [PATCH] mtd: spi-nor: macronix: Add support for mx25um51245g
Date: Thu, 28 Mar 2024 04:52:25 -0700	[thread overview]
Message-ID: <20240328115225.1783-1-wsadowski@marvell.com> (raw)

The Macronix mx25um51245g is a 1.8V, 512Mbit (64MB) device that
supports x1, or x8 operation.

Tested on Marvell Octeon SoC hardware with a Cadence xSPI controller.

Signed-off-by: Witold Sadowski <wsadowski@marvell.com>
---
 drivers/mtd/spi-nor/macronix.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index ea6be95e75a5..f5fbdb7912e0 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -182,6 +182,12 @@ static const struct flash_info macronix_nor_parts[] = {
 		.name = "mx25l3255e",
 		.size = SZ_4M,
 		.no_sfdp_flags = SECT_4K,
+	}, {
+                .id = SNOR_ID(0xc2, 0x80, 0x3a),
+                .name = "mx25um51245g",
+                .size = SZ_64M,
+                .no_sfdp_flags = SECT_4K,
+                .fixup_flags = SPI_NOR_4B_OPCODES,
 	}
 };
 
-- 
2.17.1


             reply	other threads:[~2024-03-28 11:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28 11:52 Witold Sadowski [this message]
2024-04-02  8:34 ` [PATCH] mtd: spi-nor: macronix: Add support for mx25um51245g Michael Walle

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=20240328115225.1783-1-wsadowski@marvell.com \
    --to=wsadowski@marvell.com \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).