spi: spi-mem: Create macros for DTR operation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 24 Dec 2024 17:06:04 +0000 (18:06 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jan 2025 20:16:39 +0000 (20:16 +0000)
commitf0006897a96c736623ddeb9b68c3880eb5cdebe7
tree5e368a8a6f56649a3fccedc886523ca4f5eab89d
parentd1f85873d2d62d6980e68d21d3a21f20b0664cc3
spi: spi-mem: Create macros for DTR operation

We do have macros for defining command, address, dummy and data
cycles. We also have a .dtr flag that implies sampling the bus on both
edges, but there are currently no macros enabling it. We might make use
of such macros, so let's create:
- SPI_MEM_DTR_OP_CMD
- SPI_MEM_DTR_OP_ADDR
- SPI_MEM_DTR_OP_DUMMY
- SPI_MEM_DTR_OP_DATA_OUT
- SPI_MEM_DTR_OP_DATA_OUT

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20241224-winbond-6-11-rc1-quad-support-v2-19-ad218dbc406f@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi-mem.h