Skip to content

Commit

Permalink
ARM: at91: add atmel tcb capabilities
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kamel Bouhara authored and Jonathan Cameron committed Jul 20, 2020
1 parent 3d77e6a commit d3818c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/soc/at91/atmel_tcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit d3818c4

Please sign in to comment.