Patchwork [U-Boot] spi/eon: add support for new EON spi flash EN25Q32B

login
register
mail settings
Submitter Kumar Gala
Date Oct. 3, 2011, 2:37 p.m.
Message ID <1317652628-31948-1-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/117450/
State Superseded
Headers show

Comments

Kumar Gala - Oct. 3, 2011, 2:37 p.m.
From: Shaohui Xie <Shaohui.Xie@freescale.com>

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 drivers/mtd/spi/eon.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Mike Frysinger - Oct. 3, 2011, 2:52 p.m.
this has already been merged
-mike
Kumar Gala - Oct. 3, 2011, 4 p.m.
On Oct 3, 2011, at 9:37 AM, Kumar Gala wrote:

> From: Shaohui Xie <Shaohui.Xie@freescale.com>
> 
> Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
> drivers/mtd/spi/eon.c |    8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)

Thanks, missed it ;)

- k

Patch

diff --git a/drivers/mtd/spi/eon.c b/drivers/mtd/spi/eon.c
index 806b44e..4c64494 100644
--- a/drivers/mtd/spi/eon.c
+++ b/drivers/mtd/spi/eon.c
@@ -41,6 +41,14 @@  static const struct eon_spi_flash_params eon_spi_flash_table[] = {
 		.nr_sectors = 4096,
 		.name = "EN25Q128",
 	},
+	{
+		.idcode1 = 0x16,
+		.page_size = 256,
+		.pages_per_sector = 16,
+		.sectors_per_block = 16,
+		.nr_sectors = 1024,
+		.name = "EN25Q32B",
+	},
 };
 
 static int eon_erase(struct spi_flash *flash, u32 offset, size_t len)