mtd: spi-nor-core: Parse xSPI Profile 1.0 table
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:19 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:32:01 +0000 (12:02 +0530)
commit4d40e82663fe5ed8b65242bc28b3faaf838f5dcc
treee7ef658ef2de12a0a5946b7acbf4666bdaa63576
parent9ec5ea01277d8a9fdd29e797a9e0923575e5ce9f
mtd: spi-nor-core: Parse xSPI Profile 1.0 table

This table is indication that the flash is xSPI compliant and hence
supports octal DTR mode. Extract information like the fast read opcode,
the number of dummy cycles needed for a Read Status Register command,
and the number of address bytes needed for a Read Status Register
command.

The default dummy cycles for a fast octal DTR read are set to 20. Since
there is no simple way of determining the dummy cycles needed for the
fast read command, flashes that use a different value should update it
in their flash-specific hooks.

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