diff options
author | Kamel Bouhara <[email protected]> | 2020-07-06 13:43:43 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2020-07-20 12:57:31 +0100 |
commit | d3818c4815aab9b17e78b6afdeaf87797acba8d3 (patch) | |
tree | 763832e03fc30c205bcd6018d1b165831dd08900 | |
parent | 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 (diff) |
ARM: at91: add atmel tcb capabilities
Some atmel socs have extra tcb capabilities that allow using a generic
clock source or enabling a quadrature decoder.
Signed-off-by: Kamel Bouhara <[email protected]>
Acked-by: Alexandre Belloni <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r-- | include/soc/at91/atmel_tcb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/soc/at91/atmel_tcb.h b/include/soc/at91/atmel_tcb.h index c3c7200ce151..1d7071dc0bca 100644 --- a/include/soc/at91/atmel_tcb.h +++ b/include/soc/at91/atmel_tcb.h @@ -36,9 +36,14 @@ struct clk; /** * struct atmel_tcb_config - SoC data for a Timer/Counter Block * @counter_width: size in bits of a timer counter register + * @has_gclk: boolean indicating if a timer counter has a generic clock + * @has_qdec: boolean indicating if a timer counter has a quadrature + * decoder. */ struct atmel_tcb_config { size_t counter_width; + bool has_gclk; + bool has_qdec; }; /** |