Commit 81b3b271 authored by Laurent Pinchart's avatar Laurent Pinchart

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: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent fb28a659
This diff is collapsed.
...@@ -7,6 +7,7 @@ struct sh_timer_config { ...@@ -7,6 +7,7 @@ struct sh_timer_config {
int timer_bit; int timer_bit;
unsigned long clockevent_rating; unsigned long clockevent_rating;
unsigned long clocksource_rating; unsigned long clocksource_rating;
unsigned int channels_mask;
}; };
#endif /* __SH_TIMER_H__ */ #endif /* __SH_TIMER_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment