Skip to content

Commit 738c58c

Browse files
kamel-bouharaDaniel Lezcano
authored andcommitted
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
1 parent 44f6fa4 commit 738c58c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/soc/at91/atmel_tcb.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,14 @@ struct clk;
3636
/**
3737
* struct atmel_tcb_config - SoC data for a Timer/Counter Block
3838
* @counter_width: size in bits of a timer counter register
39+
* @has_gclk: boolean indicating if a timer counter has a generic clock
40+
* @has_qdec: boolean indicating if a timer counter has a quadrature
41+
* decoder.
3942
*/
4043
struct atmel_tcb_config {
4144
size_t counter_width;
45+
bool has_gclk;
46+
bool has_qdec;
4247
};
4348

4449
/**

0 commit comments

Comments
 (0)