summaryrefslogtreecommitdiff
path: root/include/soc/at91
diff options
context:
space:
mode:
authorKamel Bouhara <kamel.bouhara@bootlin.com>2020-07-11 01:08:08 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-07-11 18:57:03 +0200
commit738c58ccac386bb068cba2446bd9dbabeae09b62 (patch)
treefb1209204a3d87edcbb09003005d6463346dc73e /include/soc/at91
parent44f6fa431bbd087083fca437d0348edd4b09e3c2 (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 <kamel.bouhara@bootlin.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20200710230813.1005150-5-alexandre.belloni@bootlin.com
Diffstat (limited to 'include/soc/at91')
-rw-r--r--include/soc/at91/atmel_tcb.h5
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;
};
/**