diff options
| author | Mark Brown <broonie@kernel.org> | 2025-10-15 13:32:47 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-10-15 13:32:47 +0300 |
| commit | a758314f71ba90cca2a5813bbf96c4954a15b613 (patch) | |
| tree | c00e7fc42005790fff4bd60218b271d9c33b7d15 /include/linux | |
| parent | 4412ab501677606436e5c49e41151a1e6eac7ac0 (diff) | |
| parent | b83fb1b14c06bdd765903ac852ba20a14e24f227 (diff) | |
| download | linux-a758314f71ba90cca2a5813bbf96c4954a15b613.tar.xz | |
spi: offload: Add offset parameter
Merge series from From git@z Thu Jan 1 00:00:00 1970
Axel Haslam <ahaslam@baylibre.com>:
Add an offset parameter that can be passed in the periodic trigger.
This is useful for example when ADC drivers implement a separate periodic
signal to trigger conversion and need offload to read the result with
some delay. While at it, add some documentation to offload periodic trigger
parameters.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/offload/types.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/spi/offload/types.h b/include/linux/spi/offload/types.h index 6f7892347871..cd61f8adb7a5 100644 --- a/include/linux/spi/offload/types.h +++ b/include/linux/spi/offload/types.h @@ -57,8 +57,17 @@ enum spi_offload_trigger_type { SPI_OFFLOAD_TRIGGER_PERIODIC, }; +/** + * spi_offload_trigger_periodic - configuration parameters for periodic triggers + * @frequency_hz: The rate that the trigger should fire in Hz. + * @offset_ns: A delay in nanoseconds between when this trigger fires + * compared to another trigger. This requires specialized hardware + * that supports such synchronization with a delay between two or + * more triggers. Set to 0 when not needed. + */ struct spi_offload_trigger_periodic { u64 frequency_hz; + u64 offset_ns; }; struct spi_offload_trigger_config { |
