From patchwork Tue Feb 21 09:04:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 142265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pw0-f56.google.com (mail-pw0-f56.google.com [209.85.160.56]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 7F0F3B6FAA for ; Tue, 21 Feb 2012 19:50:23 +1100 (EST) Received: by pbcum15 with SMTP id um15sf7767738pbc.11 for ; Tue, 21 Feb 2012 00:50:19 -0800 (PST) Received-SPF: pass (google.com: domain of rtc-linux+bncCObKqo_qFxDJtY36BBoEFkuvvQ@googlegroups.com designates 10.68.199.166 as permitted sender) client-ip=10.68.199.166; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rtc-linux+bncCObKqo_qFxDJtY36BBoEFkuvvQ@googlegroups.com designates 10.68.199.166 as permitted sender) smtp.mail=rtc-linux+bncCObKqo_qFxDJtY36BBoEFkuvvQ@googlegroups.com; dkim=pass header.i=rtc-linux+bncCObKqo_qFxDJtY36BBoEFkuvvQ@googlegroups.com Received: from mr.google.com ([10.68.199.166]) by 10.68.199.166 with SMTP id jl6mr18069271pbc.17.1329814219091 (num_hops = 1); Tue, 21 Feb 2012 00:50:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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-originalarrivaltime :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=Ws/25fvEzY3yGjIHaWfQQHdLp/M1f+NaWjwqntrjp/o=; b=UNEkP4HY+z3ddXYlVOHL1D2BSiCFNz6KdGqi11lVHTKFHAc1xDagYHgXax7kQ8+Tty ysdAKliqm+/hHXk728Zz+XSyzsRxxCOy0/tu2lpP/TnTFZen9zev3++RwqQhRw67zlSm RYJsHBNZh5GMyH3i43Jb/4PRPNYbPq3ddQyYo= Received: by 10.68.199.166 with SMTP id jl6mr4954000pbc.17.1329814217869; Tue, 21 Feb 2012 00:50:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.68.216.162 with SMTP id or2ls16830573pbc.8.gmail; Tue, 21 Feb 2012 00:50:16 -0800 (PST) Received: by 10.68.231.202 with SMTP id ti10mr17342424pbc.5.1329814216728; Tue, 21 Feb 2012 00:50:16 -0800 (PST) Received: by 10.68.231.202 with SMTP id ti10mr17342422pbc.5.1329814216720; Tue, 21 Feb 2012 00:50:16 -0800 (PST) Received: from na3sys009aog108.obsmtp.com ([74.125.149.199]) by gmr-mx.google.com with SMTP id 6si15663741pbg.2.2012.02.21.00.49.43; Tue, 21 Feb 2012 00:50:16 -0800 (PST) Received-SPF: temperror (google.com: error in processing during lookup of hzhuang1@marvell.com: DNS timeout) client-ip=74.125.149.199; Received: from MSI-MTA.marvell.com ([65.219.4.132]) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKT0NapyZV7fT8Fv7yuNi5POrjJ6AJQEss@postini.com; Tue, 21 Feb 2012 00:50:16 PST Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 21 Feb 2012 00:48:22 -0800 Received: from localhost (unknown [10.38.164.65]) by maili.marvell.com (Postfix) with ESMTP id E44604E4BF; Tue, 21 Feb 2012 00:48:21 -0800 (PST) From: Haojian Zhuang To: robert.jarzmik@free.fr, a.zummo@towertech.it, arnd@arndb.de, plagnioj@jcrosoft.com, linux-arm-kernel@lists.infradead.org, rtc-linux@googlegroups.com, linux@arm.linux.org.uk Cc: Haojian Zhuang Subject: [rtc-linux] [PATCH 5/7] ARM: pxa: add rtc dummy clock Date: Tue, 21 Feb 2012 17:04:54 +0800 Message-Id: <1329815096-6200-6-git-send-email-haojian.zhuang@marvell.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1329815096-6200-1-git-send-email-haojian.zhuang@marvell.com> References: <1329815096-6200-1-git-send-email-haojian.zhuang@marvell.com> X-OriginalArrivalTime: 21 Feb 2012 08:48:22.0121 (UTC) FILETIME=[90FC8590:01CCF075] X-Original-Sender: haojian.zhuang@marvell.com X-Original-Authentication-Results: gmr-mx.google.com; spf=temperror (google.com: error in processing during lookup of hzhuang1@marvell.com: DNS timeout) smtp.mail=hzhuang1@marvell.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , sa1100-rtc driver could be shared among sa1100/pxa/mmp series silicon. Since clk is used in mmp series silicon, add dummy clock support in pxa also. Signed-off-by: Haojian Zhuang --- arch/arm/mach-pxa/pxa25x.c | 1 + arch/arm/mach-pxa/pxa27x.c | 1 + arch/arm/mach-pxa/pxa3xx.c | 1 + arch/arm/mach-pxa/pxa95x.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index 91e4f6c..8d8c3ef 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c @@ -209,6 +209,7 @@ static struct clk_lookup pxa25x_clkregs[] = { INIT_CLKREG(&clk_pxa25x_gpio11, NULL, "GPIO11_CLK"), INIT_CLKREG(&clk_pxa25x_gpio12, NULL, "GPIO12_CLK"), INIT_CLKREG(&clk_pxa25x_mem, "pxa2xx-pcmcia", NULL), + INIT_CLKREG(&clk_dummy, "pxa25x-rtc", NULL), }; static struct clk_lookup pxa25x_hwuart_clkreg = diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 345fa7b..f95977f 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c @@ -230,6 +230,7 @@ static struct clk_lookup pxa27x_clkregs[] = { INIT_CLKREG(&clk_pxa27x_im, NULL, "IMCLK"), INIT_CLKREG(&clk_pxa27x_memc, NULL, "MEMCLK"), INIT_CLKREG(&clk_pxa27x_mem, "pxa2xx-pcmcia", NULL), + INIT_CLKREG(&clk_dummy, "pxa25x-rtc", NULL), }; #ifdef CONFIG_PM diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index d2437a8..4b01eee 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c @@ -89,6 +89,7 @@ static struct clk_lookup pxa3xx_clkregs[] = { INIT_CLKREG(&clk_pxa3xx_mmc2, "pxa2xx-mci.1", NULL), INIT_CLKREG(&clk_pxa3xx_smemc, "pxa2xx-pcmcia", NULL), INIT_CLKREG(&clk_pxa3xx_gpio, "pxa-gpio", NULL), + INIT_CLKREG(&clk_dummy, "pxa25x-rtc", NULL), }; #ifdef CONFIG_PM diff --git a/arch/arm/mach-pxa/pxa95x.c b/arch/arm/mach-pxa/pxa95x.c index b41e9f3..0273801 100644 --- a/arch/arm/mach-pxa/pxa95x.c +++ b/arch/arm/mach-pxa/pxa95x.c @@ -231,6 +231,7 @@ static struct clk_lookup pxa95x_clkregs[] = { INIT_CLKREG(&clk_pxa95x_pwm0, "pxa27x-pwm.0", NULL), INIT_CLKREG(&clk_pxa95x_pwm1, "pxa27x-pwm.1", NULL), INIT_CLKREG(&clk_pxa95x_gpio, "pxa-gpio", NULL), + INIT_CLKREG(&clk_dummy, "pxa25x-rtc", NULL), }; void __init pxa95x_init_irq(void)