[Skiboot] [PATCH] libflash: add 128MB MX66L1G45G part
Joel Stanley
joel at jms.id.au
Thu Sep 15 16:48:06 AEST 2016
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
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 e6c072ed9c34..7a889fb5b531 100644
--- a/hw/ast-bmc/ast-sf-ctrl.c
+++ b/hw/ast-bmc/ast-sf-ctrl.c
@@ -644,6 +644,7 @@ static int ast_sf_setup(struct spi_flash_ctrl *ctrl, uint32_t *tsize)
case 0xc22018: /* MX25L12835F */
case 0xc22019: /* MX25L25635F */
case 0xc2201a: /* MX66L51235F */
+ case 0xc2201b: /* MX66L1G45G */
return ast_sf_setup_macronix(ct, info);
case 0xef4018: /* W25Q128BV */
return ast_sf_setup_winbond(ct, info);
diff --git a/libflash/libflash.c b/libflash/libflash.c
index cf679a550a4f..9bdc7d6f5d4e 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -31,6 +31,7 @@ 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"},
+ { 0xc2201b, 0x08000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MX66L1G45G"},
{ 0xef4018, 0x01000000, FL_ERASE_ALL, "Winbond W25Q128BV" },
{ 0xef4019, 0x02000000, FL_ERASE_ALL | FL_ERASE_64K | FL_CAN_4B |
FL_ERASE_BULK,
--
2.9.3
More information about the Skiboot
mailing list