From patchwork Mon Jun 17 19:29:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loys Ollivier X-Patchwork-Id: 11000347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A845313AF for ; Mon, 17 Jun 2019 19:30:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9875028784 for ; Mon, 17 Jun 2019 19:30:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89E0728906; Mon, 17 Jun 2019 19:30:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 29ABA28784 for ; Mon, 17 Jun 2019 19:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=qE7Fp/AIjodA/HAVmBfHxBL3UqeKyntisYRWE9yKOII=; b=lAawBmogOB5YU/naNJO4P5G5SZ 4ZU3QuynjI8GfuI7P0bVEezzsQtQXUwkBoqm9xAC3qDV3FYYhYkMEiWLVDZIcUUU1G2rEJO7U3+az AnyPCPXA67QY9db/B4bPAuNaNmf3yt9cQkib81csVqIsULjSf/fC2bs9BLqsa6sl0c/5wfC19IbXk 5rgbqgnAO1HW8e0WGqimg983vGuG7BYQpRPHOqO0en+w1koOU43q5NAQcJyGCqF/MZ/gsiL0MFe0V 4D836oTVX+cfFUSJNCGIROZVtLHDCPBcYdNC1ojnqU3lqkWBvLBhdVXkVUpZindLOcoA04giXj054 3gJOptHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hcxKN-0004b0-BQ; Mon, 17 Jun 2019 19:30:03 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hcxKJ-0004RH-UT for linux-riscv@lists.infradead.org; Mon, 17 Jun 2019 19:30:01 +0000 Received: by mail-wr1-x435.google.com with SMTP id n4so11232811wrw.13 for ; Mon, 17 Jun 2019 12:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6SeONynbSMb/LpB25tjr9lmR6DQm+1ofOPgJs9DwU6s=; b=KN3JUQFoVuq9g3d+sb2f+QypVLDr1ZifAcfACFXChB6X/9q8jBPhRVDdyiExH1m3mV 4OoN0VKm4Q/3iAeE0umwZfvRBP6JOtgaccSFJy6PXjkL3NYW9kywWAvrdlnw8csAHSDM XsO58I/TyjFdNXZkQyYogh8K3AWIQv8GoCMsT9p4A+0mDVKDoAX3SzG/mivs6LQy02lc kVIsRTxdYdTFHgFtzThiogIeEx2DttZ40TYOCUDkHUs1FP95hAiEfSnGL6P5J6qAe00n 2zQtUDESDqN1ma5jBS+d98sBvFN3jVzNS5e956lpY2eJWb6wzTFgbZ/VIAnRgTLOkNeR neMw== 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=6SeONynbSMb/LpB25tjr9lmR6DQm+1ofOPgJs9DwU6s=; b=k6BVwHYvc/MYHRWif/B6B524U0K+qoNYKdoksyPG5saNJIx3uswMqhpDWiTH2ocgxp CmYPl0KtfBKeT11C3ozh0SGnNkY7X7+Ybec9VlZ9RlYZtO50pv19SvyjW8KUyrOxbRs8 lQfreuO00IdTDwVI8yrgnCpH+bGVFHlAEjmwUUv/VBYReRs8lv5Z0MjdIAwIfJMR+XlJ d7PNvkkuDvApk6pbFVyxUJjCCWdEEgZ+m4BtmCjLP6g+t+qTYYnFWuOW4Cc37X+o8fOp FeYXrPIwf4vO34DKlg2dExCdAsOyFFD0YUsBiz4fpFRvRDzhLC7O0EzruCXCkO8E9Wdo mjwQ== X-Gm-Message-State: APjAAAWEOPrWRiUboScKUuEnpO4C+oMhlkL+h2UvXAbiXHXHcuZTzw+F qUCJ4kcQ/abiPG0kGnLTqhjU5w== X-Google-Smtp-Source: APXvYqxBW7xGdL5vy7Z5G05hC4Mb55jO/UL6X2jStGLj9tRh7aNLnmpN/x7su76+0qlemQjt8f9ntQ== X-Received: by 2002:adf:e705:: with SMTP id c5mr48983855wrm.270.1560799795842; Mon, 17 Jun 2019 12:29:55 -0700 (PDT) Received: from loys-ubuntu-BY1835A49200471.thefacebook.com (cust-west-pareq2-46-193-13-130.wb.wifirst.net. [46.193.13.130]) by smtp.googlemail.com with ESMTPSA id u18sm9412034wrr.11.2019.06.17.12.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jun 2019 12:29:55 -0700 (PDT) From: Loys Ollivier To: Palmer Dabbelt , Paul Walmsley Subject: [PATCH 1/3] arch: riscv: add config option for building SiFive's SoC resource Date: Mon, 17 Jun 2019 21:29:48 +0200 Message-Id: <1560799790-20287-2-git-send-email-lollivier@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560799790-20287-1-git-send-email-lollivier@baylibre.com> References: <1560799790-20287-1-git-send-email-lollivier@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190617_122959_980575_304AF6DA X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Loys Ollivier , linux-kernel@vger.kernel.org, Kevin Hilman MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Create a config option for building SiFive SoC specific resources e.g. SiFive device tree, platform drivers... Signed-off-by: Loys Ollivier Cc: Paul Walmsley Cc: Palmer Dabbelt Reviewed-by: Palmer Dabbelt --- arch/riscv/Kconfig | 2 ++ arch/riscv/Kconfig.socs | 8 ++++++++ arch/riscv/boot/dts/sifive/Makefile | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/Kconfig.socs diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index ee32c66e1af3..eace5857c9e9 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -94,6 +94,8 @@ config PGTABLE_LEVELS default 3 if 64BIT default 2 +source "arch/riscv/Kconfig.socs" + menu "Platform type" choice diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs new file mode 100644 index 000000000000..60dae1b5f276 --- /dev/null +++ b/arch/riscv/Kconfig.socs @@ -0,0 +1,8 @@ +menu "SoC selection" + +config SOC_SIFIVE + bool "SiFive SoCs" + help + This enables support for SiFive SoC platform hardware. + +endmenu diff --git a/arch/riscv/boot/dts/sifive/Makefile b/arch/riscv/boot/dts/sifive/Makefile index baaeef9efdcb..6d6189e6e4af 100644 --- a/arch/riscv/boot/dts/sifive/Makefile +++ b/arch/riscv/boot/dts/sifive/Makefile @@ -1,2 +1,2 @@ # SPDX-License-Identifier: GPL-2.0 -dtb-y += hifive-unleashed-a00.dtb +dtb-$(CONFIG_SOC_SIFIVE) += hifive-unleashed-a00.dtb