From patchwork Mon Nov 18 11:29:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1196704 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="op51LPdH"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47GmwL1XFyz9sRM for ; Mon, 18 Nov 2019 22:30:25 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 9D387C21E42; Mon, 18 Nov 2019 11:30:14 +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_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID 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 EE305C21EBB; Mon, 18 Nov 2019 11:30:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 61865C21E90; Mon, 18 Nov 2019 11:29:58 +0000 (UTC) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by lists.denx.de (Postfix) with ESMTPS id 71631C21DC1 for ; Mon, 18 Nov 2019 11:29:53 +0000 (UTC) Received: by mail-pj1-f65.google.com with SMTP id gc1so1408338pjb.8 for ; Mon, 18 Nov 2019 03:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ncBTpdqg7g/PeOGDCmUKYV5XHiGSFXLBeFX23hf/f50=; b=op51LPdH6dMgGGdIPCIDMIitbStNfitpkl1tbR5QpB8cp8NWzBw9TLGKf3c7mo29u0 BAEiLgFNhZzjDbIsBDA8zxd+xmHCxk5dY6LkRkAb25+a3m3EqLOSsPPrSpXSPsGT/I2I N81pkFclAR54cFcK1K7dEI9xdVwFFNgDIac04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ncBTpdqg7g/PeOGDCmUKYV5XHiGSFXLBeFX23hf/f50=; b=ceOpMIYWGNOlOs9lf4SJ+npacUN/GwDOdYtRniXDCOZbT8/lM2lbPg4fmfOp2UBq7K 7L0mIAePO+ehUr9tHOngdH4HAXT6x6nLEz02wiTkv/+Mk/JWmWUD+XsmPhje9+4spt6O 3NlbjUGH1VcR08xOUdQbyUApLkq5GAxn0tZtR+702t7rMJt3gfKXvPeuwaH0TRl2LRx/ +DwHuo5ZNjttFcwSdpG6u6mn3jdPorz9gWclAlxR259HNS1QcX8He78ycFvC+SXwPnPb wIYWAnQVQ3KBTB0tE+FEQWFlG6R1kTXylOsz+joiayQR+F6oua2XQgU79P4YSQyKBfB4 6evA== X-Gm-Message-State: APjAAAWhCZQW15PYiYFlTFrD6fSk6xVRIDxLOzJY2DDW/LAFCf5fiDoF EfLgfWadETee76fXJOG44ly7DDxKg2A6Og== X-Google-Smtp-Source: APXvYqyH8ZV71nqECy1r0iKfRqwUvij9ktfeil9MyEUhxHKMM2R0j6VZ+SF6NsUKeEapzjBUiz94Mw== X-Received: by 2002:a17:90a:9f06:: with SMTP id n6mr38898409pjp.113.1574076591750; Mon, 18 Nov 2019 03:29:51 -0800 (PST) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id s26sm20023477pfh.66.2019.11.18.03.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 03:29:51 -0800 (PST) From: Jagan Teki To: Rick Chen Date: Mon, 18 Nov 2019 16:59:41 +0530 Message-Id: <20191118112941.21286-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191118112941.21286-1-jagan@amarulasolutions.com> References: <20191118112941.21286-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v4 2/2] sifive: fu540: Enable OF_SEPARATE 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use dts support from U-Boot via OF_SEPARATE instead of depending from opensbi. This would help to make the necessary changes in drivers and device trees in U-Boot tree itself. This feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng Reviewed-by: Anup Patel --- Changes for v4: - Drop abosolete text configs/sifive_fu540_defconfig | 3 ++- doc/board/sifive/fu540.rst | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/configs/sifive_fu540_defconfig b/configs/sifive_fu540_defconfig index 48865e5f11..979d0a0418 100644 --- a/configs/sifive_fu540_defconfig +++ b/configs/sifive_fu540_defconfig @@ -6,6 +6,7 @@ CONFIG_RISCV_SMODE=y CONFIG_DISTRO_DEFAULTS=y CONFIG_FIT=y CONFIG_MISC_INIT_R=y +CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00" CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y -CONFIG_OF_PRIOR_STAGE=y +CONFIG_OF_SEPARATE=y diff --git a/doc/board/sifive/fu540.rst b/doc/board/sifive/fu540.rst index 7807f5b2c1..dd279f6a03 100644 --- a/doc/board/sifive/fu540.rst +++ b/doc/board/sifive/fu540.rst @@ -58,10 +58,7 @@ firmware. We need to compile OpenSBI with below command: .. code-block:: none - make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH= FW_PAYLOAD_FDT_PATH= - -(Note: Prefer hifive-unleashed-a00.dtb from Linux-5.3 or higher) -(Note: Linux-5.2 is also fine but it does not have ethernet DT node) + make PLATFORM=sifive/fu540 FW_PAYLOAD_PATH= More detailed description of steps required to build FW_PAYLOAD firmware is beyond the scope of this document. Please refer OpenSBI documenation.