diff options
| author | Tom Rini <[email protected]> | 2026-04-30 09:10:18 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-04-30 09:10:18 -0600 |
| commit | 817653c53de7debd7b386768f5a74111633557d3 (patch) | |
| tree | 56e7a1cd2230cb0c6e74201ba0714027622c1d99 /include | |
| parent | 9d3bc111efe1c600a1475bbdfb6da6269e02c5c2 (diff) | |
| parent | ae1966e2436e69c4bce24c03ed4e77bf2e0ac971 (diff) | |
Merge tag 'u-boot-stm32-20260430' of https://source.denx.de/u-boot/custodians/u-boot-stm
- arm; stm32mp2: Factorize TAMP_FWU_BOOT_IDX_MASK/OFFSET definition
- arm: stm32mp: Drop unnecessary BOARD_EARLY_INIT_F usage
- board: stm32mp25: support dynamic A/B bank bootup
- board: stm32pm1: Fix board_check_usb_power()
- clk: stm32: Add STM32MP23 support
- video: stm32: dsi: fix unchecked return values
- video: support Rocktech RK050HR345-CT106A panel
- Remove non-existent STM32_RESET flag
Diffstat (limited to 'include')
| -rw-r--r-- | include/spi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/spi.h b/include/spi.h index 95e7d5b1556..7eaf0aa69b8 100644 --- a/include/spi.h +++ b/include/spi.h @@ -77,11 +77,13 @@ struct dm_spi_bus { * @cs: Chip select number (0..n-1) * @max_hz: Maximum bus speed that this slave can tolerate * @mode: SPI mode to use for this device (see SPI mode flags) + * @wordlen: Word length in bits to use for this device */ struct dm_spi_slave_plat { unsigned int cs[SPI_CS_CNT_MAX]; uint max_hz; uint mode; + unsigned int wordlen; }; /** @@ -719,6 +721,18 @@ int dm_spi_claim_bus(struct udevice *dev); void dm_spi_release_bus(struct udevice *dev); /** + * Set the word length for SPI transactions + * + * Set the word length (number of bits per word) for SPI transactions. + * + * @slave: The SPI slave + * @wordlen: The number of bits in a word + * + * Returns: 0 on success, -1 on failure. + */ +int dm_spi_set_wordlen(struct udevice *dev, unsigned int wordlen); + +/** * SPI transfer * * This writes "bitlen" bits out the SPI MOSI port and simultaneously clocks |
