summaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-starfive.h
diff options
context:
space:
mode:
authorziv.xu <ziv.xu@starfive.com>2022-10-27 05:52:50 +0300
committermason.huo <mason.huo@starfivetech.com>2023-01-05 08:27:24 +0300
commitcc625321ba259cd732eded12304f76397b42cce8 (patch)
treee6390ee5a5bde4388399dc5b03b30c20bc5e7c1c /drivers/clocksource/timer-starfive.h
parent9e7fafcab3249f6a2d611c19af3132bb312c3265 (diff)
downloadlinux-cc625321ba259cd732eded12304f76397b42cce8.tar.xz
timer-starfive:add pm ops for timer
add system pm ops for timer Signed-off-by: ziv.xu <ziv.xu@starfive.com>
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;