提交 738c58cc 编写于 作者: K Kamel Bouhara 提交者: Daniel Lezcano

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: NKamel Bouhara <kamel.bouhara@bootlin.com>
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200710230813.1005150-5-alexandre.belloni@bootlin.com
上级 44f6fa43
...@@ -36,9 +36,14 @@ struct clk; ...@@ -36,9 +36,14 @@ struct clk;
/** /**
* struct atmel_tcb_config - SoC data for a Timer/Counter Block * struct atmel_tcb_config - SoC data for a Timer/Counter Block
* @counter_width: size in bits of a timer counter register * @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 { struct atmel_tcb_config {
size_t counter_width; size_t counter_width;
bool has_gclk;
bool has_qdec;
}; };
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册