Skip to content

Commit

Permalink
mtd: spi-nor: Fix flash lock failure on n25q128a11 micron flash
Browse files Browse the repository at this point in the history
n25q128a11 micron flash supports Flag Status Register, so added FSR flag
in the flash_info structure to fix flash lock failure.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
State: pending
  • Loading branch information
Amit Kumar Mahapatra authored and Michal Simek committed May 28, 2021
1 parent 7085fb1 commit 32f0752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/spi-nor/micron-st.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static struct flash_info st_parts[] = {
{ "n25q064a", INFO(0x20bb17, 0, 64 * 1024, 128,
SECT_4K | SPI_NOR_QUAD_READ) },
{ "n25q128a11", INFO(0x20bb18, 0, 64 * 1024, 256, SECT_4K |
SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
SPI_NOR_QUAD_READ | USE_FSR | SPI_NOR_HAS_LOCK) },
{ "n25q128a13", INFO(0x20ba18, 0, 64 * 1024, 256, SECT_4K |
SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK) },
{ "n25q256a", INFO(0x20ba19, 0, 64 * 1024, 512, SECT_4K |
Expand Down

0 comments on commit 32f0752

Please sign in to comment.