[Skiboot] [PATCH] libflash: Add support for Macronix 128Mb flash chips
Jeremy Kerr
jk at ozlabs.org
Mon Jul 6 20:10:13 AEST 2015
Fun-sized version of the MXxxL25635F.
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
hw/ast-bmc/ast-sf-ctrl.c | 1 +
libflash/libflash.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/hw/ast-bmc/ast-sf-ctrl.c b/hw/ast-bmc/ast-sf-ctrl.c
index eee18e1..0ca32da 100644
--- a/hw/ast-bmc/ast-sf-ctrl.c
+++ b/hw/ast-bmc/ast-sf-ctrl.c
@@ -682,6 +682,7 @@ static int ast_sf_setup(struct spi_flash_ctrl *ctrl, uint32_t *tsize)
* flash chips
*/
switch(info->id) {
+ case 0xc22018: /* MX25L12835F */
case 0xc22019: /* MX25L25635F */
case 0xc2201a: /* MX66L51235F */
return ast_sf_setup_macronix(ct, info);
diff --git a/libflash/libflash.c b/libflash/libflash.c
index 55eafbe..90ae653 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -27,6 +27,7 @@
#endif
static const struct flash_info flash_info[] = {
+ { 0xc22018, 0x01000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL12835F"},
{ 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" },
More information about the Skiboot
mailing list