From patchwork Fri Dec 18 14:18:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7885931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7BA6D9F1AF for ; Fri, 18 Dec 2015 14:50:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9D2E2201F2 for ; Fri, 18 Dec 2015 14:50:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C7DD820160 for ; Fri, 18 Dec 2015 14:50:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9wLF-0004Os-Ab; Fri, 18 Dec 2015 14:49:09 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9vsy-0007aa-Up for linux-arm-kernel@lists.infradead.org; Fri, 18 Dec 2015 14:19:58 +0000 Received: by mail-wm0-x234.google.com with SMTP id p187so65522511wmp.1 for ; Fri, 18 Dec 2015 06:19:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gfwq1/iLXmLhNQc4PWAykVMxayRC/DRBf9khpS4pl18=; b=DQZSJem9ysoCPAtfn8Y440tDQmBQYhlUwthQI8ibnPzh9Rt0ELm7zvKGZhYz/fdP7P LTJfBuTl20Du6uhfnTFFRPTS95LkvMmxtir3QzJA+65MgNAyMezkSrmBfGpnaoueM2H2 AOOkwylY1MNBAdOFv0nv4Yc4ZDRPJXA0RIQII= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gfwq1/iLXmLhNQc4PWAykVMxayRC/DRBf9khpS4pl18=; b=MHjl0zS/2kNxDdd62K0CqqDT07gHmWgIhgxctaC2wiFG5zO0gR3r3Ghu7ZSz9liU6/ KgDKDF8TpgGADSwUsdf8PtYnX3LInHsLutPsFt8vmRZKMIIEbA4kF2jux5vWWjZ5wpSc v8CRgH47u5ATPQmP4KUoMV7KLh8kJXL8j5tbaYumuKvMjOjNJtNr+ru0smC6MD8GSlhq P/wRyqH9ffyuLU3qp9l62tbrLviLDWvyPXGJsPCGFBy4jHYQ5a2bkDla3yDVw36rTj6x hRfwVHD1PnCgybbtNa0ASBm9uNtym1mnK3iNi+uq26GlIIIjQQ9AxkRtzroGS7rlFvKb Y9Dg== X-Gm-Message-State: ALoCoQnWczjipgH92CPyjw8Aj2LTl67312TWccyT7DbqKlOS6FR3WaJHQSOZ0pXDfrhTkeOSjtLTDZ4dQbdR6E4jFr6+krWPJQ== X-Received: by 10.28.131.80 with SMTP id f77mr3746444wmd.0.1450448378493; Fri, 18 Dec 2015 06:19:38 -0800 (PST) Received: from localhost.localdomain ([78.210.255.2]) by smtp.gmail.com with ESMTPSA id ql10sm15010027wjc.23.2015.12.18.06.19.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 06:19:37 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Subject: [PATCH 54/69] clocksource/drivers/h8300_timer8: Separate the Kconfig option from the arch Date: Fri, 18 Dec 2015 15:18:07 +0100 Message-Id: <1450448302-27429-54-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> References: <5672CB9E.7090707@linaro.org> <1450448302-27429-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151218_061957_218125_3A3A5E1C X-CRM114-Status: GOOD ( 13.69 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "moderated list:H8/300 ARCHITECTURE" , Yoshinori Sato , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The current Kconfig option is the H8300 arch option. In order to comply to the current rule, let's create a specific option for the timer8 and select it from the arch's Kconfig. Signed-off-by: Daniel Lezcano --- arch/h8300/Kconfig | 1 + drivers/clocksource/Kconfig | 3 +++ drivers/clocksource/Makefile | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/h8300/Kconfig b/arch/h8300/Kconfig index dd3ac75..2e20333 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig @@ -17,6 +17,7 @@ config H8300 select HAVE_MEMBLOCK select HAVE_DMA_ATTRS select CLKSRC_OF + select H8300_TMR8 config RWSEM_GENERIC_SPINLOCK def_bool y diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index de331b8..73477b5 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -362,6 +362,9 @@ config CLKSRC_PXA This enables OST0 support available on PXA and SA-11x0 platforms. +config H8300_TMR8 + bool + config H8300_TMR16 bool diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 56bd16e..dc2b899 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -60,7 +60,7 @@ obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o obj-$(CONFIG_CLKSRC_TANGO_XTAL) += tango_xtal.o obj-$(CONFIG_CLKSRC_IMX_GPT) += timer-imx-gpt.o obj-$(CONFIG_ASM9260_TIMER) += asm9260_timer.o -obj-$(CONFIG_H8300) += h8300_timer8.o +obj-$(CONFIG_H8300_TMR8) += h8300_timer8.o obj-$(CONFIG_H8300_TMR16) += h8300_timer16.o obj-$(CONFIG_H8300_TPU) += h8300_tpu.o obj-$(CONFIG_CLKSRC_ST_LPC) += clksrc_st_lpc.o