]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: spi-nor-core: Add support for DTR protocol
authorPratyush Yadav <p.yadav@ti.com>
Fri, 25 Jun 2021 19:17:16 +0000 (00:47 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Jun 2021 06:30:32 +0000 (12:00 +0530)
commit1b389e811596f6de880ab0aa7b642669719f4396
tree9ba7d3394f50aaf8b05514bd8ac27c91f0ff10e3
parent0b816c649c4d338f4a27d115005c98c530e9a5fc
mtd: spi-nor-core: Add support for DTR protocol

Double Transfer Rate (DTR) is SPI protocol in which data is transferred
on each clock edge as opposed to on each clock cycle. Make
framework-level changes to allow supporting flashes in DTR mode.

Right now, mixed DTR modes are not supported. So, for example a mode
like 4S-4D-4D will not work. All phases need to be either DTR or STR.

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