diff mbox

[U-Boot] mtd/spi/macronix.c: add MX25L4005 and MX25L8005

Message ID 1303354299-26484-1-git-send-email-macpaul@andestech.com
State Accepted
Commit 2d722e0549375306c237131d894a2ef732ae0b07
Headers show

Commit Message

Macpaul Lin April 21, 2011, 2:51 a.m. UTC
Add support of MX25L4005 and MX25L8005 according to the datasheet
http://www.mct.net/download/macronix/mx25l8005.pdf

This patch has been tested with MX25L4005 and MX25L8005

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
---
 drivers/mtd/spi/macronix.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

Comments

Mike Frysinger April 21, 2011, 4:54 p.m. UTC | #1
On Wed, Apr 20, 2011 at 10:51 PM, Macpaul Lin wrote:
> Add support of MX25L4005 and MX25L8005 according to the datasheet
> http://www.mct.net/download/macronix/mx25l8005.pdf
>
> This patch has been tested with MX25L4005 and MX25L8005

thanks, added to my sf branch
-mike
Wolfgang Denk Aug. 2, 2011, 7:56 p.m. UTC | #2
Dear Macpaul Lin,

In message <1303354299-26484-1-git-send-email-macpaul@andestech.com> you wrote:
> Add support of MX25L4005 and MX25L8005 according to the datasheet
> http://www.mct.net/download/macronix/mx25l8005.pdf
> 
> This patch has been tested with MX25L4005 and MX25L8005
> 
> Signed-off-by: Macpaul Lin <macpaul@andestech.com>
> ---
>  drivers/mtd/spi/macronix.c |   16 ++++++++++++++++
>  1 files changed, 16 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/drivers/mtd/spi/macronix.c b/drivers/mtd/spi/macronix.c
index ff66f2a..90aa657 100644
--- a/drivers/mtd/spi/macronix.c
+++ b/drivers/mtd/spi/macronix.c
@@ -71,6 +71,22 @@  static inline struct macronix_spi_flash *to_macronix_spi_flash(struct spi_flash
 
 static const struct macronix_spi_flash_params macronix_spi_flash_table[] = {
 	{
+		.idcode = 0x2013,
+		.page_size = 256,
+		.pages_per_sector = 16,
+		.sectors_per_block = 16,
+		.nr_blocks = 8,
+		.name = "MX25L4005",
+	},
+	{
+		.idcode = 0x2014,
+		.page_size = 256,
+		.pages_per_sector = 16,
+		.sectors_per_block = 16,
+		.nr_blocks = 16,
+		.name = "MX25L8005",
+	},
+	{
 		.idcode = 0x2015,
 		.page_size = 256,
 		.pages_per_sector = 16,