summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2024-09-02 21:06:50 -0700
committerAnup Patel <[email protected]>2024-11-05 17:39:31 +0530
commit99b01ab610acf6ff7c3d0199f13f5b41322a22e2 (patch)
tree7472232fdd08fec61c0c644b802fb8fa3ad06cde /platform/template
parent450082874346bb25109877b7ac6a1754f089f538 (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/template')
-rw-r--r--platform/template/platform.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index 1238a8d6..1fc7b7bb 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -116,20 +116,12 @@ static int platform_ipi_init(bool cold_boot)
}
/*
- * Initialize platform timer for current HART.
+ * Initialize platform timer during cold boot.
*/
-static int platform_timer_init(bool cold_boot)
+static int platform_timer_init(void)
{
- int ret;
-
/* Example if the generic ACLINT driver is used */
- if (cold_boot) {
- ret = aclint_mtimer_cold_init(&mtimer, NULL);
- if (ret)
- return ret;
- }
-
- return 0;
+ return aclint_mtimer_cold_init(&mtimer, NULL);
}
/*