1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __IIO_BFIN_TIMER_TRIGGER_H__
3 #define __IIO_BFIN_TIMER_TRIGGER_H__
6 * struct iio_bfin_timer_trigger_pdata - timer trigger platform data
7 * @output_enable: Enable external trigger pulse generation.
8 * @active_low: Whether the trigger pulse is active low.
9 * @duty_ns: Length of the trigger pulse in nanoseconds.
11 * This struct is used to configure the output pulse generation of the blackfin
12 * timer trigger. If output_enable is set to true an external trigger signal
13 * will generated on the pin corresponding to the timer. This is useful for
14 * converters which needs an external signal to start conversion. active_low and
15 * duty_ns are used to configure the type of the trigger pulse. If output_enable
16 * is set to false no external trigger pulse will be generated and active_low
17 * and duty_ns are ignored.
19 struct iio_bfin_timer_trigger_pdata
{