From patchwork Thu Apr 19 15:49:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133829 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp788569ljf; Thu, 19 Apr 2018 08:49:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+dpZL516Y9YyK/gRkI/1zcqboOwHiM6zqRj6+rjIFf30EWV0BCY1ErWh8K+epsAWj7x7Os X-Received: by 10.80.146.28 with SMTP id i28mr9173835eda.27.1524152988016; Thu, 19 Apr 2018 08:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524152988; cv=none; d=google.com; s=arc-20160816; b=Uz3wGdFjfPx2n9ElmfZMH5qZJ7K1Gg8Xuk+vS1e+V4VES9a1mo8MPaoE2Bf7kNfjng cA6BFuogl0yL0acavXjkJB2hj7x9i6q961fHfVWnVfA4KpDyL8G/Js8v39Lh1wrPalPp SdzcQeCDEbMf/9W1ee0b4QX+aoFN9Qf5c4J2iyWnmGZqNqJ94CWlPqCl3ZJDfwVilUVc nrA6j1GJvuLEnzq282x9wea9Y+fkitPiIDWIFx9cSlhh12kFVhrdbX++Mxcr1ejg62/z UQyn2dlGDc0QcC9+xeSqpUKhWwmYeXBJtP9XHJUt3YZe1HhRrhPNBI1Yz19iIYLQH7Cu bDbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=nubpHsVjoyXDlWDf2ClEQ7oY/3zaUgtJF0lPVvN9fyo=; b=WQxiIUvoKE3LoVTubnd2OsB3/F9PPSiLBgcIGt42EMoGPWHb98a91OzgnQX3H12Kee rNJeoH5iKM4T3Sbr0XpoWb3aYtQbyd052iTFa7PHCLUgGgf+Bz2HZn8prg/v0Edqi6ji h4cpamhByccDyUMHykFB/rdS43v3AFRMwC6TOvuRaxhjT+LyCAcAaMrdw/DsVBtrd99r NJ5VeI4k4SPu9kroeklQMXQSChJaEHnznBas+46xPBLl526s7mlGf/GLn/nqS/yBbm6X GMyznB3JhpvGrAVfgLm6hsWlpelMFWOV2Y2nQ+cxKufVWx3EszV3LQTDUbLSv+0Yi4ab AONA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id s17si3264712edi.23.2018.04.19.08.49.33; Thu, 19 Apr 2018 08:49:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id E6153C21FF3; Thu, 19 Apr 2018 15:49:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8D5A1C21D8A; Thu, 19 Apr 2018 15:49:28 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 86109C21FAD; Thu, 19 Apr 2018 15:49:26 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 887F8C21E89 for ; Thu, 19 Apr 2018 15:49:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 25492AF7E; Thu, 19 Apr 2018 15:49:25 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 19 Apr 2018 17:49:19 +0200 Message-Id: <20180419154923.70719-5-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180419154923.70719-1-agraf@suse.de> References: <20180419154923.70719-1-agraf@suse.de> Cc: Heinrich Schuchardt , schwab@suse.de, Greentime Hu Subject: [U-Boot] [PATCH v2 4/8] riscv: Add board_quiesce_devices stub X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 --- 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) +{ +} + int arch_fixup_fdt(void *blob) { return 0;