mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-10-09 18:12:18 +01:00
include: sbi: Remove platform specific IPI init
The platform specfic IPI init is not need anymore because using IPI device rating multiple IPI devices can be registered in any order as part of the platform specific early init. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> Tested-by: Nick Hu <nick.hu@sifive.com> Link: https://lore.kernel.org/r/20250904052410.546818-3-apatel@ventanamicro.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -71,16 +71,22 @@ static struct aclint_mtimer_data mtimer = {
|
||||
*/
|
||||
static int ariane_early_init(bool cold_boot)
|
||||
{
|
||||
int rc;
|
||||
|
||||
if (!cold_boot)
|
||||
return 0;
|
||||
|
||||
return uart8250_init(ARIANE_UART_ADDR,
|
||||
ARIANE_UART_FREQ,
|
||||
ARIANE_UART_BAUDRATE,
|
||||
ARIANE_UART_REG_SHIFT,
|
||||
ARIANE_UART_REG_WIDTH,
|
||||
ARIANE_UART_REG_OFFSET,
|
||||
ARIANE_UART_CAPS);
|
||||
rc = uart8250_init(ARIANE_UART_ADDR,
|
||||
ARIANE_UART_FREQ,
|
||||
ARIANE_UART_BAUDRATE,
|
||||
ARIANE_UART_REG_SHIFT,
|
||||
ARIANE_UART_REG_WIDTH,
|
||||
ARIANE_UART_REG_OFFSET,
|
||||
ARIANE_UART_CAPS);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return aclint_mswi_cold_init(&mswi);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -107,14 +113,6 @@ static int ariane_irqchip_init(void)
|
||||
return plic_cold_irqchip_init(&plic);
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize IPI during cold boot.
|
||||
*/
|
||||
static int ariane_ipi_init(void)
|
||||
{
|
||||
return aclint_mswi_cold_init(&mswi);
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize ariane timer during cold boot.
|
||||
*/
|
||||
@@ -130,7 +128,6 @@ const struct sbi_platform_operations platform_ops = {
|
||||
.early_init = ariane_early_init,
|
||||
.final_init = ariane_final_init,
|
||||
.irqchip_init = ariane_irqchip_init,
|
||||
.ipi_init = ariane_ipi_init,
|
||||
.timer_init = ariane_timer_init,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user