mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
platform: Remove dummy system reset functions
Few platforms have dummy system reset functions so let's remove these dummy system reset functions to allow generic code deal with it in the right way. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
@@ -147,16 +147,6 @@ static int ariane_timer_init(bool cold_boot)
|
||||
return clint_warm_timer_init();
|
||||
}
|
||||
|
||||
/*
|
||||
* Reset the ariane.
|
||||
*/
|
||||
static int ariane_system_reset(u32 type)
|
||||
{
|
||||
/* For now nothing to do. */
|
||||
sbi_printf("System reset\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Platform descriptor.
|
||||
*/
|
||||
@@ -174,7 +164,6 @@ const struct sbi_platform_operations platform_ops = {
|
||||
.timer_value = clint_timer_value,
|
||||
.timer_event_start = clint_timer_event_start,
|
||||
.timer_event_stop = clint_timer_event_stop,
|
||||
.system_reset = ariane_system_reset
|
||||
};
|
||||
|
||||
const struct sbi_platform platform = {
|
||||
|
@@ -173,16 +173,6 @@ static int openpiton_timer_init(bool cold_boot)
|
||||
return clint_warm_timer_init();
|
||||
}
|
||||
|
||||
/*
|
||||
* Reset the openpiton.
|
||||
*/
|
||||
static int openpiton_system_reset(u32 type)
|
||||
{
|
||||
/* For now nothing to do. */
|
||||
sbi_printf("System reset\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Platform descriptor.
|
||||
*/
|
||||
@@ -200,7 +190,6 @@ const struct sbi_platform_operations platform_ops = {
|
||||
.timer_value = clint_timer_value,
|
||||
.timer_event_start = clint_timer_event_start,
|
||||
.timer_event_stop = clint_timer_event_stop,
|
||||
.system_reset = openpiton_system_reset
|
||||
};
|
||||
|
||||
const struct sbi_platform platform = {
|
||||
|
Reference in New Issue
Block a user