Skip to content
Verified Commit 6defadbe authored by Raju Rangoju's avatar Raju Rangoju Committed by Mark Brown
Browse files

spi: spi_amd: Add support for SPI MEM framework



Add support to the SPI controller driver to use SPI MEM framework.
SPI subsystem utilizing the SPI memory operations allows to re-use
SPI controller drivers for both SPI NOR devices, regular SPI devices
as well as SPI NAND devices.

Add below functions of spi_mem_ops to support SPI MEM framework
- exec-op(): to execute the memory operations.
- supports_op(): to check if the memory operation is supported.
- adjust_op_size(): to split data transfers so that they don’t exceed the
  max transfer size supported by the controller.

Suggested-by: default avatarSudheesh Mavila <sudheesh.mavila@amd.com>
Co-developed-by: default avatarKrishnamoorthi M <krishnamoorthi.m@amd.com>
Signed-off-by: default avatarKrishnamoorthi M <krishnamoorthi.m@amd.com>
Co-developed-by: default avatarAkshata MukundShetty <akshata.mukundshetty@amd.com>
Signed-off-by: default avatarAkshata MukundShetty <akshata.mukundshetty@amd.com>
Signed-off-by: default avatarRaju Rangoju <Raju.Rangoju@amd.com>
Link: https://msgid.link/r/20240229134544.3461757-1-Raju.Rangoju@amd.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bdeef5dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment