Ver código fonte

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>
Alexander Graf 7 anos atrás
pai
commit
b66babda45
2 arquivos alterados com 5 adições e 0 exclusões
  1. 1 0
      arch/riscv/include/asm/u-boot-riscv.h
  2. 4 0
      arch/riscv/lib/bootm.c

+ 1 - 0
arch/riscv/include/asm/u-boot-riscv.h

@@ -16,5 +16,6 @@ int cleanup_before_linux(void);
 
 
 /* board/.../... */
 /* board/.../... */
 int board_init(void);
 int board_init(void);
+void board_quiesce_devices(void);
 
 
 #endif	/* _U_BOOT_RISCV_H_ */
 #endif	/* _U_BOOT_RISCV_H_ */

+ 4 - 0
arch/riscv/lib/bootm.c

@@ -15,6 +15,10 @@
 
 
 DECLARE_GLOBAL_DATA_PTR;
 DECLARE_GLOBAL_DATA_PTR;
 
 
+__weak void board_quiesce_devices(void)
+{
+}
+
 int arch_fixup_fdt(void *blob)
 int arch_fixup_fdt(void *blob)
 {
 {
 	return 0;
 	return 0;