From patchwork Mon Nov 9 14:36:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 56224 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp215272lbb; Mon, 9 Nov 2015 06:36:55 -0800 (PST) X-Received: by 10.66.90.194 with SMTP id by2mr36386278pab.2.1447079815200; Mon, 09 Nov 2015 06:36:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ya7si22790524pbc.121.2015.11.09.06.36.54; Mon, 09 Nov 2015 06:36:55 -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.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098AbbKIOgr (ORCPT + 28 others); Mon, 9 Nov 2015 09:36:47 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38639 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbbKIOgl (ORCPT ); Mon, 9 Nov 2015 09:36:41 -0500 Received: by wmec201 with SMTP id c201so72652899wme.1 for ; Mon, 09 Nov 2015 06:36:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=h10V4a9/qopKK19RpO2HG16tqpEY5n9QuBpAmflkcpU=; b=aVybVr7wIbQIcP5pHX4G7J31g7B9x+fFNr6zr9AeSMgAiWLDjHUVmYSbwENuBaUz1D 8t0f7+RH+NuNeKKYl5NL4Gc/YA5tQ+4rDNnH25k3EFoV1iO0Y6RfCU1Qx4GefIsm7JmK pZgrqdI7SCnk9JGyJSe9brniHclJD9a4z8+77j8f2L22WhABiq6zc6wOyvaDA6y8DyR3 sLZ7BNsIL7dizHuIPgrHCb62TolDYfIZVLwo0RId+DrVBWJ9aWwNXTBTDdYoC6sLMxwI NtS3xb4suxh5FRIXn2PgF1GlOKAugLOLc46rpVuzcz/mAcfQw3nuyjE07wFxYwAPXPXu f3Cw== 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=h10V4a9/qopKK19RpO2HG16tqpEY5n9QuBpAmflkcpU=; b=NJSd9Bz6BvW9WfCyqXyyo+hgnx02DPtPgYCIDOR4tGl+HbyiG1XDMcYWD4ElBYZRFj svGO0wjXRCPOabas43WBVyNNk7+EB5wNAomR3Hi7pDa53UtKX0HWaEId8UDtQYK/Qk/v T4jgqEdxM+ed/b34GNz0sDZx1oU97IYKqFinZH5Jxk7K1FVClOuqCc9pEFRg2IsJIP5z /p9E2/jCVs/QPHT/kvHO31kktQGffb6G8uaUkHcETGprPXpoW2/RXeRMLOCvlpziI8T6 /Y+0X1ocC3m/Yerg4sY7x/66O3xBzELL3wkI3udvuKRste3jlFYLbUQO2dOAknVPvKje WNLg== X-Gm-Message-State: ALoCoQkecYTR/ZgXjNeDiRgvUejahKVF3UR8Dtb5zShtWus/KqqK+sb9XvuoY1ynWNp0TfC+fjYA X-Received: by 10.194.24.201 with SMTP id w9mr34879164wjf.71.1447079800261; Mon, 09 Nov 2015 06:36:40 -0800 (PST) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id l1sm14629788wmg.21.2015.11.09.06.36.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Nov 2015 06:36:39 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: ysato@users.sourceforge.jp, tglx@linutronix.de, linux-kernel@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp (moderated list:H8/300 ARCHITECTURE) Subject: [PATCH 2/3] clocksource/drivers/h8300_timer8: Separate the Kconfig option from the arch Date: Mon, 9 Nov 2015 15:36:16 +0100 Message-Id: <1447079782-26027-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1447079782-26027-1-git-send-email-daniel.lezcano@linaro.org> References: <1447079782-26027-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 db58916..7a17112 100644 --- a/arch/h8300/Kconfig +++ b/arch/h8300/Kconfig @@ -16,6 +16,7 @@ config H8300 select OF_EARLY_FLATTREE select HAVE_MEMBLOCK select HAVE_DMA_ATTRS + select H8300_TMR8 config RWSEM_GENERIC_SPINLOCK def_bool y diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index aaad6ff..2f20460 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -344,6 +344,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 fc9348d..83063e8 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -59,7 +59,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