From patchwork Fri Jan 25 13:34:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 10781393 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 55A976C2 for ; Fri, 25 Jan 2019 13:36:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F1832EE82 for ; Fri, 25 Jan 2019 13:36:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 300212F6A7; Fri, 25 Jan 2019 13:36:42 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,URIBL_BLACK autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C40D52EE82 for ; Fri, 25 Jan 2019 13:36:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727895AbfAYNgl (ORCPT ); Fri, 25 Jan 2019 08:36:41 -0500 Received: from forward106p.mail.yandex.net ([77.88.28.109]:34961 "EHLO forward106p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727826AbfAYNgl (ORCPT ); Fri, 25 Jan 2019 08:36:41 -0500 Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward106p.mail.yandex.net (Yandex) with ESMTP id 6E0681C816B7; Fri, 25 Jan 2019 16:36:37 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id vq2XS0h3jK-aa6mYUXi; Fri, 25 Jan 2019 16:36:37 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1548423397; bh=2wiqs9zxe3W64theQBSX1Wi8qaLxM4kryOcr6IFsFbg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=JUw1h5kEj/x6scpxFCJc9CLl5sk+tK22pRAtobSNGD6ifjairRQTy+2Ehle9+iAMg P7I5eU2uxOq3BETYB1Y3kDx1QNqqMhBQTj9l0IcUgSPOR1/qwL6Rzru5BEJLXOAEwS R6vbZ4CNUa6AcBj0QWtZYNEigGgv7HeitnwshzwA= Authentication-Results: mxback7g.mail.yandex.net; dkim=pass header.i=@flygoat.com Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id XwuTEG9eza-aVeax7K0; Fri, 25 Jan 2019 16:36:35 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, Jiaxun Yang Subject: [PATCH 1/3] clk: loongson1: add configuration option for loongson1 clks Date: Fri, 25 Jan 2019 21:34:11 +0800 Message-Id: <20190125133413.4130-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190125133413.4130-1-jiaxun.yang@flygoat.com> References: <20190125133413.4130-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch introduces options for loongson1 clocks so we can select the driver we need. Signed-off-by: Jiaxun Yang --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 2 +- drivers/clk/loongson1/Kconfig | 27 +++++++++++++++++++++++++++ drivers/clk/loongson1/Makefile | 7 ++++--- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 drivers/clk/loongson1/Kconfig diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index e5b2fe80eab4..136d3d73c6df 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -298,6 +298,7 @@ source "drivers/clk/imgtec/Kconfig" source "drivers/clk/imx/Kconfig" source "drivers/clk/ingenic/Kconfig" source "drivers/clk/keystone/Kconfig" +source "drivers/clk/loongson1/Kconfig" source "drivers/clk/mediatek/Kconfig" source "drivers/clk/meson/Kconfig" source "drivers/clk/mvebu/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 8a9440a97500..7d29e545caf0 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -76,7 +76,7 @@ obj-y += imx/ obj-y += ingenic/ obj-$(CONFIG_ARCH_K3) += keystone/ obj-$(CONFIG_ARCH_KEYSTONE) += keystone/ -obj-$(CONFIG_MACH_LOONGSON32) += loongson1/ +obj-y += loongson1/ obj-y += mediatek/ obj-$(CONFIG_COMMON_CLK_AMLOGIC) += meson/ obj-$(CONFIG_MACH_PIC32) += microchip/ diff --git a/drivers/clk/loongson1/Kconfig b/drivers/clk/loongson1/Kconfig new file mode 100644 index 000000000000..e2220332d797 --- /dev/null +++ b/drivers/clk/loongson1/Kconfig @@ -0,0 +1,27 @@ +menu "Loongson-1 Clock drivers" + depends on MACH_LOONGSON32 + +config LOONGSON1_CLOCK_COMMON + bool + +config LOONGSON1_CLOCK_LS1B + bool "Loongson 1B driver" + default y + select LOONGSON1_CLOCK_COMMON + help + Support the clocks provided by the clock hardware on Loongson-1B + and compatible SoCs. + + If building for a Loongson-1B SoC, you want to say Y here. + +config LOONGSON1_CLOCK_LS1C + bool "Loongson 1C driver" + default y + select LOONGSON1_CLOCK_COMMON + help + Support the clocks provided by the clock hardware on Loongson-1C + and compatible SoCs. + + If building for a Loongson-1C SoC, you want to say Y here. + +endmenu diff --git a/drivers/clk/loongson1/Makefile b/drivers/clk/loongson1/Makefile index b7f6a16390e0..9240189183ff 100644 --- a/drivers/clk/loongson1/Makefile +++ b/drivers/clk/loongson1/Makefile @@ -1,3 +1,4 @@ -obj-y += clk.o -obj-$(CONFIG_LOONGSON1_LS1B) += clk-loongson1b.o -obj-$(CONFIG_LOONGSON1_LS1C) += clk-loongson1c.o +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_LOONGSON1_CLOCK_COMMON) += clk.o +obj-$(CONFIG_LOONGSON1_CLOCK_LS1B) += clk-loongson1b.o +obj-$(CONFIG_LOONGSON1_CLOCK_LS1C) += clk-loongson1c.o