From patchwork Tue Jun 28 10:51:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 71068 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1517766qgy; Tue, 28 Jun 2016 03:57:13 -0700 (PDT) X-Received: by 10.98.83.68 with SMTP id h65mr645236pfb.112.1467111432904; Tue, 28 Jun 2016 03:57:12 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si33189114pfe.203.2016.06.28.03.57.12; Tue, 28 Jun 2016 03:57:12 -0700 (PDT) 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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932196AbcF1K4e (ORCPT + 30 others); Tue, 28 Jun 2016 06:56:34 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:38795 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752819AbcF1KxO (ORCPT ); Tue, 28 Jun 2016 06:53:14 -0400 Received: by mail-wm0-f41.google.com with SMTP id r201so21624533wme.1 for ; Tue, 28 Jun 2016 03:52:41 -0700 (PDT) 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=DskxrNnqAq4ck/XEF4YYYNlxBqrlh4Cs1rrc73YaOwY=; b=Hi2f8ZnB9Aq/EusTfGBYZaV0YJ3XFB/dG/TIuzZhScIpTII/ISUEO1LjTEHDWTgiWp o39KiGe0z3rpttDMubWwwsmMsxJGoTbOORhC4SXec7r1l2TdXs4EPTB7G77I2LxD6z9s crEf/8eayNtwlzFirrXjuT3EPKr2HTWRk0R2k= 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=DskxrNnqAq4ck/XEF4YYYNlxBqrlh4Cs1rrc73YaOwY=; b=IouPpDxueQ2b/O/BmwT3RcP7mVBZu6HlpEXlaGyh1ZcYyk3NYYZVRYhXm6kImjpMig R7pA/Lzxg8LbmFtgIKZ15piImdSeoakj71V2sdXK0P3BWDHXb5K3hhR2H+EMw0wdgw2F S+lEGDwP7QT2EM+UpfQb8KoEYU2033axUZh4nYNV3JXaExcu5LG9dBl3rHPVPHkW3JX1 gkHv9NtL6Y1tq3bY+GTT4Cg2e/9W8sasCjtXYIFRbSIV6oxccI4t6dBzOq8pswZtCSGp cvZ4Ndg2Kbli3j/xV3mqfCiMc9LReVmIyMcdUnGvrO49GOFRFRmNgNT+S+tojTMLHWdz IH8w== X-Gm-Message-State: ALyK8tL8fpt3u16OkEDE4p0lcB/LFwlXcVDb1w7+o0RGpU46PwaKbsp1vYE37wVQZMu8ME0f X-Received: by 10.194.175.231 with SMTP id cd7mr2409722wjc.19.1467111160462; Tue, 28 Jun 2016 03:52:40 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id x194sm1577615wmf.13.2016.06.28.03.52.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 03:52:39 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 84/92] clocksource/drivers/prima2: Add the COMPILE_TEST option Date: Tue, 28 Jun 2016 12:51:42 +0200 Message-Id: <1467111111-12587-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1467111111-12587-1-git-send-email-daniel.lezcano@linaro.org> References: <577251A4.7030508@linaro.org> <1467111111-12587-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 Change the Kconfig option logic to fullfil with the current approach. A new Kconfig option is added, CONFIG_PRIMA2_TIMER and is selected by the platform. Then the clocksource's Kconfig is changed to make this option selectable by the user if the COMPILE_TEST option is set. Otherwise, it is up to the platform's Kconfig to select the timer. Signed-off-by: Daniel Lezcano --- arch/arm/mach-prima2/Kconfig | 1 + drivers/clocksource/Kconfig | 7 +++++++ drivers/clocksource/Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) -- 1.9.1 diff --git a/arch/arm/mach-prima2/Kconfig b/arch/arm/mach-prima2/Kconfig index 2db8d24..9e938f2 100644 --- a/arch/arm/mach-prima2/Kconfig +++ b/arch/arm/mach-prima2/Kconfig @@ -39,6 +39,7 @@ config ARCH_PRIMA2 default y select SIRF_IRQ select ZONE_DMA + select PRIMA2_TIMER help Support for CSR SiRFSoC ARM Cortex A9 Platform diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 5d70cdf..c350fbd 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -184,6 +184,13 @@ config MXS_TIMER help Enables support for the Mxs timer. +config PRIMA2_TIMER + bool "Prima2 timer driver" if COMPILE_TEST + depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO + help + Enables support for the Prima2 timer. + config CLKSRC_DBX500_PRCMU_SCHED_CLOCK bool "Clocksource PRCMU Timer sched_clock" depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 1360bba..b419d5d 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -25,7 +25,7 @@ obj-$(CONFIG_ATLAS7_TIMER) += timer-atlas7.o obj-$(CONFIG_MOXART_TIMER) += moxart_timer.o obj-$(CONFIG_MXS_TIMER) += mxs_timer.o obj-$(CONFIG_CLKSRC_PXA) += pxa_timer.o -obj-$(CONFIG_ARCH_PRIMA2) += timer-prima2.o +obj-$(CONFIG_PRIMA2_TIMER) += timer-prima2.o obj-$(CONFIG_ARCH_U300) += timer-u300.o obj-$(CONFIG_SUN4I_TIMER) += sun4i_timer.o obj-$(CONFIG_SUN5I_HSTIMER) += timer-sun5i.o