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: 69204 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp327050qgf; Thu, 2 Jun 2016 14:42:39 -0700 (PDT) X-Received: by 10.98.96.194 with SMTP id u185mr662738pfb.13.1464903759482; Thu, 02 Jun 2016 14:42:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si960510paz.202.2016.06.02.14.42.39; Thu, 02 Jun 2016 14:42:39 -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 S933159AbcFBVmg (ORCPT + 31 others); Thu, 2 Jun 2016 17:42:36 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38573 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932645AbcFBVmK (ORCPT ); Thu, 2 Jun 2016 17:42:10 -0400 Received: by mail-wm0-f45.google.com with SMTP id a20so83365593wma.1 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=FFNshftwqQ8D0rraAj1EnK/x1/MQp26evtvBfYKfyWkdLQtSHsEWKQm99iJ52b6a/O IZ9yGt7tzNvYanNzi0aEid39qtpdzVL8yei8gCWOOyTjGtG9HeoyFP5zcl2q+EkVO08/ 8N+MAkjivAwtj0ErkiD+klF1Oq8u/1ldAph4tkc8KdTUlB4Gny10/PS34q8uetYSBllQ rbQ/a5noIQIgnA/8CfGEK5HK8/QXboD6+sO9OOrd4uMmhrKfsXw3CADgbp0ipZWPQofO o8g8rnzl7rvoz2f4qu3ETqzUn4cCYtWovoj+wGSlg0S1SGkwvEUq4Gc8fGOC6sBBsn0F uqqw== X-Gm-Message-State: ALyK8tJuRQQYzziSqBfQ/B091XOK1znzSWVy910CwLHWAI1mhhIhKtIhOxuMyEFig0e97N+D 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 Cc: linux-kernel@vger.kernel.org, Florian Fainelli , Ray Jui , Scott Branden , Russell King , linux-arm-kernel@lists.infradead.org (moderated list:ARM SUB-ARCHITECT...), bcm-kernel-feedback-list@broadcom.com (open list:BROADCOM BCM281XX...) 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> 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_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(-) -- 1.9.1 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