Skip to content

Commit 738c58c

Browse files
kamel-bouharadlezcano
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 <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 44f6fa4 commit 738c58c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)