From: Kamel Bouhara Date: Fri, 10 Jul 2020 23:08:08 +0000 (+0200) Subject: ARM: at91: add atmel tcb capabilities X-Git-Tag: v5.9-rc1~156^2~1^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=738c58ccac386bb068cba2446bd9dbabeae09b62;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200710230813.1005150-5-alexandre.belloni@bootlin.com --- diff --git a/include/soc/at91/atmel_tcb.h b/include/soc/at91/atmel_tcb.h index c3c7200ce1512..1d7071dc0bcaa 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; }; /**