spi: s3c64xx: add s3c64xx_iowrite{8,16}_32_rep accessors
authorTudor Ambarus <tudor.ambarus@linaro.org>
Wed, 7 Feb 2024 11:15:15 +0000 (11:15 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 8 Feb 2024 16:33:46 +0000 (16:33 +0000)
commitb7bafb9f54fc4609ff84ecd633f918f6f973f471
tree0f35f5255dd5a6ceca9c1b5bb6c517a624ddca5e
parent80d3204a3b1dbef570ed29d4d375e4d6922da82d
spi: s3c64xx: add s3c64xx_iowrite{8,16}_32_rep accessors

Allow SoCs that require 32 bits register accesses to write data in
chunks of 8 or 16 bits. One SoC that requires 32 bit register accesses
is the google gs101. The operation is rare, thus open code it in the
driver rather than making it generic (through asm-generic/io.h).

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240207111516.2563218-4-tudor.ambarus@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c