diff options
| author | Dario Binacchi <[email protected]> | 2026-02-25 17:16:54 +0100 |
|---|---|---|
| committer | Patrice Chotard <[email protected]> | 2026-04-30 08:01:11 +0200 |
| commit | ab5c0191e1c1def972728a6b2a0804ee8c8211e8 (patch) | |
| tree | b37d6e4ea3a7c7c829ae7450507a4977617cd598 /arch | |
| parent | fa1801abc7163188b70e3eaf1a04d2fc4bcfc228 (diff) | |
test: spi: add sandbox_spi_get_wordlen interface
Add the sandbox_spi_get_wordlen() public interface to retrieve the
internal word length state of the sandbox SPI device.
This is intended for use in sandbox SPI test cases to verify that
the word length is correctly propagated from the SPI uclass to
the driver.
Signed-off-by: Dario Binacchi <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/sandbox/include/asm/test.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index 0e8d19ce232..0438790028b 100644 --- a/arch/sandbox/include/asm/test.h +++ b/arch/sandbox/include/asm/test.h @@ -244,6 +244,14 @@ uint sandbox_spi_get_speed(struct udevice *dev); uint sandbox_spi_get_mode(struct udevice *dev); /** + * sandbox_spi_get_wordlen() - Get current wordlen setting of a sandbox spi slave + * + * @dev: Device to check + * Return: current wordlen + */ +uint sandbox_spi_get_wordlen(struct udevice *dev); + +/** * sandbox_get_pch_spi_protect() - Get the PCI SPI protection status * * @dev: Device to check |
