Skip to content

Commit 81b3b27

Browse files
author
Laurent Pinchart
committed
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 <[email protected]>
1 parent fb28a65 commit 81b3b27

File tree

2 files changed

+237
-68
lines changed

2 files changed

+237
-68
lines changed

0 commit comments

Comments
 (0)