mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user