From patchwork Wed Oct 16 14:58:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 858 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3CD283F039 for ; Wed, 16 Oct 2019 16:58:35 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id p15sf14339041plq.4 for ; Wed, 16 Oct 2019 07:58:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571237914; cv=pass; d=google.com; s=arc-20160816; b=cmghAkuJSdh/FOWWRUIuxnpQEJ6fzFZrqKhY0hyLP7YIu6I2lUKwq0AiXVm9zy/maq yn+UuAONimweb1GcsTv6t/D/kUEpoMklNrYzAWhugDHF+o/fMz6gkqG6O6Zffl6zDTUp dcoZ25zVakYA8aOYIJpc1//jLa6sLFxEWpfZuq5mt3eXPJ1418DP7QupMZ6jxM7WhzQM kNX9rEtJ+eT9ccw3bn0xEgueHlkmRWZPhfi9I4vijc0moNG/qa5DD9nrdmj/0z0/2kiI MvU0yCDgQLdCq6KgcTlYen2qj8+eHxHrfPj9YXu/k0CzqyZM+MFUas7PJZsDNOpgLqRL VUXw== 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=BUkBz+Rx+n/80tHvofoqk42AimdSc4nVHIxN+juRbeskp7EVPdNGQqXfZOlwHwTs+Z zv9bJe252df/FeLhV5Rnkhdd2rDLrgXzT/woRqkkuav9FLbJk36JMkcInzISLqaSmPq2 vesqSk7pkOFPL818lopXdBNZTB9L9fS1NHfI2JM3Uvy6bxXM8EVDVa/Np+el9KjQIffO ThCJAeeufYYAfFBNaFOess7KnmtTQoSgEsbIlJcI5f1CADObNMhDIcgGSZfP4R6KXzi/ seiUxGygZJ3s9TMy8b7C6EFsyO8FWtUyvg/AkxxoLUAd3LETAVqzbBCJpoI6jiGzfchh VtKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p65rCzAv; 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=HWRxE93iQFOCwIdQrFQdIVZ8jRfGjudmG0zUL+evc+1xJFdowg/b9ZRRWG4o7EZy0x zJhc4jVk75tg009hHBsbF8wedtHm+R3sswCv8ttY2KFQ8AGc2AFZgJ37HrMufeP6WhDi Wts2sf68OMekMz4lQJBReQBhmyQx4KOlXC3d4= 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=ZDyZlylLje6H0psjmRxGrrfiSh0eASizhfOFKbT5+xTZExxS1qdJs49G/6hGE28iKs TTkf4bgwIWt2Co/ApD5i23o/qCz9/5tD+7hTjFWjIoNCBfCNRUmsfEal7KzYEYHtp0Sa juoW9aoN8SgJfs3f8ZOwHwE8baRAxr8KQXPy9wRS0uLpMZ654kM8VyeNGKWyvuhdPped tk8oDw913iMuaxstHqt/zM64FvZj0OBuOsKyv2+100QsbgxY6zVtJFGeFKsEShNwuxZa GbofxYQLg2U53tKv4Kxry7IHHzlE0V7ejmegL7PDWKFyA+92/403XZFUChfKOvfQezSz veKg== X-Gm-Message-State: APjAAAVI7PYqiS2KwhqnnqFckdN9Nra4z3JEpIe3xBGYxilk3CM8NZi6 yE7IH/bSI2dA8WgAMrLCEhOzSmHu X-Google-Smtp-Source: APXvYqwDAeo2kdqsXrBEpfPJybQokTgOLBesZTWN7lhhNZMoNJlnRJRQwMWnH5/4tZ5c9m9o22qRuA== X-Received: by 2002:a63:d151:: with SMTP id c17mr33792667pgj.423.1571237913955; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:8a8c:: with SMTP id x12ls880303pjn.5.gmail; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) X-Received: by 2002:a17:90a:de14:: with SMTP id m20mr5608582pjv.10.1571237913546; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571237913; cv=none; d=google.com; s=arc-20160816; b=07CBuguRqPf+GDzsEiqJi1UInIa0/F5C58Asa3gLebgrwxuerhf88U6OhFldSy4vDN s6t2fTvQZ4X7JdMnFqtRqSwV82KHaoFeqjFMeAsvaWhIgoKTltJ/GyCagBRdWUXM3T2o m7X05r4bg9399mi4RBWmL2XOtQkI4wWw3bgdgQCl53gaqpXobQN/BL88KJ1EzMq2XrYw 4HvBhoQxkqknKE5DCuc7K7TPW/zbsXPKcfgki48XuBWKZNkm9/t4JaN4rb16PBFBE+Yo f9qf0x+ZCHQ0S0O8xRCXUpaP4Nh2VfKMRWG7p66i26ioItnN4oA7k1pVJUCENrFmdvS8 ITWw== 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=yKeqk6h8adjRKmXEVsooQVQTmOT7rqxJNgJAGBT7aBbxm7mOXfghD9ECqMoHwjRwX/ 7mnFnp7S/Lvj1xrXqXZ6JWsa2dDZNlSapv4c9upkGfK9Hm1rZvKCcoya612OOT/hQ233 6telwUXuZNM+t52JXS2l0YUsqe2daWEyzAimjE2pt+P7TK2eq+yo9ongVSgOPhmQmXGc S6ZKiYRsTMJcgocaP3HcnWwHpS0DaW3MjZyxCZegfg3BtcoVYPl/Ebz0Et19mI5TCP9Q 38Lxujrx/MggsJAqI7hUVH0rB6TI2i+Wj+Im0E6y7dsAwiE7admge6BWDUy4Lxb8myO3 xdlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=p65rCzAv; 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 p7sor3516052pjf.20.2019.10.16.07.58.33 for (Google Transport Security); Wed, 16 Oct 2019 07:58:33 -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:90a:5d0f:: with SMTP id s15mr5558310pji.126.1571237913175; Wed, 16 Oct 2019 07:58:33 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id q29sm5534110pgc.36.2019.10.16.07.58.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:58:32 -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 v2 2/5] sifive: fu540: Enable OF_SEPARATE Date: Wed, 16 Oct 2019 20:28:11 +0530 Message-Id: <20191016145814.19036-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191016145814.19036-1-jagan@amarulasolutions.com> References: <20191016145814.19036-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=p65rCzAv; 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)