Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Kamel Bouhara and committed by
Daniel Lezcano
738c58cc 44f6fa43

+5
+5
include/soc/at91/atmel_tcb.h
··· 36 36 /** 37 37 * struct atmel_tcb_config - SoC data for a Timer/Counter Block 38 38 * @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. 39 42 */ 40 43 struct atmel_tcb_config { 41 44 size_t counter_width; 45 + bool has_gclk; 46 + bool has_qdec; 42 47 }; 43 48 44 49 /**