[PATCH v2 1/2] mtd: spi-nor: add support for is25lq040b
Sean Nyekjær
sean.nyekjaer at prevas.dk
Thu Dec 14 02:21:37 PST 2017
Hi Cyrille
On 2017-12-13 12:35, Sean Nyekjaer wrote:
> Signed-off-by: Sean Nyekjaer <sean.nyekjaer at prevas.dk>
> ---
> v2:
> - removed SECT_4K as the chip are supporting 32K and bulk erase
>
> drivers/mtd/spi-nor/spi-nor.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
> index 9178139a39d0..cc4328dff89a 100644
> --- a/drivers/mtd/spi-nor/spi-nor.c
> +++ b/drivers/mtd/spi-nor/spi-nor.c
> @@ -1048,6 +1048,7 @@ static const struct flash_info spi_nor_ids[] = {
> { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2, SECT_4K) },
> { "is25lp128", INFO(0x9d6018, 0, 64 * 1024, 256,
> SECT_4K | SPI_NOR_DUAL_READ) },
> + { "is25lq040b", INFO(0x9d4013, 0, 64 * 1024, 64, 0) },
Doh, my bad, there is only 8 blocks on the device (4Mbit not 4MB)
The device have the possibility to erase 4, 32, 64 Kbyte, or Chip Erase.
Is the SECT_4K preferred in the kernel or should i leave it off?
>
> /* Macronix */
> { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1, SECT_4K) },
/Sean
More information about the linux-mtd
mailing list