From patchwork Mon Feb 11 22:41:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Auer X-Patchwork-Id: 1040185 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 (mailfrom) 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=aisec.fraunhofer.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43z1534ZSHz9s1l for ; Tue, 12 Feb 2019 09:42:31 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 1D64BC22084; Mon, 11 Feb 2019 22:42:18 +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=none 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 5C3DEC22076; Mon, 11 Feb 2019 22:42:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AECA7C22084; Mon, 11 Feb 2019 22:41:56 +0000 (UTC) Received: from mail-edgeDD24.fraunhofer.de (mail-edgeDD24.fraunhofer.de [192.102.167.24]) by lists.denx.de (Postfix) with ESMTPS id 327DAC2206F for ; Mon, 11 Feb 2019 22:41:53 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2H5AAAO4PJb/xmnZsBiGwEBAQEDAQEBBwMBAQGBZYIEZnA5jG+LHZs9DSMLhD6DcCI4EgEDAQECAQECAgJpHAyCak1rAQEBAQEBIwINgRwBRoEeIA4FgyEBggEPqG2KFwUJAYdQhCuBVz+HPgQYghSFDgKLCJRnBwKBEYEJBIRciiILGIlYhyQBjTmHLIMxgV0igVUzGiRPgmyLHIU/PgEyAY5bAQE X-IPAS-Result: A2H5AAAO4PJb/xmnZsBiGwEBAQEDAQEBBwMBAQGBZYIEZnA5jG+LHZs9DSMLhD6DcCI4EgEDAQECAQECAgJpHAyCak1rAQEBAQEBIwINgRwBRoEeIA4FgyEBggEPqG2KFwUJAYdQhCuBVz+HPgQYghSFDgKLCJRnBwKBEYEJBIRciiILGIlYhyQBjTmHLIMxgV0igVUzGiRPgmyLHIU/PgEyAY5bAQE X-IronPort-AV: E=Sophos;i="5.56,253,1539640800"; d="scan'208";a="23259896" Received: from mail-mtadd25.fraunhofer.de ([192.102.167.25]) by mail-edgeDD24.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2019 23:41:51 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C1AgAq4PJb/xBhWMBiHAEBAQQBAQcEAQGBZYJqTyE5jG+mWg0jhEmEETgSAQMBAQIBAQJtHAyFdQFGgR4gDgWDIQGCAQ+obYoYBQkBh1CGAj+HPgQYghSFDgKLCJRnBwKBEYEJBIRciiILGIlYhyQBjTmHLIMxgV0hgVUzGiRPgmyLHIU/PgMwAY5bAQE X-IronPort-AV: E=Sophos;i="5.56,253,1539640800"; d="scan'208";a="31722184" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP11EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaDD25.fraunhofer.de with ESMTP/TLS/AES256-SHA; 11 Feb 2019 23:41:50 +0100 Received: from localhost.de (10.80.233.50) by FGDEMUCIMP11EXC.ads.fraunhofer.de (10.80.232.42) with Microsoft SMTP Server (TLS) id 14.3.435.0; Mon, 11 Feb 2019 23:43:39 +0100 From: Lukas Auer To: Date: Mon, 11 Feb 2019 23:41:36 +0100 Message-ID: <20190211224136.3180-1-lukas.auer@aisec.fraunhofer.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.200.1013-24422.005 X-TM-AS-Result: No--3.722800-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Cc: Palmer Dabbelt , Andreas Schwab , Alexander Graf Subject: [U-Boot] [PATCH] riscv: fu540: enable SMP 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" Hart 0 on the SiFive FU540 is meant for monitoring tasks. It is a E51 core, whereas all other cores are U54 cores. Select hart 1 as the main hart to run U-Boot. Signed-off-by: Lukas Auer Reviewed-by: Anup Patel --- This patch depends on the SMP support [1] and the SiFive FU540 support patch series [2]. I have submitted it independently from the SMP support patch series to allow the series to be merged independently from the SiFive FU540 support patch series. [1]: https://patchwork.ozlabs.org/project/uboot/list/?series=91320 [2]: https://patchwork.ozlabs.org/project/uboot/list/?series=91125 board/sifive/fu540/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/sifive/fu540/Kconfig b/board/sifive/fu540/Kconfig index 6be3d88144..d8a6020cf8 100644 --- a/board/sifive/fu540/Kconfig +++ b/board/sifive/fu540/Kconfig @@ -16,6 +16,9 @@ config SYS_TEXT_BASE default 0x80000000 if !RISCV_SMODE default 0x80200000 if RISCV_SMODE +config MAIN_HART + default 1 + config BOARD_SPECIFIC_OPTIONS # dummy def_bool y select GENERIC_RISCV @@ -38,5 +41,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply PHY_LIB imply PHY_MSCC imply SIFIVE_SERIAL + imply SMP endif