From patchwork Wed Apr 18 13:40:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 133631 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp5896187ljb; Wed, 18 Apr 2018 06:44:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/pzu6Oh7l8TayGQ/WHoN4H7ti0NlbJPuzUah+qKp/QN+5ohuHNh1W2U6ImLw9L6/JrWLMw X-Received: by 10.80.157.66 with SMTP id j2mr3304520edk.259.1524059069994; Wed, 18 Apr 2018 06:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524059069; cv=none; d=google.com; s=arc-20160816; b=HYHoB8/JM8m4gJpldxUY2xYL69bufz8DeD8GMG3nhkrWXpHP8mjEIcCDk3OYEXBoyg 1S5BMsjauXbDDgGoIL83Ib/UfrYRFoqTRqu8v/IMwPxP4kKaoJxVb8UEByY+lwlOSA+W oIEnfJRIk/rgVOq66lNYyE0xmoon4izLvCMbYMsyq2D04c1IH60/GvhivXx6QW3+Wh+M tG9q1kxwBbEbCaO8LSX3TFAOpjXYcgVrkC8U/5ch53EAx6TOkBrSioiK5KZDdMUPlPUK 1Yh9jVmFsIaARD5S2W4HZm3D6Dj8OQTXj39RJAJrBRzw8nQgb3kr3rd9muq71dCMFGFB NiAQ== 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=NLWSGRoF9h/h4nW3b/nHi8otq1Ded+0l6p0JYgfflIJEZLaKLUBnTKiIyeWjsesR4D /DMkRWxmcpcSUy/67fGv0ZqHM+mul5WrOOCdEbtT31ZiTVLlwue9DLv9FmbOrdLpkfCi faAd1cQh1bOsNFR34J4CCgsQIe2uGjjFaQP156T4nWxfZoXtzXjTWc1JrQZ9Srp/i0qw tzmB47SD5lwF9QfQH0zFEbZja+A51oeHd6lcb/K5Nv8z3R2f7lSHJYV4i7YNUQ/sUfa6 5yYeGh9AlVJ5dN71pI9p60tWD7wzY/ja4NvjFP3wERkL/vbSqY07v7EwPFkjiATGN8ua 7wXw== 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 5si1350657edj.332.2018.04.18.06.44.29; Wed, 18 Apr 2018 06:44:29 -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 8A1EAC21EC3; Wed, 18 Apr 2018 13:42:54 +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 7994DC21F21; Wed, 18 Apr 2018 13:40:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D30B6C21C8B; Wed, 18 Apr 2018 13:40:35 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 801D1C21C93 for ; Wed, 18 Apr 2018 13:40:35 +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 4DCB8AF62; Wed, 18 Apr 2018 13:40:35 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Wed, 18 Apr 2018 15:40:26 +0200 Message-Id: <20180418134030.55127-5-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180418134030.55127-1-agraf@suse.de> References: <20180418134030.55127-1-agraf@suse.de> Cc: Heinrich Schuchardt , Greentime Hu Subject: [U-Boot] [PATCH 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;