Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp342990ybi; Wed, 19 Jun 2019 00:04:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXAjkPWUeX2T/ixsIT7LwHR1SbFv24d8YCZWz6olAlhR65rvZoIPlTE1bhHDFff1tgTGWf X-Received: by 2002:a17:902:e512:: with SMTP id ck18mr11503566plb.53.1560927877319; Wed, 19 Jun 2019 00:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560927877; cv=none; d=google.com; s=arc-20160816; b=PMfPkUavP4+xqUvzMdH0U4a4vh0mARLlMLkiV/O1XWiQk3jKtPuq9BthuTKoAvvtDM niyXgaMwSFLRsQ9unStysifvx7r8R5Yz2np5tWtSs/5Ch0x2vSwUNoChrKankNZKkSGQ Skzhcla9YP5YbCdOhkp7OjWPhnRtLo/000SC4g9kMjJWznOWC28cTW7lW/6EWPCRURbW py0rwKXZp1rnfPAWok4+OcNmu2isCb0cC4Nyj+R5H83CFUTNLuF9xUmMTqq8Or1a0xE1 2TlURd0ZuyDCM9EGg7dS7zojHPAjmHu8Hr7NS/Yo8RVah4U/GsaoY4nhui/6vu2pgjLb JCeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date; bh=PbYeBHsXCZa7rfwxfeGbM1ofQD9jWLYTMyvYxIoxevc=; b=HvmLJ599eCjv4X+sgvuKcARhjbYuZDD5Nw8DQ3kzopmD6avUxsWE64hvkokRlAqN3Z 3QONoi/V4EndQ59mfXwSdGxgASPl0JxWwJqj5pr3MSjfWYfegDKrXMx9vBICa1NDEQpV hbbEefE/E7hxF2MDyo0GHPQK2irFwB07ZppMmaS5VfB7zzKxJU1wPVe83Qvsg7hZH6rU JnUrWYpIh7u+Dz9WYWFxf65+9JNZ4IG2ML+cJjNWlZw+GfJ5a3pET3KEhwjEQ1X1ansH 1Jh8AjRwWEwKIjVR0/TxLmUWIiqHCle5SxXkq4a9Dw94/VkkWYIgl/I/+fQCztewOI1n Fc+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si10316348pfh.178.2019.06.19.00.04.19; Wed, 19 Jun 2019 00:04:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730888AbfFSHEO (ORCPT + 99 others); Wed, 19 Jun 2019 03:04:14 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35865 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfFSHEO (ORCPT ); Wed, 19 Jun 2019 03:04:14 -0400 Received: by mail-pl1-f193.google.com with SMTP id k8so5830939plt.3 for ; Wed, 19 Jun 2019 00:04:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=PbYeBHsXCZa7rfwxfeGbM1ofQD9jWLYTMyvYxIoxevc=; b=BnMNQePr/8yEyzHTBQAmJ9s0/gRcn3FC/O4ENXxegwR4Hoq/IPpgFltyRssxUN3f+q 5pfs7dTr21XYO97AuXr6szopCMNvIdOWxY8xOb9ZTL57BSOhS0qyV8b8pKk1e9jejAq5 9/4g0lUrBA/GCVZdbYs/fXw7Ckf/FwLLPEd9HD0UUhT3nL8LI5x/5S8WIauzXF2Aqffy j/Nn+4ejyWgGO4uHlf2DFeWY10euHCUgj43Z8xTgI9JJtQgxeWZl6KpBaaIcYsr+LJxH RDB/rHKxpufd/OoMDAUC5gDxXvd9Ih8ZXuQolpJCcii6ZroOH1EpDI4DMcvtiR2NQAUI j83w== X-Gm-Message-State: APjAAAUdtMq36aU7aCQwolL2qQbaY0mRvaO0mf7K9IbvpAA6iwpHp9hB Vgzzgg4ewPez8UiJANCsrxODAmUsMnwYAnsC X-Received: by 2002:a17:902:848b:: with SMTP id c11mr95273759plo.217.1560927853629; Wed, 19 Jun 2019 00:04:13 -0700 (PDT) Received: from localhost (amx-tls3.starhub.net.sg. [203.116.164.13]) by smtp.gmail.com with ESMTPSA id 125sm16255713pfg.99.2019.06.19.00.04.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 00:04:12 -0700 (PDT) Date: Wed, 19 Jun 2019 00:04:12 -0700 (PDT) X-Google-Original-Date: Wed, 19 Jun 2019 00:02:47 PDT (-0700) Subject: Re: [PATCH 1/3] arch: riscv: add config option for building SiFive's SoC resource In-Reply-To: <1560799790-20287-2-git-send-email-lollivier@baylibre.com> CC: Paul Walmsley , lollivier@baylibre.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, khilman@baylibre.com From: Palmer Dabbelt To: lollivier@baylibre.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Jun 2019 12:29:48 PDT (-0700), lollivier@baylibre.com wrote: > 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 > --- > 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 Reviewed-by: Palmer Dabbelt