]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clocksource: sh_tmu: Add support for multiple channels per device
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 28 Jan 2014 11:36:48 +0000 (12:36 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 16 Apr 2014 10:03:23 +0000 (12:03 +0200)
commit8c7f21e6739ad836f30561d641393a8417abdad3
tree51058ea9037d14242cf815fca6800146293e6053
parentf1010ed1a13ea38f495ebfa2fdb1f38b7f87301f
clocksource: sh_tmu: Add support for multiple channels per device

TMU hardware devices can support multiple channels, with global
registers and per-channel registers. The sh_tmu 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>
drivers/clocksource/sh_tmu.c