aboutsummaryrefslogtreecommitdiff
path: root/platform/nuclei
diff options
context:
space:
mode:
authorNikita Shubin <n.shubin@yadro.com>2021-10-01 11:31:16 +0300
committerAnup Patel <anup@brainfault.org>2021-10-11 09:59:29 +0530
commit516161c46f0d3c73bf6a57e551d6e2489912fc03 (patch)
treea2186bbe2c1ac5817c9cce98cd79519e5e7a4752 /platform/nuclei
parent754d51192b6bf6a4afd9d46c5f736a9f6dd1b404 (diff)
downloadopensbi-516161c46f0d3c73bf6a57e551d6e2489912fc03.zip
opensbi-516161c46f0d3c73bf6a57e551d6e2489912fc03.tar.gz
opensbi-516161c46f0d3c73bf6a57e551d6e2489912fc03.tar.bz2
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>
Diffstat (limited to 'platform/nuclei')
-rw-r--r--platform/nuclei/ux600/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/nuclei/ux600/platform.c b/platform/nuclei/ux600/platform.c
index 6bef4c4..6f87cf8 100644
--- a/platform/nuclei/ux600/platform.c
+++ b/platform/nuclei/ux600/platform.c
@@ -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();