[Skiboot] [PATCH] Subject: libflash: Support for Micron N25Q256Ax and Winbond W25Q256BV NOR flash

Adriana Kobylak adriana.kobylak at gmail.com
Tue Jan 26 06:56:17 AEDT 2016


From: Adriana Kobylak <anoo at us.ibm.com>

These 32MB chips are used in the Barreleye OpenBMC BMC.

Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>
---
 libflash/libflash.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libflash/libflash.c b/libflash/libflash.c
index 69e809e..929766e 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -31,12 +31,18 @@ static const struct flash_info flash_info[] = {
 	{ 0xc22019, 0x02000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL25635F"},
 	{ 0xc2201a, 0x04000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL51235F"},
 	{ 0xef4018, 0x01000000, FL_ERASE_ALL,             "Winbond W25Q128BV"   },
+	{ 0xef4019, 0x02000000, FL_ERASE_ALL | FL_ERASE_64K | FL_CAN_4B |
+				FL_ERASE_BULK,
+							"Winbond W25Q256BV"},
 	{ 0x20ba20, 0x04000000, FL_ERASE_4K  | FL_ERASE_64K | FL_CAN_4B |
                                 FL_ERASE_BULK | FL_MICRON_BUGS,
                                                           "Micron N25Qx512Ax"   },
 	{ 0x20ba19, 0x02000000, FL_ERASE_4K  | FL_ERASE_64K | FL_CAN_4B |
                                 FL_ERASE_BULK | FL_MICRON_BUGS,
                                                           "Micron N25Q256Ax"    },
+	{ 0x1940ef, 0x02000000, FL_ERASE_4K  | FL_ERASE_64K | FL_CAN_4B |
+				FL_ERASE_BULK | FL_MICRON_BUGS,
+							"Micron N25Qx256Ax"   },
 	{ 0x4d5444, 0x02000000, FL_ERASE_ALL | FL_CAN_4B, "File Abstraction"},
 	{ 0x55aa55, 0x00100000, FL_ERASE_ALL | FL_CAN_4B, "TEST_FLASH" },
 	{ 0xaa55aa, 0x02000000, FL_ERASE_ALL | FL_CAN_4B, "EMULATED_FLASH"},
-- 
1.8.2.2



More information about the Skiboot mailing list