From patchwork Thu Jun 25 07:37:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 1316765 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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tfxyfng6; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49ssMd3dDKz9sSJ for ; Thu, 25 Jun 2020 17:38:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7E444820EE; Thu, 25 Jun 2020 09:38:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tfxyfng6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C45D1820EE; Thu, 25 Jun 2020 09:38:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8444D820EE for ; Thu, 25 Jun 2020 09:38:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-wr1-x443.google.com with SMTP id h15so4733515wrq.8 for ; Thu, 25 Jun 2020 00:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V2jQx/9LvUi0RdbiYocf23lXty0cySfcivq10a6ncMk=; b=tfxyfng6QVzh3M8UM6qlJMUZzh8nOGhWr61piCh/tvEq7UdBnNZXuCyGfYtrQZs5Qy AVR2p7E9LP9FrpjbQ+9Rv8MT6+XBsnXxb6mIxCBQVC76snu1aKScF0U3TJFMu1o9+kW7 wpPfh/m/2Geo+TrZjXetQGec7gBlwEkLAJNHgVh7Inv3L0DemInNit6KjNz+GMIxVtXb 6Lg5G1QoL9vtqvnxUJJdcCgaDfBKuaepy0Kwz13Bw/B8KCb9uzq+2IZ2ZOTxqmWvWxN/ wi1BobsPSo84ljJof64h4sYP3us6EqNTZuVQdxRXKn+uT3vjJKG4UlYvbCFH9t4n2xRC 9JGQ== 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; bh=V2jQx/9LvUi0RdbiYocf23lXty0cySfcivq10a6ncMk=; b=S4gfuqloPUc9haJmEe8Z2JzF7dQfOb17anvdlGLjTfvFK6c/XVYkKA+qkYp6I9+mIa +slBZAqNquBF+DKGD/puJ66I0UIwa01koTofdOj/S9HK5vrvNfXBAY0JNQ1YfTCbFeGF ZE3U5UENWsfIQ1wpUlVDRbfiaC6m6lHdiUmN+64nQs0TzrQsdid3h7OVwRZmuFGnJEpS 1obxaRWq7wHyJDaibo5a2jQIcKy1D827tx3ffCz+1VJQb42H9vzruq8FcZ6GJ7cVqs2k +ajM9I8V3xP7qRabr8WorBSeSeHHacKRsHSED3qsVfHnRdybfckKxdQJdogNM+GtEut1 WhOw== X-Gm-Message-State: AOAM530dozdJfJRAn9auosJg5xmjYRfj0U+wm5WvOl2992SBudFoK0KO E0Kmwetk4iU5ejL4RZ+0AYI= X-Google-Smtp-Source: ABdhPJyy76VvFNzbLAqhLNT8Sch2kxdEJECCjUBHZILYkZB4RPhjhDfDjOGx85jSTe79E9GVJ+mvPA== X-Received: by 2002:a5d:4f0e:: with SMTP id c14mr20214093wru.410.1593070704479; Thu, 25 Jun 2020 00:38:24 -0700 (PDT) Received: from localhost.localdomain (unknown-224-80.windriver.com. [147.11.224.80]) by smtp.gmail.com with ESMTPSA id w13sm30844529wrr.67.2020.06.25.00.38.22 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 25 Jun 2020 00:38:24 -0700 (PDT) From: Bin Meng To: Rick Chen , U-Boot Mailing List Cc: Atish Patra , Bin Meng Subject: [PATCH v3 3/3] riscv: Enable CONFIG_OF_BOARD_FIXUP by default for OF_SEPARATE Date: Thu, 25 Jun 2020 00:37:26 -0700 Message-Id: <1593070646-6774-3-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1593070646-6774-1-git-send-email-bmeng.cn@gmail.com> References: <1593070646-6774-1-git-send-email-bmeng.cn@gmail.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean From: Bin Meng Starting from OpenSBI v0.7, the SBI firmware inserts/fixes up the reserved memory node for PMP protected memory regions. All RISC-V boards needs to copy the reserved memory node from the device tree provided by the firmware to the device tree used by U-Boot. Turn on CONFIG_OF_BOARD_FIXUP by default for OF_SEPARATE. Signed-off-by: Bin Meng Reviewed-by: Atish Patra --- Changes in v3: - change to "default y if OF_SEPARATE" arch/riscv/Kconfig | 3 +++ configs/sifive_fu540_defconfig | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index d9854f5..ff8a9f8 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -273,4 +273,7 @@ config STACK_SIZE_SHIFT int default 14 +config OF_BOARD_FIXUP + default y if OF_SEPARATE + endmenu diff --git a/configs/sifive_fu540_defconfig b/configs/sifive_fu540_defconfig index 8d412f8..32347c2 100644 --- a/configs/sifive_fu540_defconfig +++ b/configs/sifive_fu540_defconfig @@ -16,7 +16,6 @@ CONFIG_DISPLAY_CPUINFO=y CONFIG_DISPLAY_BOARDINFO=y CONFIG_SPL_SEPARATE_BSS=y CONFIG_SPL_YMODEM_SUPPORT=y -CONFIG_OF_BOARD_FIXUP=y CONFIG_DEFAULT_DEVICE_TREE="hifive-unleashed-a00" CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_SPL_CLK=y