mtd: spi-nor: Split mt25qu512a (n25q512a) entry into two
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 5 Dec 2019 06:59:33 +0000 (12:29 +0530)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 23 Dec 2019 17:12:52 +0000 (19:12 +0200)
commitbd8a6e31b87b39a03ab11820776363640440dbe0
tree423f40ffc3c6a45e8d1abc95966d465bf832182e
parenta56be671734ec5ab7fcfc9ac681d01698fc8bdf5
mtd: spi-nor: Split mt25qu512a (n25q512a) entry into two

mt25q family is different from n25q family of devices, even though manf
ID and device IDs are same. mt25q flash has bit 6 set in 5th byte of
READ ID response which can be used to distinguish it from n25q variant.
mt25q flashes support stateless 4 Byte addressing opcodes where as n25q
flashes don't. Therefore, have two separate entries for mt25qu512a and
n25q512a.

Fixes: 9607af6f857f ("mtd: spi-nor: Rename "n25q512a" to "mt25qu512a (n25q512a)"")
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c