From patchwork Thu Jun 2 21:41:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 9151207 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 80B6360467 for ; Thu, 2 Jun 2016 21:43:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74DBE2804C for ; Thu, 2 Jun 2016 21:43:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 69E9C28330; Thu, 2 Jun 2016 21:43:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 2DD872804C for ; Thu, 2 Jun 2016 21:43:56 +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 1b8aO9-0004pK-4X; Thu, 02 Jun 2016 21:42:49 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8aNs-0004dW-Gb for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2016 21:42:33 +0000 Received: by mail-wm0-x22c.google.com with SMTP id a20so83366222wma.1 for ; Thu, 02 Jun 2016 14:42:12 -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=mZDspaTCu5vgF06TjADEfoDEtLctDtXL5I5yU16kk20=; b=EpKwELsMr20/IjHpZMPb0VYcbNSihcMnfc3hmmZGZypta+e2N5+FBekatSsCgZplLd iy/1sajUg2qQzJ+d8OBRQxfsXwF73DPetoNQrayD5bk1YQYQthaoyH+3dnPyvqN5Nq1G Dfplxa9lpp9TDVdYlvDUXiKom98SAlHCIwuhA= 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=mZDspaTCu5vgF06TjADEfoDEtLctDtXL5I5yU16kk20=; b=I9G84MgrMD/jOgbW/k+hFL3q+Xqht1dAp+SaJ6GRppB7oPg42ZXWuzCFqtmb20Ks3a dg4vSEEVzUvgjNhM4mIXvfsoaA05xQILG5Xco2d30kMLcD4m7z839KtEXoCe9RXMwHX4 YmgH6rSpK3HCtDRo0zji2DLoNk2axWcKX9LvLKpz9HNz1cy4LD2eR+U5iuqmoC1siV/h tfqfX1X8Fm7C/4dr4zBp0M8N1IWrPkTXhtNVpJef7LBuON/YgvL1T3kfdvHikTbDK5B5 VWlTVi5Dvvuw4M36924ymfmOjVgntZ8CHiLhR4sK1eVLcdQLkoA7MVsK3ekJhXWoBUNj uXRA== X-Gm-Message-State: ALyK8tJxWZHdvp7oFwzAq8HLS2oLp9XRMeLEpvRkoa7c4DXK1DwA47n6C1TwndP8H4xZPCK9 X-Received: by 10.28.111.215 with SMTP id c84mr691705wmi.95.1464903730867; Thu, 02 Jun 2016 14:42:10 -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 c62sm3173705wmd.1.2016.06.02.14.42.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jun 2016 14:42:10 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, tglx@linutronix.de Subject: [PATCH 6/6] clocksource/drivers/clps_711x: Add the COMPILE_TEST option Date: Thu, 2 Jun 2016 23:41:37 +0200 Message-Id: <1464903697-3802-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464903697-3802-1-git-send-email-daniel.lezcano@linaro.org> References: <1464903697-3802-1-git-send-email-daniel.lezcano@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160602_144232_833273_7A75AF75 X-CRM114-Status: GOOD ( 14.06 ) 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: Russell King , linux-kernel@vger.kernel.org, "moderated list:ARM PORT" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Change the Kconfig option logic to fullfil with the current approach. A new Kconfig option is added, CONFIG_BCM_KONA_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/Kconfig | 2 +- drivers/clocksource/Kconfig | 7 +++++++ drivers/clocksource/Makefile | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index cdfa6c2..0c1f546 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -356,10 +356,10 @@ config ARCH_CLPS711X bool "Cirrus Logic CLPS711x/EP721x/EP731x-based" select ARCH_REQUIRE_GPIOLIB select AUTO_ZRELADDR - select CLKSRC_MMIO select COMMON_CLK select CPU_ARM720T select GENERIC_CLOCKEVENTS + select CLPS711X_TIMER select MFD_SYSCON select SOC_BUS help diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 6714a22..e92a814 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -155,6 +155,13 @@ config CLKSRC_DBX500_PRCMU help Use the always on PRCMU Timer as clocksource +config CLPS711X_TIMER + bool "Cirrus logic timer driver" if COMPILE_TEST + depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO + help + Enables support for the Cirrus Logic PS711 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 662a87c..ae6c09f 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -20,7 +20,7 @@ obj-$(CONFIG_CLKSRC_DBX500_PRCMU) += clksrc-dbx500-prcmu.o obj-$(CONFIG_ARMADA_370_XP_TIMER) += time-armada-370-xp.o obj-$(CONFIG_ORION_TIMER) += time-orion.o obj-$(CONFIG_BCM2835_TIMER) += bcm2835_timer.o -obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o +obj-$(CONFIG_CLPS711X_TIMER) += clps711x-timer.o obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o obj-$(CONFIG_ARCH_MXS) += mxs_timer.o