From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC0E7C282C2 for ; Fri, 25 Jan 2019 13:36:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8BA79218CD for ; Fri, 25 Jan 2019 13:36:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="JUw1h5kE" 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 Content-Transfer-Encoding: 8bit Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org 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 -- 2.20.1