From: Quanyang Wang <[email protected]> The flash "mt25qu512a" supports Block Protection feature. According to the datasheet, the features as below are supported: - 4-bit BP - BP3 in bit6 of SR - Top/Bottom area
So add appropriate flags for this flash to enable flash_lock/unlock. Signed-off-by: Quanyang Wang <[email protected]> --- drivers/mtd/spi-nor/micron-st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index aa25a0ef9f058..f8dd566092666 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -54,7 +54,8 @@ static struct flash_info st_parts[] = { { "mt25qu512a", INFO6(0x20bb20, 0x104400, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES | - SPI_NOR_HAS_LOCK) }, + SPI_NOR_HAS_LOCK | SPI_NOR_4BIT_BP | + SPI_NOR_BP3_SR_BIT6 | SPI_NOR_HAS_TB) }, { "n25q512a", INFO(0x20bb20, 0, 64 * 1024, 1024, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB | -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10540): https://lists.yoctoproject.org/g/linux-yocto/message/10540 Mute This Topic: https://lists.yoctoproject.org/mt/86435172/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
