]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nor-core: Get command opcode extension type from BFPT
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:18 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:31:15 +0000 (12:01 +0530)
commit5f5f91f41ec23045653e0d2b7ebf6af264faf193
treec60c9d6db7b04ea9a31a799c476c26baea736081
parent50084d1b4bf45832543d7487d2857a349d42ccf9
mtd: spi-nor-core: Get command opcode extension type from BFPT

Some devices in DTR mode expect an extra command byte called the
extension. The extension can either be same as the opcode, bitwise
inverse of the opcode, or another additional byte forming a 16-byte
opcode. Get the extension type from the BFPT. For now, only flashes with
"repeat" and "inverse" extensions are supported.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c