aboutsummaryrefslogtreecommitdiff
path: root/include/sbi_utils/timer
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-09-02 21:06:50 -0700
committerAnup Patel <anup@brainfault.org>2024-11-05 17:39:31 +0530
commit99b01ab610acf6ff7c3d0199f13f5b41322a22e2 (patch)
tree7472232fdd08fec61c0c644b802fb8fa3ad06cde /include/sbi_utils/timer
parent450082874346bb25109877b7ac6a1754f089f538 (diff)
downloadopensbi-99b01ab610acf6ff7c3d0199f13f5b41322a22e2.tar.gz
opensbi-99b01ab610acf6ff7c3d0199f13f5b41322a22e2.tar.bz2
opensbi-99b01ab610acf6ff7c3d0199f13f5b41322a22e2.zip
platform: Drop timer warm init and exit hooks
Now that driver lifecycle is managed from within the SBI timer core, platforms need only to initialize the driver once during cold init. Remove the remaining platform hooks that are no longer used. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/sbi_utils/timer')
-rw-r--r--include/sbi_utils/timer/fdt_timer.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/sbi_utils/timer/fdt_timer.h b/include/sbi_utils/timer/fdt_timer.h
index 555ebcba..8f0469da 100644
--- a/include/sbi_utils/timer/fdt_timer.h
+++ b/include/sbi_utils/timer/fdt_timer.h
@@ -17,18 +17,13 @@
struct fdt_timer {
const struct fdt_match *match_table;
int (*cold_init)(const void *fdt, int nodeoff, const struct fdt_match *match);
- int (*warm_init)(void);
- void (*exit)(void);
};
-void fdt_timer_exit(void);
-
-int fdt_timer_init(bool cold_boot);
+int fdt_timer_init(void);
#else
-static inline void fdt_timer_exit(void) { }
-static inline int fdt_timer_init(bool cold_boot) { return 0; }
+static inline int fdt_timer_init(void) { return 0; }
#endif