]> git.dujemihanovic.xyz Git - u-boot.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)
commit95954f55e91af538cce19fea4a731cc3474de6ff
tree9ba7d3394f50aaf8b05514bd8ac27c91f0ff10e3
parent6182d15b3e4a40929df22e403601fd24abd3f918
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