From patchwork Mon May 13 20:07:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 10941717 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 35F4676 for ; Mon, 13 May 2019 20:08:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 240122842B for ; Mon, 13 May 2019 20:08:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17D0E28434; Mon, 13 May 2019 20:08:19 +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 B4AA22842B for ; Mon, 13 May 2019 20:08:18 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=mf4x4McP0T4i9UeJSKRGsVk4opknRhHnQK/Qto8DuOI=; b=U33DxckFtfcfSh W8eCvx736hVkqqyjhMC5QbrIGzrGWTtT+M98xP2VM4/3QU+xFdSFjiUazR9MO6LuuwpwgNhMZclHT f5Pxg2bEAl5Sp5+if2LWut7aegCo1KyHeJn8IBhbPgwnKmsSt2tV4AdoCvOekhrS7S32cMHQpjDmc cQKSOPsXz4M4hEpql/6l/Ig/eY36Tsplouzi3y7l9gGfqHY6tm2HgBI6kHGNIKF2Ir9T77RpjnIM9 qnzavs4kmodBH1AW9TA3YYXohsFDpAjYcevMSTp1FEFYhv0DEXQMYzhZl+4iqu0xtsoDbTR85o9R8 5rbJmsiebwR465fWC0Ug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQHF8-0003Bp-CL; Mon, 13 May 2019 20:08:14 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hQHF4-0003BB-H4 for linux-riscv@lists.infradead.org; Mon, 13 May 2019 20:08:12 +0000 Received: by mail-io1-xd43.google.com with SMTP id b3so11096572iob.12 for ; Mon, 13 May 2019 13:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tVpxrVqtZ6so56rmoXRO/UqKolhNWwjERgPc3LzGFN8=; b=hSXxafaV5iTjOToTOFm4RvKmXIJLq851eKZ0B8cA9rjCzP2lEK7Ikybh/EnCwRncxd y4SFaafG08JvytYn5XC+jiHhPG2URqrcilytocl+eOTZmHcYxn9/IEgq25FW5lz79n2q 4qVl9TtNf80RAVLRrsPKKLHLkPn9xNZbZcwAFgA5GEHrCVMJyk3INBoBbmfModA0ugMO 9HM1hRCR5mxxaKFmCVTokyVPhdzIJq1ZrhfwoCNM9EKO/hi5s5aICg+1FEvj8l6JXuun NpvSgJdDZovD7yJfYykntLRjnfcJjEIvFXOwfDFbTQKdEFxz7RRnvi3+FTWXNPBIpVsa 1sBw== 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:mime-version :content-transfer-encoding; bh=tVpxrVqtZ6so56rmoXRO/UqKolhNWwjERgPc3LzGFN8=; b=WAB4IkrbsMInaPlHkQRMhdV7AoV52x9evJl18OWpwCWwcfuG/92dzhEHsApgrgxRq5 duAZT2xep1BBJBJ6g35qr3SYneLNmNx90b3QKmVNkx5+b6p60nzWjh0amlzmurWN6HjZ RiqRrdnwUwXxfY5eETfE2nBybLZ+ObiR0f3YYE6pp0DCatUCpx1bYpdsiw/WQkJjzhKw yDx9N2iz1SD8xJQDLEic7g/aRkHheIZGBnzzdh9EQIa27/HU1w1EKPwmvUGQ5W724YEZ G325UrIjuW1ODmWVW5boC0/qHlrUs1QsXkBQuECgjJJ+RMjgyfjCj5+fbucyF4GfnHW9 Ailg== X-Gm-Message-State: APjAAAXwbNSYf8qtlT6Vrb7CfzvKr2X32dPVJtnjVIBf+M9bMU54RGi0 r72aJWjVlyucdaHoH2HJP2Iczn5/DVg= X-Google-Smtp-Source: APXvYqyw8zFE1ynOjqj9m0tDEwjIwV/Nsk7yMgV7lkFPmgfuZg00tc/M+Qp16udiiomTmHQFlr0Prw== X-Received: by 2002:a5d:9e01:: with SMTP id h1mr2997330ioh.57.1557778088886; Mon, 13 May 2019 13:08:08 -0700 (PDT) Received: from viisi.lan (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id h21sm242468ith.8.2019.05.13.13.08.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 13:08:08 -0700 (PDT) From: Paul Walmsley To: sboyd@kernel.org, mturquette@baylibre.com, pavel@ucw.cz Subject: [PATCH] clk: sifive: restrict Kconfig scope for the FU540 PRCI driver Date: Mon, 13 May 2019 13:07:58 -0700 Message-Id: <20190513200758.15241-1-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190513_130810_628984_88565454 X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-riscv@lists.infradead.org, Paul Walmsley , Paul Walmsley , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+patchwork-linux-riscv=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Restrict Kconfig scope for SiFive clock and reset IP block drivers such that they won't appear on most configurations that are unlikely to support them. This is based on a suggestion from Pavel Machek . Ideally this should be dependent on CONFIG_ARCH_SIFIVE, but since that Kconfig directive does not yet exist, add dependencies on RISCV or COMPILE_TEST for now. Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley Cc: Michael Turquette Cc: Stephen Boyd Cc: Pavel Machek --- drivers/clk/sifive/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/sifive/Kconfig b/drivers/clk/sifive/Kconfig index 8db4a3eb4782..27a8fe531357 100644 --- a/drivers/clk/sifive/Kconfig +++ b/drivers/clk/sifive/Kconfig @@ -2,6 +2,7 @@ menuconfig CLK_SIFIVE bool "SiFive SoC driver support" + depends on RISCV || COMPILE_TEST help SoC drivers for SiFive Linux-capable SoCs. @@ -10,6 +11,7 @@ if CLK_SIFIVE config CLK_SIFIVE_FU540_PRCI bool "PRCI driver for SiFive FU540 SoCs" select CLK_ANALOGBITS_WRPLL_CLN28HPC + depends on RISCV || COMPILE_TEST help Supports the Power Reset Clock interface (PRCI) IP block found in FU540 SoCs. If this kernel is meant to run on a SiFive FU540 SoC,