From patchwork Tue Sep 24 17:30:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 2934791 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DCF13BFF05 for ; Tue, 24 Sep 2013 17:31:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C78B920306 for ; Tue, 24 Sep 2013 17:31:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8EF77202EB for ; Tue, 24 Sep 2013 17:31:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOWS7-00089c-W8; Tue, 24 Sep 2013 17:31:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOWS5-0007Bk-DL; Tue, 24 Sep 2013 17:31:09 +0000 Received: from top.free-electrons.com ([176.31.233.9] helo=mail.free-electrons.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOWS3-0007AM-KQ for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2013 17:31:08 +0000 Received: by mail.free-electrons.com (Postfix, from userid 106) id 4F00E11B9; Tue, 24 Sep 2013 19:30:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from localhost (128-79-216-144.hfc.dyn.abo.bbox.fr [128.79.216.144]) by mail.free-electrons.com (Postfix) with ESMTPSA id 0813F7FF; Tue, 24 Sep 2013 19:30:48 +0200 (CEST) From: Alexandre Belloni To: Nicolas Ferre Subject: [PATCH] ARM: at91: sama5d: add the PWM clock Date: Tue, 24 Sep 2013 19:30:32 +0200 Message-Id: <1380043832-26600-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 1.8.1.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130924_133107_756524_B9A47747 X-CRM114-Status: UNSURE ( 8.92 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.5 (---) Cc: Alexandre Belloni , Ludovic Desroches , Jean-Christophe Plagniol-Villard , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre --- arch/arm/mach-at91/sama5d3.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/mach-at91/sama5d3.c b/arch/arm/mach-at91/sama5d3.c index 4012797..8e43e8d 100644 --- a/arch/arm/mach-at91/sama5d3.c +++ b/arch/arm/mach-at91/sama5d3.c @@ -241,6 +241,11 @@ static struct clk tdes_clk = { .pid = SAMA5D3_ID_TDES, .type = CLK_TYPE_PERIPHERAL, }; +static struct clk pwm_clk = { + .name = "pwm_clk", + .pid = SAMA5D3_ID_PWM, + .type = CLK_TYPE_PERIPHERAL, +}; static struct clk *periph_clocks[] __initdata = { &pioA_clk, @@ -281,6 +286,7 @@ static struct clk *periph_clocks[] __initdata = { &sha_clk, &aes_clk, &tdes_clk, + &pwm_clk, }; static struct clk pck0 = { @@ -345,6 +351,7 @@ static struct clk_lookup periph_clocks_lookups[] = { CLKDEV_CON_DEV_ID("sha_clk", "f8034000.sha", &sha_clk), CLKDEV_CON_DEV_ID("aes_clk", "f8038000.aes", &aes_clk), CLKDEV_CON_DEV_ID("tdes_clk", "f803c000.tdes", &tdes_clk), + CLKDEV_CON_DEV_ID(NULL, "f002c000.pwm", &pwm_clk), }; static void __init sama5d3_register_clocks(void)