Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1457488
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jagan Teki <jteki@openedev.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v2] mtd: spi-nor: Add s25fs256s1 spi-nor flash support |
| Date | Sun, 07 Aug 2016 21:30:01 +0200 |
| Message-ID | <s3BVL-7VO-1@gated-at.bofh.it> (permalink) |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=RDfJtv/Sg9WirsnoxxZQwMQb4ieym/V15F1NBBYvmzY=; b=mM6Wggb/s8c8Idw0b4eqekZSBeQXMIBn5btuefe6W9m8Y93MClBlDzWg+78Nl4ilF8 XLec3/NkhKXYjDjX5oc/fejm6oEYsQ1mxkPhBMuJrFWLMI8CyISbhE7TZovX4J/BMZux //Bm+yRZPC4opLCGnKbPXgAsYrnFXdWPlBiDeQy8B9ypZ0cTMOcSOEhq0hq6wJJaHSq0 i62mG4GhwWSE5QTib/DOvwRitTSJ8bQHlD+t/Bs3nqdZGemP5qn6d5IHlVABs5vexfbm lTj5aNI93AXDRx9S0XKKBAqD7b0UXqAzHPDXUK7L9fbt57Yu/cpRsTgzq4B7Tl74IFQT o/oQ== |
| X-Gm-Message-State | AEkoout65Oi02CNJ87YaSGvjXiTrGlDgST1szJNpCT4/qszc2siqt1CFnZkhUVvYFSe5IA== |
| X-Received | by 10.98.60.20 with SMTP id j20mr155445044pfa.114.1470597792340; Sun, 07 Aug 2016 12:23:12 -0700 (PDT) |
| X-Mailer | git-send-email 2.7.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 41 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | David Woodhouse <dwmw2@infradead.org>, linux-kernel@vger.kernel.org, Jagan Teki <jteki@openedev.com>, Brian Norris <computersforpeace@gmail.com>, Yunhui Cui <yunhui.cui@nxp.com>, Michael Trimarchi <michael@amarulasolutions.com> |
| X-Original-Date | Mon, 8 Aug 2016 00:52:10 +0530 |
| X-Original-Message-ID | <1470597730-10400-1-git-send-email-jteki@openedev.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1457488 |
Show key headers only | View raw
Add Spansion s25fs256s1 spi-nor flash to the list of spi_nor_ids.
In spansion S25FS-S family the physical sectors are grouped as
normal and parameter sectors. Parameter sectors are 4kB in size
with 8 set located at the bottom or top address of a device.
Normal sectors are similar to other flash family with sizes of
64kB or 32 kB.
To erase whole flash using sector erase(D8h or DCh) won't effect
the parameter sectors, so in order to erase these we must use 4K
sector erase commands (20h or 21h) separately.
So better to erase the whole flash using 4K sector erase instead
of detecting these family parts again and do two different erase
operations.
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Yunhui Cui <yunhui.cui@nxp.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jteki@openedev.com>
---
Changes for v2:
- Fix wrong vendor name in commit message
drivers/mtd/spi-nor/spi-nor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index d0fc165..6ad7779 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -901,6 +901,7 @@ static const struct flash_info spi_nor_ids[] = {
{ "s25sl064p", INFO(0x010216, 0x4d00, 64 * 1024, 128, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
{ "s25fl256s0", INFO(0x010219, 0x4d00, 256 * 1024, 128, 0) },
{ "s25fl256s1", INFO(0x010219, 0x4d01, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+ { "s25fs256s1", INFO6(0x010219, 0x4d0181, 64 * 1024, 512, SECT_4K) },
{ "s25fl512s", INFO(0x010220, 0x4d00, 256 * 1024, 256, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
{ "s70fl01gs", INFO(0x010221, 0x4d00, 256 * 1024, 256, 0) },
{ "s25sl12800", INFO(0x012018, 0x0300, 256 * 1024, 64, 0) },
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2] mtd: spi-nor: Add s25fs256s1 spi-nor flash support Jagan Teki <jteki@openedev.com> - 2016-08-07 21:30 +0200
csiph-web