]> git.sur5r.net Git - u-boot/commitdiff
riscv: Add board_quiesce_devices stub
authorAlexander Graf <agraf@suse.de>
Mon, 23 Apr 2018 05:59:46 +0000 (07:59 +0200)
committerAndes <uboot@andestech.com>
Tue, 29 May 2018 06:43:12 +0000 (14:43 +0800)
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>
arch/riscv/include/asm/u-boot-riscv.h
arch/riscv/lib/bootm.c

index c4c068f9e24dd7b3c0a6846b0dbaee8c09d57e3b..49febd588102a825f3c6edae199358ed46b76a01 100644 (file)
@@ -16,5 +16,6 @@ int cleanup_before_linux(void);
 
 /* board/.../... */
 int board_init(void);
+void board_quiesce_devices(void);
 
 #endif /* _U_BOOT_RISCV_H_ */
index 8ede0485d4703a74faa4b4fb5e9e6746480879f7..2610a57bbff32e6d9f9c0d63840177c43973bfeb 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
+__weak void board_quiesce_devices(void)
+{
+}
+
 int arch_fixup_fdt(void *blob)
 {
        return 0;