From patchwork Tue Jun 28 10:51: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: 71054 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1516591qgy; Tue, 28 Jun 2016 03:53:43 -0700 (PDT) X-Received: by 10.98.152.76 with SMTP id q73mr687358pfd.38.1467111223407; Tue, 28 Jun 2016 03:53:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si12251953paz.211.2016.06.28.03.53.43; Tue, 28 Jun 2016 03:53:43 -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 S932338AbcF1Kx0 (ORCPT + 30 others); Tue, 28 Jun 2016 06:53:26 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:37231 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752710AbcF1KxO (ORCPT ); Tue, 28 Jun 2016 06:53:14 -0400 Received: by mail-wm0-f52.google.com with SMTP id a66so21664684wme.0 for ; Tue, 28 Jun 2016 03:52:30 -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=0xpUbLHjAHJRUUJDtKedIM0UY2ddN7Il8n0C4QmzuCY=; b=SewFhXPDm3zgnTL8IbHmCKcfv0zS/hc4lEWZ77bLqv3JdwrJVTO6K+Hksz9F/Kh1qV YCzElvMjOUko71wB6fwGU26tTab/a350xYZxv7/GCYWYUUgsHPoyoVBx5OIaS5MXgiA8 4vB2lITuPzXEVYOW8yteJHooarwYSf+Q1Npm0= 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=0xpUbLHjAHJRUUJDtKedIM0UY2ddN7Il8n0C4QmzuCY=; b=BruFWeGTQexJXfKWwYZi8/Cvq0ww7KvPMuoPgd06NmkBw83nNLtf1Nrlg7Xq/fZSlp ihfnSWDPOXclDTa4cpiXGmNffsmrzqu9lTPze0y5lMSCG3BkHudjTQE7/yApK0F9gu75 sw2uPDNTG0dSj3HWxncjOcqzgqtbSw5898vSIozmBCQf4A7/mvPmkDDXOgNhkPKScIm8 V8o8V2T9egsb7REvuBoeSqa4zUojr1uKKSyqKPebVcdHe03Hrp5JEHeMcn1BUMiSFvzR 4fw5qMj4cjygyfuN8AM+7wX+L3lHnirEQ6ycvMEgCNXPtucVkPmCQaQz+91Sv2b5aV72 hqnw== X-Gm-Message-State: ALyK8tJ9oc7P+GTfs29V2SAbzD1Z6ONFt2USE770YJt8dM1IjPEO1xBKLIafZ6MW/D8L6dAH X-Received: by 10.28.63.136 with SMTP id m130mr15106344wma.33.1467111149692; Tue, 28 Jun 2016 03:52:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 03:52:29 -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 79/92] clocksource/drivers/atlas7: Add the COMPILE_TEST option Date: Tue, 28 Jun 2016 12:51:37 +0200 Message-Id: <1467111111-12587-4-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_ATLAS7_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 0cf4426..2db8d24 100644 --- a/arch/arm/mach-prima2/Kconfig +++ b/arch/arm/mach-prima2/Kconfig @@ -28,6 +28,7 @@ config ARCH_ATLAS7 default y select ARM_GIC select CPU_V7 + select ATLAS7_TIMER select HAVE_ARM_SCU if SMP select HAVE_SMP help diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index f41eef2..669dd3c 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -162,6 +162,13 @@ config CLPS711X_TIMER help Enables support for the Cirrus Logic PS711 timer. +config ATLAS7_TIMER + bool "Atlas7 timer driver" if COMPILE_TEST + depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO + help + Enables support for the Atlas7 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 25e599c..7abf144 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -21,7 +21,7 @@ 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_CLPS711X_TIMER) += clps711x-timer.o -obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o +obj-$(CONFIG_ATLAS7_TIMER) += timer-atlas7.o obj-$(CONFIG_ARCH_MOXART) += moxart_timer.o obj-$(CONFIG_ARCH_MXS) += mxs_timer.o obj-$(CONFIG_CLKSRC_PXA) += pxa_timer.o