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: 58696 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp1060339lbb; Fri, 18 Dec 2015 06:26:34 -0800 (PST) X-Received: by 10.66.219.163 with SMTP id pp3mr5417220pac.55.1450448794094; Fri, 18 Dec 2015 06:26:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wf3si24274908pac.218.2015.12.18.06.26.33; Fri, 18 Dec 2015 06:26:34 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932922AbbLRO02 (ORCPT + 29 others); Fri, 18 Dec 2015 09:26:28 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:34484 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964818AbbLROTj (ORCPT ); Fri, 18 Dec 2015 09:19:39 -0500 Received: by mail-wm0-f45.google.com with SMTP id l126so67525076wml.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=f1A6GuhwSIx/VmZNkYA97sFLiLuwyfOyFUAcsvE/7e016SCv9xVq9qepDziTzi+HQh im3qSuvUpZ+pyIxHV/gplI2pXuEJFrIKFfcM6YTwIs1v1FIk6Tg8T8VNOG4Q3PtCdFuk GNyjdQw+Xm1nbVaTpJFotgsT7zKxvF4fn28xWMSUqIhzenLfDma9RSP8dl7zl+1c5Gnx 0bnmm749SoIsR6Nm9fbplGo6fGd1eyzFOH1JDvPw1lElrlOM0Ok9LPIfU8/RgQoOEZz6 ICFNX7Xi7Zd5wqVG9/fcFytbz9r8Vqz+ycdpDV4E+CTCGDmp9/odBtfE6ygQ8IlKkmoc al2w== X-Gm-Message-State: ALoCoQlRYvpMUEI4rpZq5fRA77slQOQFN/qiaHhjd/tWgr3iPPEHLM66kx9nD6FPFnKQyitgfcH7aA/x/fnZKZjvSzHbT5sbzQ== 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 Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mingo@kernel.org, Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp (moderated list:H8/300 ARCHITECTURE) 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ 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