summaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-starfive.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/timer-starfive.h')
-rw-r--r--[-rwxr-xr-x]drivers/clocksource/timer-starfive.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clocksource/timer-starfive.h b/drivers/clocksource/timer-starfive.h
index 7315a0f3d567..f2ccc07d0e22 100755..100644
--- a/drivers/clocksource/timer-starfive.h
+++ b/drivers/clocksource/timer-starfive.h
@@ -81,10 +81,19 @@ struct starfive_timer {
u32 timer_base[NR_TIMERS];
};
+struct starfive_timer_misc_count {
+ u8 clk_count;
+ bool flg_init_clk;
+};
+
struct starfive_clkevt {
struct clock_event_device evt;
+ struct clocksource cs;
+ struct device_node *device_node;
+ struct starfive_timer_misc_count *misc;
struct clk *clk;
char name[20];
+ int index;
int irq;
u64 periodic;
u64 rate;