mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 10:26:42 +07:00
81b3b27110
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>
14 lines
253 B
C
14 lines
253 B
C
#ifndef __SH_TIMER_H__
|
|
#define __SH_TIMER_H__
|
|
|
|
struct sh_timer_config {
|
|
char *name;
|
|
long channel_offset;
|
|
int timer_bit;
|
|
unsigned long clockevent_rating;
|
|
unsigned long clocksource_rating;
|
|
unsigned int channels_mask;
|
|
};
|
|
|
|
#endif /* __SH_TIMER_H__ */
|