From patchwork Tue Mar 11 22:40:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 26064 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9A29920068 for ; Tue, 11 Mar 2014 22:44:08 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id bj1sf513211pad.7 for ; Tue, 11 Mar 2014 15:44:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=HCrX7T9y6gy9x3wBLy6pa5fufEYHe1DYj9eO9L00yRo=; b=ijDKpAE4wxnaTD7KxsVbz4G7j8xnX8ob5JPTICtSWAfqsT3uFD1mHm1DlHtfm5kpqT m1XoHvvkbY94QYDNh2qDtxsAg5lHUPT8KGGETvOJGw90GBFRr/OxhjlqBy3WG4jTP6jO JKzt01mcVPNcvdYi0QLr9ECTupGXJareJThU337N8OStiFmA/LhyHg9K1z2Ybp/dztyX Z1MAOm3zJX5us1Lvj2uj8+XfQXCmtJnNa3gdgkXGyD0O/v9GvIy2k0jLGcSDOrPLQf0B kXAhigQee10/Ouj30VyI3olFuVVUQLorM2ev67lllWgQq9cfM+KC9JX2GfMGOthLPmnn u8zg== X-Gm-Message-State: ALoCoQn59A+Z8FlepSFINdHddIGZUYli6M11M8p9ep0XdE8FrTtJ4mqPwfEgTzcbshwU5dcoz3UZ X-Received: by 10.66.144.170 with SMTP id sn10mr319037pab.43.1394577847842; Tue, 11 Mar 2014 15:44:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.195 with SMTP id 61ls2666589qgv.19.gmail; Tue, 11 Mar 2014 15:44:07 -0700 (PDT) X-Received: by 10.52.142.10 with SMTP id rs10mr28383910vdb.3.1394577847631; Tue, 11 Mar 2014 15:44:07 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id nc1si6231593vec.138.2014.03.11.15.44.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:44:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so9378866veb.11 for ; Tue, 11 Mar 2014 15:44:07 -0700 (PDT) X-Received: by 10.52.241.106 with SMTP id wh10mr28529317vdc.16.1394577847549; Tue, 11 Mar 2014 15:44:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp238946vck; Tue, 11 Mar 2014 15:44:06 -0700 (PDT) X-Received: by 10.66.158.132 with SMTP id wu4mr789842pab.66.1394577846480; Tue, 11 Mar 2014 15:44:06 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id nc6si346851pbc.263.2014.03.11.15.44.05; Tue, 11 Mar 2014 15:44:05 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755547AbaCKWnY (ORCPT + 26 others); Tue, 11 Mar 2014 18:43:24 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:53926 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756049AbaCKWlK (ORCPT ); Tue, 11 Mar 2014 18:41:10 -0400 Received: by mail-wi0-f172.google.com with SMTP id hi5so1601366wib.17 for ; Tue, 11 Mar 2014 15:41:09 -0700 (PDT) X-Received: by 10.194.174.42 with SMTP id bp10mr142360wjc.57.1394577669684; Tue, 11 Mar 2014 15:41:09 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-526-136.w109-220.abo.wanadoo.fr. [109.220.245.136]) by mx.google.com with ESMTPSA id n3sm10411631wix.10.2014.03.11.15.41.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Mar 2014 15:41:08 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, dan.carpenter@oracle.com, ezequiel.garcia@free-electrons.com, ivan.khoronzhuk@ti.com, linus.walleij@linaro.org, magnus.damm@gmail.com, matthias.bgg@gmail.com, soren.brinkmann@xilinx.com, sboyd@codeaurora.org Subject: [PATCH 12/17] clocksource: Add Kconfig entries for CMT, MTU2, TMU and STI Date: Tue, 11 Mar 2014 23:40:48 +0100 Message-Id: <1394577653-8615-12-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394577653-8615-1-git-send-email-daniel.lezcano@linaro.org> References: <531F8FAC.2040902@linaro.org> <1394577653-8615-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Magnus Damm Add Kconfig entries for CMT, MTU2, TMU and STI to drivers/clocksource/Kconfig. This will allow us to get rid of duplicated entires in architecture code such as arch/sh and arch/arm/mach-shmobile. Signed-off-by: Magnus Damm Signed-off-by: Wolfram Sang Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index cd6950f..4f754a9 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -140,3 +140,47 @@ config VF_PIT_TIMER bool help Support for Period Interrupt Timer on Freescale Vybrid Family SoCs. + +config SYS_SUPPORTS_SH_CMT + bool + +config SYS_SUPPORTS_SH_MTU2 + bool + +config SYS_SUPPORTS_SH_TMU + bool + +config SYS_SUPPORTS_EM_STI + bool + +config SH_TIMER_CMT + bool "Renesas CMT timer driver" if COMPILE_TEST + default SYS_SUPPORTS_SH_CMT + help + This enables build of a clocksource and clockevent driver for + the Compare Match Timer (CMT) hardware available in 16/32/48-bit + variants on a wide range of Mobile and Automotive SoCs from Renesas. + +config SH_TIMER_MTU2 + bool "Renesas MTU2 timer driver" if COMPILE_TEST + default SYS_SUPPORTS_SH_MTU2 + help + This enables build of a clockevent driver for the Multi-Function + Timer Pulse Unit 2 (TMU2) hardware available on SoCs from Renesas. + This hardware comes with 16 bit-timer registers. + +config SH_TIMER_TMU + bool "Renesas TMU timer driver" if COMPILE_TEST + default SYS_SUPPORTS_SH_TMU + help + This enables build of a clocksource and clockevent driver for + the 32-bit Timer Unit (TMU) hardware available on a wide range + SoCs from Renesas. + +config EM_TIMER_STI + bool "Renesas STI timer driver" if COMPILE_TEST + default SYS_SUPPORTS_EM_STI + help + This enables build of a clocksource and clockevent driver for + the 48-bit System Timer (STI) hardware available on a SoCs + such as EMEV2 from former NEC Electronics.