diff options
author | Alexander Graf <agraf@suse.de> | 2018-04-23 07:59:46 +0200 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2018-05-29 14:43:12 +0800 |
commit | b66babda459e3862230f147048a4c65419e81e07 (patch) | |
tree | 7cf6f490f28bf137e3d22095737c1ac4eb4e3a5c /arch | |
parent | 493d1e88b676675e0c2a8614abcba0dcbb9befa4 (diff) |
riscv: Add board_quiesce_devices stub
This patch adds an empty stub for board_quiesce_devices() which allows boards
to quiesce their devices before we boot into an OS in a platform agnostic way.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/include/asm/u-boot-riscv.h | 1 | ||||
-rw-r--r-- | arch/riscv/lib/bootm.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/u-boot-riscv.h b/arch/riscv/include/asm/u-boot-riscv.h index c4c068f9e2..49febd5881 100644 --- a/arch/riscv/include/asm/u-boot-riscv.h +++ b/arch/riscv/include/asm/u-boot-riscv.h @@ -16,5 +16,6 @@ int cleanup_before_linux(void); /* board/.../... */ int board_init(void); +void board_quiesce_devices(void); #endif /* _U_BOOT_RISCV_H_ */ diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 8ede0485d4..2610a57bbf 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -15,6 +15,10 @@ DECLARE_GLOBAL_DATA_PTR; +__weak void board_quiesce_devices(void) +{ +} + int arch_fixup_fdt(void *blob) { return 0; |