Message ID | 20180423055950.78818-5-agraf@suse.de |
---|---|
State | Accepted |
Commit | b66babda459e3862230f147048a4c65419e81e07 |
Headers | show |
Series | riscv: Enable efi_loader support | expand |
> -----Original Message----- > From: Alexander Graf [mailto:agraf@suse.de] > Sent: Monday, April 23, 2018 2:00 PM > To: u-boot@lists.denx.de > Cc: Rick Jian-Zhi Chen(陳建志); Greentime Hu; Philipp Tomsich; Heinrich > Schuchardt; schwab@suse.de > Subject: [PATCH v3 4/8] 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> > --- > arch/riscv/include/asm/u-boot-riscv.h | 1 + > arch/riscv/lib/bootm.c | 4 ++++ > 2 files changed, 5 insertions(+) > > diff --git a/arch/riscv/include/asm/u-boot-riscv.h > b/arch/riscv/include/asm/u-boot-riscv.h > index 18099cd260..0b6428b1ae 100644 > --- a/arch/riscv/include/asm/u-boot-riscv.h > +++ b/arch/riscv/include/asm/u-boot-riscv.h > @@ -17,5 +17,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 > 9242fa891a..b80274adba 100644 > --- a/arch/riscv/lib/bootm.c > +++ b/arch/riscv/lib/bootm.c > @@ -16,6 +16,10 @@ > > DECLARE_GLOBAL_DATA_PTR; > > +__weak void board_quiesce_devices(void) { } > + Reviewed-by: Rick Chen <rick@andestech.com> > int arch_fixup_fdt(void *blob) > { > return 0; > -- > 2.12.3 CONFIDENTIALITY NOTICE: This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation. Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved.
diff --git a/arch/riscv/include/asm/u-boot-riscv.h b/arch/riscv/include/asm/u-boot-riscv.h index 18099cd260..0b6428b1ae 100644 --- a/arch/riscv/include/asm/u-boot-riscv.h +++ b/arch/riscv/include/asm/u-boot-riscv.h @@ -17,5 +17,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 9242fa891a..b80274adba 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -16,6 +16,10 @@ DECLARE_GLOBAL_DATA_PTR; +__weak void board_quiesce_devices(void) +{ +} + int arch_fixup_fdt(void *blob) { return 0;
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 | 1 + arch/riscv/lib/bootm.c | 4 ++++ 2 files changed, 5 insertions(+)