From patchwork Wed Jul 21 09:00:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kukjin Kim X-Patchwork-Id: 59420 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ww0-f56.google.com (mail-ww0-f56.google.com [74.125.82.56]) by ozlabs.org (Postfix) with ESMTP id 7BABF1007D3 for ; Wed, 21 Jul 2010 19:11:09 +1000 (EST) Received: by wwb24 with SMTP id 24sf740080wwb.11 for ; Wed, 21 Jul 2010 02:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:mime-version:x-beenthere:received :received:received:received:received-spf:received:received:from:to :cc:subject:date:message-id:x-mailer:in-reply-to:references :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type; bh=orq7or9G/0/qw7XGH15W1jnBf8/fq/1w5UOKwoinlG8=; b=y5UlpXiMzhgG2cdz3HI+8DhxhHdI3poFD85L745S8NWWHhEl0Y8pDkpgPAN0jLmsAd fbVEDMC6n13hcEPhefG58erzpBuUyhcs4GKLFO5Xrj4BsI9nVyF624zVHkutsTYG0S8y WA8/ldhm7IcxwvLDIDzwwH+BgR3uYS9BcuU/I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe:content-type; b=p6PCPHy+6Nr1HhZ7k+RRjc4DSVHOFCtIAhIzCeCigqpDQyNB8PsJt1j4Y35SSJh8pL eSu8OAxTkHqjLm/3QsCY61AgUsy3ghyFGV3Ls+Qm0UOhE1waC7xb57S+e1J6gAhNpStK chWBLgtGs3nEp7Cmo1fvV4msztynw51VaB7Vc= Received: by 10.216.145.165 with SMTP id p37mr851598wej.28.1279703467137; Wed, 21 Jul 2010 02:11:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.213.45.206 with SMTP id g14ls3403318ebf.0.p; Wed, 21 Jul 2010 02:11:06 -0700 (PDT) Received: by 10.213.31.146 with SMTP id y18mr585921ebc.19.1279703466585; Wed, 21 Jul 2010 02:11:06 -0700 (PDT) Received: by 10.213.31.146 with SMTP id y18mr585920ebc.19.1279703466543; Wed, 21 Jul 2010 02:11:06 -0700 (PDT) Received: from ganesha.gnumonks.org (ganesha.gnumonks.org [213.95.27.120]) by gmr-mx.google.com with ESMTP id w43si8755538eeh.3.2010.07.21.02.11.06; Wed, 21 Jul 2010 02:11:06 -0700 (PDT) Received-SPF: neutral (google.com: 213.95.27.120 is neither permitted nor denied by best guess record for domain of kgene.kim@samsung.com) client-ip=213.95.27.120; Received: from uucp by ganesha.gnumonks.org with local-bsmtp (Exim 4.69) (envelope-from ) id 1ObVKT-0005Jo-Kn; Wed, 21 Jul 2010 11:11:05 +0200 Received: from [12.23.102.184] (helo=localhost.localdomain) by jackpot.kr.gnumonks.org with esmtp (Exim 4.69) (envelope-from ) id 1ObUYU-0002A2-O7; Wed, 21 Jul 2010 17:21:30 +0900 From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, rtc-linux@googlegroups.com Cc: ben-linux@fluff.org, p_gortmaker@yahoo.com, a.zummo@towertech.it, Atul Dahiya , Kukjin Kim Subject: [rtc-linux] [PATCH 2/5] rtc: rtc-s3c: Add extra option to include RTC for Samsung SoCs Date: Wed, 21 Jul 2010 18:00:11 +0900 Message-Id: <1279702814-14929-3-git-send-email-kgene.kim@samsung.com> X-Mailer: git-send-email 1.6.2.5 In-Reply-To: <1279702814-14929-1-git-send-email-kgene.kim@samsung.com> References: <1279702814-14929-1-git-send-email-kgene.kim@samsung.com> X-Original-Sender: kgene.kim@samsung.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 213.95.27.120 is neither permitted nor denied by best guess record for domain of kgene.kim@samsung.com) smtp.mail=kgene.kim@samsung.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , From: Atul Dahiya This patch adds HAVE_S3C_RTC to control inclusion of RTC driver for Samsung SoCs. This option will help to include the driver only for the necessary machines and not for any given arch. Signed-off-by: Atul Dahiya Signed-off-by: Kukjin Kim --- drivers/rtc/Kconfig | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 10ba12c..c43732f 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -645,9 +645,16 @@ config RTC_DRV_OMAP DA8xx/OMAP-L13x chips. This driver can also be built as a module called rtc-omap. +config HAVE_S3C_RTC + bool + help + This will include RTC support for Samsung SoCs. If + you want to include RTC support for any machine, kindly + select this in the respective mach-XXXX/Kconfig file. + config RTC_DRV_S3C tristate "Samsung S3C series SoC RTC" - depends on ARCH_S3C2410 || ARCH_S3C64XX + depends on ARCH_S3C2410 || ARCH_S3C64XX || HAVE_S3C_RTC help RTC (Realtime Clock) driver for the clock inbuilt into the Samsung S3C24XX series of SoCs. This can provide periodic