Hello Mike Banon,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/30874
to review the following change.
Change subject: drivers/spi/spansion.c: Add more S25FL_K chips ......................................................................
drivers/spi/spansion.c: Add more S25FL_K chips
Add S25FL208K (ID 0x4014), S25FL132K (ID 0x4016) and S25FL164K (ID 0x4017) chips in a way similar to S25FL116K (ID 0x4015) chip from the same family.
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: I9bf7197bbc0d12797c8ed100c673628de9c140f7 --- M src/drivers/spi/spansion.c 1 file changed, 36 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/30874/1
diff --git a/src/drivers/spi/spansion.c b/src/drivers/spi/spansion.c index 16c5180..2e92434 100644 --- a/src/drivers/spi/spansion.c +++ b/src/drivers/spi/spansion.c @@ -39,14 +39,17 @@ #define CMD_S25FLXX_DP 0xb9 /* Deep Power-down */ #define CMD_S25FLXX_RES 0xab /* Release from DP, and Read Signature */
-#define SPSN_MANUFACTURER_ID_S25FL116K 0x01 +#define SPSN_MANUFACTURER_ID_S25FL_K 0x01 #define SPSN_ID_S25FL008A 0x0213 #define SPSN_ID_S25FL016A 0x0214 #define SPSN_ID_S25FL032A 0x0215 #define SPSN_ID_S25FL064A 0x0216 #define SPSN_ID_S25FL128S 0x0219 #define SPSN_ID_S25FL128P 0x2018 +#define SPSN_ID_S25FL208K 0x4014 #define SPSN_ID_S25FL116K 0x4015 +#define SPSN_ID_S25FL132K 0x4016 +#define SPSN_ID_S25FL164K 0x4017 #define SPSN_EXT_ID_S25FL128P_256KB 0x0300 #define SPSN_EXT_ID_S25FL128P_64KB 0x0301 #define SPSN_EXT_ID_S25FL032P 0x4d00 @@ -176,10 +179,20 @@ .page_size = 256, .pages_per_sector = 256, .nr_sectors = 256, - .name = "25FS128S", + .name = "S25FS128S", }, { - .idcode0 = SPSN_MANUFACTURER_ID_S25FL116K, + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, + .idcode1 = SPSN_ID_S25FL208K, + .idcode2 = 0, + .identify = identify_123, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 16, + .name = "S25FL208K", + }, + { + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, .idcode1 = SPSN_ID_S25FL116K, .idcode2 = 0, .identify = identify_123, @@ -188,6 +201,26 @@ .nr_sectors = 32, .name = "S25FL116K_16M", }, + { + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, + .idcode1 = SPSN_ID_S25FL132K, + .idcode2 = 0, + .identify = identify_123, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 64, + .name = "S25FL132K", + }, + { + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, + .idcode1 = SPSN_ID_S25FL164K, + .idcode2 = 0, + .identify = identify_123, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 128, + .name = "S25FL164K", + }, };
static int spansion_write(const struct spi_flash *flash, u32 offset, size_t len,
mikeb mikeb has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30874 )
Change subject: drivers/spi/spansion.c: Add more S25FL_K chips ......................................................................
Patch Set 1:
Adding more S25FL_K SPI flash chips
Hello Kyösti Mälkki, Paul Menzel, Mike Banon, build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/30874
to look at the new patch set (#2).
Change subject: drivers/spi/spansion.c: Add more Spansion S25FL_K chips ......................................................................
drivers/spi/spansion.c: Add more Spansion S25FL_K chips
Add S25FL208K (ID 0x4014), S25FL132K (ID 0x4016) and S25FL164K (ID 0x4017) chips in a way similar to S25FL116K (ID 0x4015) chip from the same family.
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: I9bf7197bbc0d12797c8ed100c673628de9c140f7 --- M src/drivers/spi/spansion.c 1 file changed, 36 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/74/30874/2
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30874 )
Change subject: drivers/spi/spansion.c: Add more Spansion S25FL_K chips ......................................................................
Patch Set 2: Code-Review+2
Kyösti Mälkki has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/30874 )
Change subject: drivers/spi/spansion.c: Add more Spansion S25FL_K chips ......................................................................
drivers/spi/spansion.c: Add more Spansion S25FL_K chips
Add S25FL208K (ID 0x4014), S25FL132K (ID 0x4016) and S25FL164K (ID 0x4017) chips in a way similar to S25FL116K (ID 0x4015) chip from the same family.
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: I9bf7197bbc0d12797c8ed100c673628de9c140f7 Reviewed-on: https://review.coreboot.org/c/30874 Reviewed-by: Kyösti Mälkki kyosti.malkki@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/drivers/spi/spansion.c 1 file changed, 36 insertions(+), 3 deletions(-)
Approvals: build bot (Jenkins): Verified Kyösti Mälkki: Looks good to me, approved
diff --git a/src/drivers/spi/spansion.c b/src/drivers/spi/spansion.c index 16c5180..2e92434 100644 --- a/src/drivers/spi/spansion.c +++ b/src/drivers/spi/spansion.c @@ -39,14 +39,17 @@ #define CMD_S25FLXX_DP 0xb9 /* Deep Power-down */ #define CMD_S25FLXX_RES 0xab /* Release from DP, and Read Signature */
-#define SPSN_MANUFACTURER_ID_S25FL116K 0x01 +#define SPSN_MANUFACTURER_ID_S25FL_K 0x01 #define SPSN_ID_S25FL008A 0x0213 #define SPSN_ID_S25FL016A 0x0214 #define SPSN_ID_S25FL032A 0x0215 #define SPSN_ID_S25FL064A 0x0216 #define SPSN_ID_S25FL128S 0x0219 #define SPSN_ID_S25FL128P 0x2018 +#define SPSN_ID_S25FL208K 0x4014 #define SPSN_ID_S25FL116K 0x4015 +#define SPSN_ID_S25FL132K 0x4016 +#define SPSN_ID_S25FL164K 0x4017 #define SPSN_EXT_ID_S25FL128P_256KB 0x0300 #define SPSN_EXT_ID_S25FL128P_64KB 0x0301 #define SPSN_EXT_ID_S25FL032P 0x4d00 @@ -176,10 +179,20 @@ .page_size = 256, .pages_per_sector = 256, .nr_sectors = 256, - .name = "25FS128S", + .name = "S25FS128S", }, { - .idcode0 = SPSN_MANUFACTURER_ID_S25FL116K, + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, + .idcode1 = SPSN_ID_S25FL208K, + .idcode2 = 0, + .identify = identify_123, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 16, + .name = "S25FL208K", + }, + { + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, .idcode1 = SPSN_ID_S25FL116K, .idcode2 = 0, .identify = identify_123, @@ -188,6 +201,26 @@ .nr_sectors = 32, .name = "S25FL116K_16M", }, + { + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, + .idcode1 = SPSN_ID_S25FL132K, + .idcode2 = 0, + .identify = identify_123, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 64, + .name = "S25FL132K", + }, + { + .idcode0 = SPSN_MANUFACTURER_ID_S25FL_K, + .idcode1 = SPSN_ID_S25FL164K, + .idcode2 = 0, + .identify = identify_123, + .page_size = 256, + .pages_per_sector = 256, + .nr_sectors = 128, + .name = "S25FL164K", + }, };
static int spansion_write(const struct spi_flash *flash, u32 offset, size_t len,