ARM: at91: add atmel tcb capabilities
authorKamel Bouhara <kamel.bouhara@bootlin.com>
Mon, 6 Jul 2020 11:43:43 +0000 (13:43 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 20 Jul 2020 11:57:31 +0000 (12:57 +0100)
Some atmel socs have extra tcb capabilities that allow using a generic
clock source or enabling a quadrature decoder.

Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
include/soc/at91/atmel_tcb.h

index c3c7200ce1512aa495b67b22a7a4ae20d3b2c4df..1d7071dc0bcaabefe5c123c2f2ffedfeac858902 100644 (file)
@@ -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;
 };
 
 /**