• Laurent Pinchart's avatar
    clocksource: sh_tmu: Add support for multiple channels per device · 8c7f21e6
    Laurent Pinchart authored
    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: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
    8c7f21e6
sh_tmu.c 15.9 KB