summaryrefslogtreecommitdiffstats
path: root/include/linux/sh_timer.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-01-28 12:36:48 +0100
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2014-04-16 12:03:14 +0200
commit81b3b2711072b6047d5f332cd8751a1c5c9a3fb2 (patch)
tree025f8338c98d31deb618fdc8c115d32364bfc609 /include/linux/sh_timer.h
parentfb28a659813084365eced5c2876c6383da52e634 (diff)
downloadop-kernel-dev-81b3b2711072b6047d5f332cd8751a1c5c9a3fb2.zip
op-kernel-dev-81b3b2711072b6047d5f332cd8751a1c5c9a3fb2.tar.gz
clocksource: sh_cmt: Add support for multiple channels per device
CMT hardware devices can support multiple channels, with global registers and per-channel registers. The sh_cmt driver currently models the hardware with one Linux device per channel. This model makes it difficult to handle global registers in a clean way. Add support for a new model that uses one Linux device per timer with multiple channels per device. This requires changes to platform data, add new channel configuration fields. Support for the legacy model is kept and will be removed after all platforms switch to the new model. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'include/linux/sh_timer.h')
-rw-r--r--include/linux/sh_timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sh_timer.h b/include/linux/sh_timer.h
index 4d9dcd1..8e1e036 100644
--- a/include/linux/sh_timer.h
+++ b/include/linux/sh_timer.h
@@ -7,6 +7,7 @@ struct sh_timer_config {
int timer_bit;
unsigned long clockevent_rating;
unsigned long clocksource_rating;
+ unsigned int channels_mask;
};
#endif /* __SH_TIMER_H__ */
OpenPOWER on IntegriCloud