From patchwork Tue Jun 28 10:51:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 71052 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1516485qgy; Tue, 28 Jun 2016 03:53:22 -0700 (PDT) X-Received: by 10.66.160.199 with SMTP id xm7mr678820pab.78.1467111202310; Tue, 28 Jun 2016 03:53:22 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id aj2si8430692pad.150.2016.06.28.03.53.22; Tue, 28 Jun 2016 03:53:22 -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 S932303AbcF1KxT (ORCPT + 30 others); Tue, 28 Jun 2016 06:53:19 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:35255 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbcF1KxO (ORCPT ); Tue, 28 Jun 2016 06:53:14 -0400 Received: by mail-wm0-f48.google.com with SMTP id v199so134247699wmv.0 for ; Tue, 28 Jun 2016 03:52:27 -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=coQXWIe/qTwNgCk/8lGjAmKN8o6BgZ5dYV9aeCSzgi8=; b=dhFYCqlEXHJzEsw/McK5gxfY7P3Ka5oUL1u89exh+92BsOFZ20JoimpbUEUJuOTka0 QHTF1U7inKB4l1BW2GmVwMMUDfq0MCgY7YQRJrFGUTIOx2NFNBhePHXk4rVdI2mO/Ry5 W28T6TbouNB0isGQX4At9xaWG7hWiqNBgGo9I= 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=coQXWIe/qTwNgCk/8lGjAmKN8o6BgZ5dYV9aeCSzgi8=; b=SWgwNSGE8UzlhDX2o4kx3953JYFQor2ZxVLIoOghVrSLxpr/6Ze6VDiUkfg/Dkrmbo XQrOPZYEuROPXDFH8DsZAOmQWc9RHIhDkre0LdJYwEjqwGuHSbFpeEhrItoU74n7MYrF HoANHkEpltEinCIbJY928QJ7RoRprDKYpRNVS7A5lEir0/UKLCPiaO+ndPNq0HNJVyXu iq3cvA/K5Wf9g/ut952lj0RLh/TOFwv0t1bTL5LNjocnYsDI3Ab6eO2vLEae8briMxJc vDyssdHkpXEf/UW7YjZjSXRlyPVStxPGA3RzY1NZXgIJwcZ0bwPP2NvGSVjp8z0kC111 ideQ== X-Gm-Message-State: ALyK8tLlKyZBSHrptuFCr6vqm77pqIXH6/XzgXmMD+20338jU8GSwjWIwcJg4E/sgz+/srDG X-Received: by 10.194.175.231 with SMTP id cd7mr2408712wjc.19.1467111146776; Tue, 28 Jun 2016 03:52:26 -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.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jun 2016 03:52:26 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 77/92] clocksource/drivers/bcm_kona: Add the COMPILE_TEST option Date: Tue, 28 Jun 2016 12:51:35 +0200 Message-Id: <1467111111-12587-2-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_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/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 1284ce1..4f1709b 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 01ecd88..a3cccf5 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 008d8a0..df99c92 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