diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-04-22 11:53:32 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-04-28 17:25:00 +0530 |
commit | 043d088e3964ec64b091f739e2282f53f7d264fb (patch) | |
tree | e5ec82451c097df3f3416ec077752527d81107a7 /include/sbi_utils | |
parent | dc39c7b630a607b96c25f8ea50f0bb1af619928a (diff) |
lib: sbi: Simplify system reset platform operations
Instead of having system_reset_check() and system_reset() callbacks
in platform operations, it will be much simpler for reset driver to
directly register these operations as a device to the sbi_system
implementation.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'include/sbi_utils')
-rw-r--r-- | include/sbi_utils/reset/fdt_reset.h | 6 | ||||
-rw-r--r-- | include/sbi_utils/sys/htif.h | 4 | ||||
-rw-r--r-- | include/sbi_utils/sys/sifive_test.h | 4 |
3 files changed, 1 insertions, 13 deletions
diff --git a/include/sbi_utils/reset/fdt_reset.h b/include/sbi_utils/reset/fdt_reset.h index cce441a..6d58697 100644 --- a/include/sbi_utils/reset/fdt_reset.h +++ b/include/sbi_utils/reset/fdt_reset.h @@ -15,14 +15,8 @@ struct fdt_reset { const struct fdt_match *match_table; int (*init)(void *fdt, int nodeoff, const struct fdt_match *match); - int (*system_reset_check)(u32 reset_type, u32 reset_reason); - void (*system_reset)(u32 reset_type, u32 reset_reason); }; -int fdt_system_reset_check(u32 reset_type, u32 reset_reason); - -void fdt_system_reset(u32 reset_type, u32 reset_reason); - int fdt_reset_init(void); #endif diff --git a/include/sbi_utils/sys/htif.h b/include/sbi_utils/sys/htif.h index 8073a44..9cc9634 100644 --- a/include/sbi_utils/sys/htif.h +++ b/include/sbi_utils/sys/htif.h @@ -12,8 +12,6 @@ int htif_serial_init(void); -int htif_system_reset_check(u32 type, u32 reason); - -void htif_system_reset(u32 type, u32 reason); +int htif_system_reset_init(void); #endif diff --git a/include/sbi_utils/sys/sifive_test.h b/include/sbi_utils/sys/sifive_test.h index 958622e..0a09499 100644 --- a/include/sbi_utils/sys/sifive_test.h +++ b/include/sbi_utils/sys/sifive_test.h @@ -12,10 +12,6 @@ #include <sbi/sbi_types.h> -int sifive_test_system_reset_check(u32 type, u32 reason); - -void sifive_test_system_reset(u32 type, u32 reason); - int sifive_test_init(unsigned long base); #endif |