2016-05-18 13:22:24 +00:00
|
|
|
Disable software protection bits for Macronix flashes.
|
|
|
|
|
2016-06-07 06:58:31 +00:00
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
2016-05-18 13:22:24 +00:00
|
|
|
|
|
|
|
--- a/drivers/mtd/spi-nor/spi-nor.c
|
|
|
|
+++ b/drivers/mtd/spi-nor/spi-nor.c
|
2017-07-23 12:25:40 +00:00
|
|
|
@@ -1166,6 +1166,7 @@ int spi_nor_scan(struct spi_nor *nor, co
|
2016-05-18 13:22:24 +00:00
|
|
|
|
|
|
|
if (JEDEC_MFR(info) == SNOR_MFR_ATMEL ||
|
|
|
|
JEDEC_MFR(info) == SNOR_MFR_INTEL ||
|
|
|
|
+ JEDEC_MFR(info) == SNOR_MFR_MACRONIX ||
|
2016-12-20 08:19:08 +00:00
|
|
|
JEDEC_MFR(info) == SNOR_MFR_SST ||
|
|
|
|
info->flags & SPI_NOR_HAS_LOCK) {
|
2016-05-18 13:22:24 +00:00
|
|
|
write_enable(nor);
|