]> git.dujemihanovic.xyz Git - u-boot.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)
commit9ec5ea01277d8a9fdd29e797a9e0923575e5ce9f
treec60c9d6db7b04ea9a31a799c476c26baea736081
parent22ae535b7d6d963481548ce66070a6784849a136
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