From patchwork Thu Jun 2 21:41:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 9151205 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 E7E5760467 for ; Thu, 2 Jun 2016 21:43:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBAA62804C for ; Thu, 2 Jun 2016 21:43:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D06E928330; Thu, 2 Jun 2016 21:43:51 +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 9565A2804C for ; Thu, 2 Jun 2016 21:43:51 +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 1b8aO0-0004kz-CI; Thu, 02 Jun 2016 21:42:40 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b8aNr-0004dD-22 for linux-arm-kernel@lists.infradead.org; Thu, 02 Jun 2016 21:42:32 +0000 Received: by mail-wm0-x231.google.com with SMTP id z87so85645442wmh.0 for ; Thu, 02 Jun 2016 14:42:10 -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=Ei4EHkaxpBuHye+IZViQz/ZZJ72zaqfOFNzX2zCLJeg=; b=UoQrTX0xB0IS8ttwYq5tMdu1uYLf01seju2XKWFYk1Uhny1UyVQoblr/mwzi8RjvrM SEI1RFB4TSOKwJl+grxBulWjKbtQf3iX9w0XdM7iCpJdq4DKs7Y8wkEfAzyXx6u2AkdE 0pDrZ5lOWmmthupoH4lxxfOCPybuPi3Rm4bQo= 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=Ei4EHkaxpBuHye+IZViQz/ZZJ72zaqfOFNzX2zCLJeg=; b=joFn3NrtX3qvRdHHnOGltaOOINl8nbW7k4huy1cAQCazS3MQIIgO3Ezg+CSQNXRIzK t3yTEKhcbvWT+/+P2NPRDyyTfE6aUehf26ZW9vCLC7ncVRoOeHzHSg2sKdHk8e1DASPc BijJSZxz3y+6UeNUtogeMjWPMpZ+h6w5Os5HkrYDZ/+bh6YnMOqAg5p02qdBLxsQK74i ReSfqnY/EkFx/mGBN9GosQ+LOPZBQFmd36hsRm7C4JgvpStdk/oGln3XwdyfLTFnilIO MIqX8QYE6zF7CHtevBduG8p/mGjpBgFXXCHPwxxxmgg9AtlnfpxXdM76bOCpQ/ovS3TJ wLAw== X-Gm-Message-State: ALyK8tKUcxxC/d90kiYe3LcpaGgzIGrZJSY4Nz7srrkL9m6Qd/jpkcy/FVsio+qesgEtNYyE X-Received: by 10.28.52.75 with SMTP id b72mr714400wma.98.1464903729414; Thu, 02 Jun 2016 14:42:09 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jun 2016 14:42:08 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, tglx@linutronix.de Subject: [PATCH 5/6] clocksource/drivers/bcm_kona: Add the COMPILE_TEST option Date: Thu, 2 Jun 2016 23:41:36 +0200 Message-Id: <1464903697-3802-5-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_144231_445947_B77A7928 X-CRM114-Status: GOOD ( 15.12 ) 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: Florian Fainelli , Russell King , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, "open list:BROADCOM BCM281XX..." , "moderated list:ARM SUB-ARCHITECT..." 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. The timer uses , which is now only for ARM, so this driver will depend on ARM. Signed-off-by: Daniel Lezcano --- arch/arm/mach-bcm/Kconfig | 1 + drivers/clocksource/Kconfig | 7 +++++++ drivers/clocksource/Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig index b7414df..e32ef5b 100644 --- a/arch/arm/mach-bcm/Kconfig +++ b/arch/arm/mach-bcm/Kconfig @@ -89,6 +89,7 @@ config ARCH_BCM_MOBILE select HAVE_ARM_ARCH_TIMER select PINCTRL select ARCH_BCM_MOBILE_SMP if SMP + select BCM_KONA_TIMER help This enables support for systems based on Broadcom mobile SoCs. diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index a1e0cf9..6714a22 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -34,6 +34,13 @@ config BCM2835_TIMER help Enables the support for the BCM2835 timer driver. +config BCM_KONA_TIMER + bool "BCM mobile timer driver" if COMPILE_TEST + depends on GENERIC_CLOCKEVENTS + select CLKSRC_MMIO + help + Enables the support for the BCM Kona mobile timer driver. + config DIGICOLOR_TIMER bool "Digicolor timer driver" if COMPILE_TEST depends on GENERIC_CLOCKEVENTS diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile index 6e278d4..662a87c 100644 --- a/drivers/clocksource/Makefile +++ b/drivers/clocksource/Makefile @@ -33,7 +33,7 @@ obj-$(CONFIG_MESON6_TIMER) += meson6_timer.o obj-$(CONFIG_TEGRA_TIMER) += tegra20_timer.o obj-$(CONFIG_VT8500_TIMER) += vt8500_timer.o obj-$(CONFIG_ARCH_NSPIRE) += zevio-timer.o -obj-$(CONFIG_ARCH_BCM_MOBILE) += bcm_kona_timer.o +obj-$(CONFIG_BCM_KONA_TIMER) += bcm_kona_timer.o obj-$(CONFIG_CADENCE_TTC_TIMER) += cadence_ttc_timer.o obj-$(CONFIG_CLKSRC_EFM32) += time-efm32.o obj-$(CONFIG_CLKSRC_STM32) += timer-stm32.o