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>
This commit is contained in:
Samuel Holland authored and Anup Patel committed 2024-11-05 17:39:31 +05:30
1 parent 4500828743
commit 99b01ab610
12 files changed
+25 -121

No files matched your search

+3 -11
View File
@@ -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);
}
/*