[U-Boot] [PATCH v3 4/8] riscv: Add board_quiesce_devices stub
rick at andestech.com
rick at andestech.com
Mon May 7 02:25:51 UTC 2018
> -----Original Message-----
> From: Alexander Graf [mailto:agraf at suse.de]
> Sent: Monday, April 23, 2018 2:00 PM
> To: u-boot at lists.denx.de
> Cc: Rick Jian-Zhi Chen(陳建志); Greentime Hu; Philipp Tomsich; Heinrich
> Schuchardt; schwab at 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 at 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 at 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.
More information about the U-Boot
mailing list