Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Commit

Permalink
mtd: spi-nor: disable protection for Winbond flash at startup
Browse files Browse the repository at this point in the history
In case the flash was locked at boot time.

Signed-off-by: Brian Norris <[email protected]>
  • Loading branch information
computersforpeace committed Oct 14, 2015
1 parent 357ca38 commit c6fc217
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/mtd/spi-nor/spi-nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,13 +1194,14 @@ int spi_nor_scan(struct spi_nor *nor, const char *name, enum read_mode mode)
mutex_init(&nor->lock);

/*
* Atmel, SST and Intel/Numonyx serial nor tend to power
* up with the software protection bits set
* Atmel, SST, Intel/Numonyx, and others serial NOR tend to power up
* with the software protection bits set
*/

if (JEDEC_MFR(info) == SNOR_MFR_ATMEL ||
JEDEC_MFR(info) == SNOR_MFR_INTEL ||
JEDEC_MFR(info) == SNOR_MFR_SST) {
JEDEC_MFR(info) == SNOR_MFR_SST ||
JEDEC_MFR(info) == SNOR_MFR_WINBOND) {
write_enable(nor);
write_sr(nor, 0);
}
Expand Down

0 comments on commit c6fc217

Please sign in to comment.