Skip to contentSkip to conversation

SPI flash ID patches

U-Boot New Ben Dooks 2 participants 7 messages Nov 17, 2014 – Dec 18, 2014 Memory technology devices (MTD)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

These are a pair of patches adding some SPI flashes that were evaluated on a Marvell Kirkwood system.

author
#1 lore raw

PATCH 1/2 SPI: Add S25FL064A and S25FL116K flash information

From: Adnan Ali <[email protected]>

Add S25FL064A and S25FL116K flash indentifiers.

---
 drivers/mtd/spi/sf_params.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi/sf_params.c +2 -0
index 61545ca..462e5c2 100644
@@ -51,6 +51,8 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"S25FL016A",	   0x010214, 0x0,	64 * 1024,    32,	0,			  0},
 	{"S25FL032A",	   0x010215, 0x0,	64 * 1024,    64,	0,			  0},
 	{"S25FL064A",	   0x010216, 0x0,	64 * 1024,   128,	0,			  0},
+	{"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
+	{"S25FL116k",      0x014015, 0x0,       64 * 1024,   128,       0,                        0},
 	{"S25FL128P_256K", 0x012018, 0x0300,   256 * 1024,    64, RD_FULL,		     WR_QPP},
 	{"S25FL128P_64K",  0x012018, 0x0301,    64 * 1024,   256, RD_FULL,		     WR_QPP},
 	{"S25FL032P",	   0x010215, 0x4d00,    64 * 1024,    64, RD_FULL,		     WR_QPP},
Signature · 1 line
2.1.1
author
#5 lore raw

PATCH 2/2 SPI: Add S25FL164K flash identifier info

In reply to Ben Dooks

Add the necessary flash entry for the Spansion S25FL164K flash. Tested on Marvell 88F6218 based design.

---
 drivers/mtd/spi/sf_params.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/sf_params.c +1 -0
index 462e5c2..c1f243b 100644
@@ -53,6 +53,7 @@ const struct spi_flash_params spi_flash_params_table[] = {
 	{"S25FL064A",	   0x010216, 0x0,	64 * 1024,   128,	0,			  0},
 	{"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
 	{"S25FL116k",      0x014015, 0x0,       64 * 1024,   128,       0,                        0},
+	{"S25FL164K",      0x014017, 0x0140,    64 * 1024,   128,       0,                        0},
 	{"S25FL128P_256K", 0x012018, 0x0300,   256 * 1024,    64, RD_FULL,		     WR_QPP},
 	{"S25FL128P_64K",  0x012018, 0x0301,    64 * 1024,   256, RD_FULL,		     WR_QPP},
 	{"S25FL032P",	   0x010215, 0x4d00,    64 * 1024,    64, RD_FULL,		     WR_QPP},
Signature · 1 line
2.1.1
#2 lore raw

PATCH 1/2 SPI: Add S25FL064A and S25FL116K flash information

In reply to Ben Dooks
Quoted 14 lines · Ben Dooks

From: Adnan Ali <[email protected]>

Add S25FL064A and S25FL116K flash indentifiers.

---
 drivers/mtd/spi/sf_params.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mtd/spi/sf_params.c +0 -0
index 61545ca..462e5c2 100644

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 54

Quoted 4 lines
drivers/mtd/spi/sf_params.c +1 -0
@@ -51,6 +51,8 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"S25FL016A",      0x010214, 0x0,       64 * 1024,    32,       0,                        0},
        {"S25FL032A",      0x010215, 0x0,       64 * 1024,    64,       0,                        0},
        {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
+       {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},

What is this, already there the same part - any new?

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 55

Quoted 1 line
drivers/mtd/spi/sf_params.c +1 -0
+       {"S25FL116k",      0x014015, 0x0,       64 * 1024,   128,       0,                        0},

Is this tested! can you rebase master and send the same patches.

Quoted 6 lines
drivers/mtd/spi/sf_params.c +0 -1
        {"S25FL128P_256K", 0x012018, 0x0300,   256 * 1024,    64, RD_FULL,                   WR_QPP},
        {"S25FL128P_64K",  0x012018, 0x0301,    64 * 1024,   256, RD_FULL,                   WR_QPP},
        {"S25FL032P",      0x010215, 0x4d00,    64 * 1024,    64, RD_FULL,                   WR_QPP},
--

2.1.1

thanks!

Signature · 1 line
Jagan.
author
#3 lore raw

PATCH 1/2 SPI: Add S25FL064A and S25FL116K flash information

Quoted 10 lines · Jagan Teki
Quoted 9 lines · Ben Dooks

From: Adnan Ali <[email protected]>

Add S25FL064A and S25FL116K flash indentifiers.

---
 drivers/mtd/spi/sf_params.c | 2 ++
 1 file changed, 2 insertions(+)
Quoted 11 lines

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 54

Quoted 9 lines
drivers/mtd/spi/sf_params.c +1 -0
index 61545ca..462e5c2 100644
@@ -51,6 +51,8 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"S25FL016A",      0x010214, 0x0,       64 * 1024,    32,       0,                        0},
        {"S25FL032A",      0x010215, 0x0,       64 * 1024,    64,       0,                        0},
        {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
+       {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},

What is this, already there the same part - any new?

I must have missed this when re-basing off the previous u-boot.

Quoted 3 lines

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 55

Quoted 1 line
drivers/mtd/spi/sf_params.c +1 -0
+       {"S25FL116k",      0x014015, 0x0,       64 * 1024,   128,       0,                        0},

Is this tested! can you rebase master and send the same patches.

Yes, it was one of the devices we looked at and tested on a Marvell 88F6281 based system.

Quoted 9 lines
Quoted 6 lines
drivers/mtd/spi/sf_params.c +0 -1
        {"S25FL128P_256K", 0x012018, 0x0300,   256 * 1024,    64, RD_FULL,                   WR_QPP},
        {"S25FL128P_64K",  0x012018, 0x0301,    64 * 1024,   256, RD_FULL,                   WR_QPP},
        {"S25FL032P",      0x010215, 0x4d00,    64 * 1024,    64, RD_FULL,                   WR_QPP},
--

2.1.1

thanks!

Signature · 2 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius
#4 lore raw

PATCH 1/2 SPI: Add S25FL064A and S25FL116K flash information

Quoted 23 lines · Ben Dooks
Quoted 10 lines · Jagan Teki
Quoted 9 lines · Ben Dooks

From: Adnan Ali <[email protected]>

Add S25FL064A and S25FL116K flash indentifiers.

---
 drivers/mtd/spi/sf_params.c | 2 ++
 1 file changed, 2 insertions(+)
Quoted 11 lines

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 54

Quoted 9 lines
drivers/mtd/spi/sf_params.c +1 -0
index 61545ca..462e5c2 100644
@@ -51,6 +51,8 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"S25FL016A",      0x010214, 0x0,       64 * 1024,    32,       0,                        0},
        {"S25FL032A",      0x010215, 0x0,       64 * 1024,    64,       0,                        0},
        {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
+       {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},

What is this, already there the same part - any new?

Quoted 15 lines

I must have missed this when re-basing off the previous u-boot.

Quoted 3 lines

drivers/mtd/spi/sf_params.c const struct spi_flash_params spi_flash_params_table[] = { · line 55

Quoted 1 line
drivers/mtd/spi/sf_params.c +1 -0
+       {"S25FL116k",      0x014015, 0x0,       64 * 1024,   128,       0,                        0},

Is this tested! can you rebase master and send the same patches.

Yes, it was one of the devices we looked at and tested on a Marvell 88F6281 based system.

Quoted 6 lines
Quoted 6 lines
drivers/mtd/spi/sf_params.c +0 -1
        {"S25FL128P_256K", 0x012018, 0x0300,   256 * 1024,    64, RD_FULL,                   WR_QPP},
        {"S25FL128P_64K",  0x012018, 0x0301,    64 * 1024,   256, RD_FULL,                   WR_QPP},
        {"S25FL032P",      0x010215, 0x4d00,    64 * 1024,    64, RD_FULL,                   WR_QPP},
--

2.1.1

Applied to u-boot-spi/master

thanks!

Signature · 1 line
Jagan.
#6 lore raw

PATCH 2/2 SPI: Add S25FL164K flash identifier info

In reply to Ben Dooks
Quoted 21 lines · Ben Dooks

Add the necessary flash entry for the Spansion S25FL164K flash. Tested on Marvell 88F6218 based design.

---
 drivers/mtd/spi/sf_params.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/sf_params.c +1 -1
index 462e5c2..c1f243b 100644
@@ -53,6 +53,7 @@ const struct spi_flash_params spi_flash_params_table[] = {
        {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
        {"S25FL064A",      0x010216, 0x0,       64 * 1024,   128,       0,                        0},
        {"S25FL116k",      0x014015, 0x0,       64 * 1024,   128,       0,                        0},
+       {"S25FL164K",      0x014017, 0x0140,    64 * 1024,   128,       0,                        0},
        {"S25FL128P_256K", 0x012018, 0x0300,   256 * 1024,    64, RD_FULL,                   WR_QPP},
        {"S25FL128P_64K",  0x012018, 0x0301,    64 * 1024,   256, RD_FULL,                   WR_QPP},
        {"S25FL032P",      0x010215, 0x4d00,    64 * 1024,    64, RD_FULL,                   WR_QPP},
--
Quoted 2 lines

2.1.1

Applied to u-boot-spi/master

thanks!

Signature · 1 line
Jagan.