From patchwork Tue Jun 28 10:51:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 71058 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1516860qgy; Tue, 28 Jun 2016 03:54:35 -0700 (PDT) X-Received: by 10.98.21.4 with SMTP id 4mr691424pfv.92.1467111275700; Tue, 28 Jun 2016 03:54:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tp2si24926752pab.52.2016.06.28.03.54.35; Tue, 28 Jun 2016 03:54:35 -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 S1753067AbcF1Kyb (ORCPT + 30 others); Tue, 28 Jun 2016 06:54:31 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37919 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbcF1KxO (ORCPT ); Tue, 28 Jun 2016 06:53:14 -0400 Received: by mail-wm0-f54.google.com with SMTP id r201so21631126wme.1 for ; Tue, 28 Jun 2016 03:52:51 -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=h76qYD/NoSUQu8HdsQCeDfLzmyeAzBPh4c/lHswAFOA=; b=bAWG036OfsJ9YkjiiLzP8rI/MuUAgqg1lOd8ML/uy1C+i0woP/OcNSIE8wTwtxDHtf vjg9Jt6wZqgN7NJSr9pMeUhgLBDz1sf/RJp05uUUF3NijPJ16i2PKyRLwyCUef521ScC tttqMmsRf12DoK7qXB9sn7LmGKhipzZO1ex8o= 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=h76qYD/NoSUQu8HdsQCeDfLzmyeAzBPh4c/lHswAFOA=; b=YSiNNUS4wYzY/cDX7VfSMLBG524ITfG9eex+3e20foYlr/wyXH0Ed6i+P8L+8yDaDo PzkTHjL02AiaF5catThtaTpwQMN0pgQiXI50aAHDHoqxz3YLQ3av+7VM4Fk1KYAizyw8 HK5fPJ1Pmz377Pk0odOczGfln060q4s7pmbcAAP0Dj+vBQ8KiwIkn/rRcr2F7vM6n0UD tCAmXRpovnFCHdIAiAbvg8pHztfqChcamKXEnA69E/pIXPfwmeiAYzKxR1dOOzoMPYjl MmKaGjswhYF5cX6EcVJpQB3ldkApS53feVRUldC8f0CBDmXLd/iKrGZktHS8v/sN+14e GY2A== X-Gm-Message-State: ALyK8tKKLMLcZQv3j9zhdgws8YFzcT3QX05nGeNstoFDHSvhv1Bc21CoWn4JBcqd++haljYE X-Received: by 10.194.88.106 with SMTP id bf10mr2713270wjb.37.1467111171001; Tue, 28 Jun 2016 03:52:51 -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.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 03:52:49 -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 88/92] clocksource/drivers/integrator-ap: Add the COMPILE_TEST option Date: Tue, 28 Jun 2016 12:51:46 +0200 Message-Id: <1467111111-12587-13-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_INTEGRATOR_AP_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-integrator/Kconfig | 2 +- drivers/clocksource/Kconfig | 7 +++++++ drivers/clocksource/Makefile | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) -- 1.9.1 diff --git a/arch/arm/mach-integrator/Kconfig b/arch/arm/mach-integrator/Kconfig index b2a85ba..291262e 100644 --- a/arch/arm/mach-integrator/Kconfig +++ b/arch/arm/mach-integrator/Kconfig @@ -20,7 +20,7 @@ if ARCH_INTEGRATOR config ARCH_INTEGRATOR_AP bool "Support Integrator/AP and Integrator/PP2 platforms" - select CLKSRC_MMIO + select INTEGRATOR_AP_TIMER select MIGHT_HAVE_PCI select SERIAL_AMBA_PL010 if TTY select SERIAL_AMBA_PL010_CONSOLE if TTY diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 7e5709a..8055b37 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -214,6 +214,13 @@ config KEYSTONE_TIMER help Enables support for the Keystone timer. +config INTEGRATOR_AP_TIMER + bool "Integrator-ap timer driver" if COMPILE_TEST + depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO + help + Enables support for the Integrator-ap 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 a818431..fd9d6df 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -57,7 +57,7 @@ obj-$(CONFIG_ARM_TIMER_SP804) += timer-sp804.o obj-$(CONFIG_CLKSRC_METAG_GENERIC) += metag_generic.o obj-$(CONFIG_ARCH_HAS_TICK_BROADCAST) += dummy_timer.o obj-$(CONFIG_KEYSTONE_TIMER) += timer-keystone.o -obj-$(CONFIG_ARCH_INTEGRATOR_AP) += timer-integrator-ap.o +obj-$(CONFIG_INTEGRATOR_AP_TIMER) += timer-integrator-ap.o obj-$(CONFIG_CLKSRC_VERSATILE) += versatile.o obj-$(CONFIG_CLKSRC_MIPS_GIC) += mips-gic-timer.o obj-$(CONFIG_CLKSRC_TANGO_XTAL) += tango_xtal.o