mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
lib: sbi: convert reset to list
To support different handlers for different types of resets, we are adding a sbi_list of restart handlers. Instead of sbi_system_reset_set_device we use sbi_system_reset_add_device to reflect the actual meaning. Signed-off-by: Nikita Shubin <n.shubin@yadro.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:

committed by
Anup Patel

parent
754d51192b
commit
516161c46f
@@ -108,7 +108,7 @@ static struct sbi_system_reset_device k210_reset = {
|
||||
static int k210_early_init(bool cold_boot)
|
||||
{
|
||||
if (cold_boot)
|
||||
sbi_system_reset_set_device(&k210_reset);
|
||||
sbi_system_reset_add_device(&k210_reset);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@@ -148,7 +148,7 @@ static int ux600_early_init(bool cold_boot)
|
||||
u32 regval;
|
||||
|
||||
if (cold_boot)
|
||||
sbi_system_reset_set_device(&ux600_reset);
|
||||
sbi_system_reset_add_device(&ux600_reset);
|
||||
|
||||
/* Measure CPU Frequency using Timer */
|
||||
ux600_clk_freq = ux600_get_clk_freq();
|
||||
|
Reference in New Issue
Block a user