projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f6fa4
)
ARM: at91: add atmel tcb capabilities
author
Kamel Bouhara
<kamel.bouhara@bootlin.com>
Fri, 10 Jul 2020 23:08:08 +0000
(
01:08
+0200)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Sat, 11 Jul 2020 16:57:03 +0000
(18:57 +0200)
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
include/soc/at91/atmel_tcb.h
patch
|
blob
|
history
diff --git
a/include/soc/at91/atmel_tcb.h
b/include/soc/at91/atmel_tcb.h
index
c3c7200
..
1d7071d
100644
(file)
--- a/
include/soc/at91/atmel_tcb.h
+++ b/
include/soc/at91/atmel_tcb.h
@@
-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;
};
/**