From patchwork Sun Sep 29 07:42:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 852 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 314F93F039 for ; Sun, 29 Sep 2019 09:43:04 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id b204sf5291957pfb.11 for ; Sun, 29 Sep 2019 00:43:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569742983; cv=pass; d=google.com; s=arc-20160816; b=zbGk2p9g4MWlYfaPHAkg4VhWPZGbKp3OHpQX+fGxEqScup3Mo+SAWWdBMxtrz8DZAf yO/bfzl7HHxNve9zj2XcQhCgdvKWJQ2CXoJgW/3o9g6MUMpm4QePUqaY+gyK799pVjag ZCvOsSGZC4tPoeJLxQJwaxpJGLtiTnPphS1eP1UaRBDxii30+cONSdcXM1KjDcVPYXsN 3oYJAc4aM5Z9Uo5+mSr9JzD0Gjxd+QWXxcs9WHBQqY6xgNEECSpr6C32Y83m5RZFq5l0 4C4U5wFlS+iPGEHbbEQbaRpYe7CDX9ah8gDvpac50tbrSQB5cT/6K5/jTyGxlOIQ1wur qWlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gvNEwr0gfLkG0NsoD0ts49SPl57V3R9yiEH5SijKt9w=; b=mld42vlG7kKOz4oj0edny2ih5qctDgD93YLAmLi0tlRKEu992HGr2qGb7OI2BhcLPf 029Nb1ZVGpywK+eF4qKcg38XOOasZXpssDPYdMmsqiXhaIEPvdVNwn+Ie8LJb/UksRoe fINIMf2B8CNxus9Sc8nVBq2qjfnxILSW7VH/E+6seMg044x7/gZSeDhaibHcxWEOVou0 fpegOC4I2r9AN9OxMp3ITnA3dS0J+lHe68hB2OiiGuqPxVka/bXsVTZrsX2D34bBRJNP QLzfEWFC9KbwRB+xFCeCVcn3od1LjZSyA8rbg+VDYinf1ubE17cubtYU13hHP92EYhHI m86Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wz4m62vF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=gvNEwr0gfLkG0NsoD0ts49SPl57V3R9yiEH5SijKt9w=; b=ApBJ8PkVbmTaA868bT4w1G8rTEIkBzPShFVKpx1x5ClYwmwuiuk5uKfZs8YK+Aq0Aj OpPn+5yMhnPgjI4TCM0b6jtfMru2BQbSoKg7hTaSwNC7vp9YnmI01/4ZoBfhFLEaxrFi RwKUdKStZEaHoN8WhSuaoHjhFsxz2lG8SoXEk= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=gvNEwr0gfLkG0NsoD0ts49SPl57V3R9yiEH5SijKt9w=; b=onWzxrMQoRPI0dswNDX1bSeKcoaLbXI8NfTdZmQ5I305ZqeFfnZHDW//e3c2/9kPed D5tIk2E7wQnKtgw2uier9WoF+1LFhpwniydqA4RRQxQiE8kW/Jn9kD6NhycDNV6OGluz 3lrYucKGj4WLqqbA6eK5qMV6RrwuZ4r+K95naSgtBQ2GKmzAXtyLDjjL0AUQO83epErY CibiCXB2d79xtDr2NABwyUAmFHHRPtmQE+BnueoIyTo7ubsN1RQjdANtTsWfFKiTiAk2 b3RZLoScJufW6oATmBxXBE0z1i69Jn1LmdTjxe/2t0ZEoFQ/37gY7PU6ETkY+qGMEeDu bM8w== X-Gm-Message-State: APjAAAVYj6eDxBr/NfQz3H4mg7XzX2FeXPT4lLDV/FFxTakO0xhBOXSs LIamZLVq+m55byky97NYpcpJsDCq X-Google-Smtp-Source: APXvYqxy0+dCMDHviiFjQXC3cHZTROxX7HovbuGcc34tWRWd0F6eCUni1uDhtDOCTQubcA7pmQDEiw== X-Received: by 2002:a63:2808:: with SMTP id o8mr18441833pgo.118.1569742982901; Sun, 29 Sep 2019 00:43:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:8309:: with SMTP id h9ls1914340pfe.13.gmail; Sun, 29 Sep 2019 00:43:02 -0700 (PDT) X-Received: by 2002:a63:c811:: with SMTP id z17mr3824192pgg.349.1569742982470; Sun, 29 Sep 2019 00:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569742982; cv=none; d=google.com; s=arc-20160816; b=fWObslsWHSx55IQaGTyRFUfEVVj/3k/uT4Ziv0WY3ZcZ//whaDphbocscr2Ta0K9SZ KQSLb4NxDpiNeK6ay7ga3LJGNNjK7GHg505OkzARCvNKW6PG6xf1ALS1mj5GHyhIe9Fx /GCNBfUNaRUmV6QGrbfGSuWTa4owRMySjzq5aFv7fGUyVNZ5HAJyNyFXbbDdH3jkI9de mdbrEU22QDHNFmUNFNEnbM0/db3EOA9Xc4mUX+lE7qCTJHJnl4UFUmUR+DnE60dGTI+3 hBmK1OQLv59kSJS77Pv18M5OyAv+U3i+OqwpJAYXHUvRt/q+lPsGINTxOjrt86KdUHcU gY+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3BqjJp+ulFFSn+3SG+CtJU6b463eKl02kIBKbwp/zvY=; b=lrfbDkX8vfgRX8HFL4a2pIoEhQMW+00kBnTl09r1/HhpIQUCAnlB5a4CIpV8Ua0R3U YuS0kG/xlWt8dU/ImZ9ugaWAOU6r/n5UKgCzAYiY+lX4sZQKfUOMMeX+pQf9g2hJ1X54 7xVHuQrU88Wksyva2k8PLamlWc611KjOCd87Zq7LYKVSwE901x7ua5fQG1Sq2sUfrsfY HYP003ggEa6i1Hk1O2BnUq3SrgtInkJI7RmKicFkIePm/rSl3DJDiw5ChL1nDKtcOdC5 q1GJxVPQNjNhYw2yOpeMATxhWlpi6yt769aPWY01MiTXJ3VnGXnbg0Ta7lqIJM3Ph5uq 9sWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wz4m62vF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h14sor9221911plr.34.2019.09.29.00.43.02 for (Google Transport Security); Sun, 29 Sep 2019 00:43:02 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8ec9:: with SMTP id x9mr14148577plo.32.1569742982176; Sun, 29 Sep 2019 00:43:02 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id x9sm29548432pje.27.2019.09.29.00.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2019 00:43:01 -0700 (PDT) From: Jagan Teki To: Rick Chen , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Bin Meng Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/5] sifive: fu540: Enable OF_SEPARATE Date: Sun, 29 Sep 2019 13:12:36 +0530 Message-Id: <20190929074239.11575-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190929074239.11575-1-jagan@amarulasolutions.com> References: <20190929074239.11575-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wz4m62vF; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 devicetrees in uboot tree itself. this feature would also be helpful to not pass dtb during opensbi builds. Signed-off-by: Jagan Teki --- configs/sifive_fu540_defconfig | 3 ++- doc/board/sifive/fu540.rst | 2 +- 2 files changed, 3 insertions(+), 2 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..91b94ee06f 100644 --- a/doc/board/sifive/fu540.rst +++ b/doc/board/sifive/fu540.rst @@ -58,7 +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= + make PLATFORM=sifive/fu540 FW_PAYLOAD_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)