From patchwork Wed Jan 8 06:08:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3451991 Return-Path: X-Original-To: patchwork-linux-sh@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 AB792C02DC for ; Wed, 8 Jan 2014 06:08:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C54182010C for ; Wed, 8 Jan 2014 06:08:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9135820109 for ; Wed, 8 Jan 2014 06:08:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755200AbaAHGIu (ORCPT ); Wed, 8 Jan 2014 01:08:50 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:61379 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755159AbaAHGIm (ORCPT ); Wed, 8 Jan 2014 01:08:42 -0500 Received: by mail-pb0-f44.google.com with SMTP id rq2so1146263pbb.17 for ; Tue, 07 Jan 2014 22:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:subject:from:to:cc:in-reply-to:references :mime-version:content-type; bh=nLpY9X8rnd1DGk7bNr8X2j1ymDmoVGKYMLQ2A/jjEjc=; b=w8HCs03pWhIwbPrYnfCf0mxgpUX+TE1mqaYlXpcjbMGZ3Ukhv8u8+JUQH0tyQHB/ml taY0MYBQH5/9yp+ODJNw80T964jbOxWrXsPEJDBcZzTkuDPYjdOD0t7nQqCA34zlDrFX Ym1gjX8peSeKfuuVxWZsKK+GtVLBm271bfyo+ig5rLEev+fkXDQSscrwQOCBNo0FjMNu Pb65v16kMZXeqG51wZHvRxrwiLI+NbNR5VlZ5Yn8GnMk1G0HbmR0fhP9JudeqMu2t7TV k4Zm+FJsVxE0KNKire+4MxNypbjby+7Tl7B/zc3DlgtbzEnUR7f4wJ2bfOF5yyveQvfE eXHQ== X-Received: by 10.68.197.36 with SMTP id ir4mr138790877pbc.96.1389161321227; Tue, 07 Jan 2014 22:08:41 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id i10sm183827189pat.11.2014.01.07.22.08.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 07 Jan 2014 22:08:40 -0800 (PST) Date: Tue, 07 Jan 2014 22:08:40 -0800 (PST) Message-ID: <87zjn7vwd6.wl%kuninori.morimoto.gx@gmail.com> Subject: [PATCH 1/2] ARM: shmobile: r8a7790: add Audio DMAC clock From: Kuninori Morimoto To: Simon Horman Cc: Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <20140108042347.GE15891@verge.net.au> References: <871u0ljyt2.wl%kuninori.morimoto.gx@gmail.com> <87zjn9ik7o.wl%kuninori.morimoto.gx@gmail.com> <20140108041736.GB15891@verge.net.au> <20140108042347.GE15891@verge.net.au> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY,URI_HEX autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Audio DMAC can be controlled via sh-dma-engine Signed-off-by: Kuninori Morimoto --- arch/arm/mach-shmobile/clock-r8a7790.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-shmobile/clock-r8a7790.c b/arch/arm/mach-shmobile/clock-r8a7790.c index a028f96..58f3dcf 100644 --- a/arch/arm/mach-shmobile/clock-r8a7790.c +++ b/arch/arm/mach-shmobile/clock-r8a7790.c @@ -201,6 +201,7 @@ enum { MSTP717, MSTP716, MSTP704, MSTP522, + MSTP502, MSTP501, MSTP315, MSTP314, MSTP313, MSTP312, MSTP311, MSTP305, MSTP304, MSTP216, MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP124, @@ -236,6 +237,8 @@ static struct clk mstp_clks[MSTP_NR] = { [MSTP716] = SH_CLK_MSTP32_STS(&zs_clk, SMSTPCR7, 16, MSTPSR7, 0), /* HSCIF1 */ [MSTP704] = SH_CLK_MSTP32_STS(&mp_clk, SMSTPCR7, 4, MSTPSR7, 0), /* HSUSB */ [MSTP522] = SH_CLK_MSTP32_STS(&extal_clk, SMSTPCR5, 22, MSTPSR5, 0), /* Thermal */ + [MSTP502] = SH_CLK_MSTP32_STS(&zs_clk, SMSTPCR5, 2, MSTPSR5, 0), /* Audio-DMAC low */ + [MSTP501] = SH_CLK_MSTP32_STS(&zs_clk, SMSTPCR5, 1, MSTPSR5, 0), /* Audio-DMAC hi */ [MSTP315] = SH_CLK_MSTP32_STS(&div6_clks[DIV6_MMC0], SMSTPCR3, 15, MSTPSR3, 0), /* MMC0 */ [MSTP314] = SH_CLK_MSTP32_STS(&div4_clks[DIV4_SD0], SMSTPCR3, 14, MSTPSR3, 0), /* SDHI0 */ [MSTP313] = SH_CLK_MSTP32_STS(&div4_clks[DIV4_SD1], SMSTPCR3, 13, MSTPSR3, 0), /* SDHI1 */ @@ -311,6 +314,8 @@ static struct clk_lookup lookups[] = { CLKDEV_DEV_ID("r8a7790-ether", &mstp_clks[MSTP813]), CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]), CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]), + CLKDEV_DEV_ID("sh-dma-engine.0", &mstp_clks[MSTP502]), + CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[MSTP501]), CLKDEV_DEV_ID("ee200000.mmc", &mstp_clks[MSTP315]), CLKDEV_DEV_ID("sh_mmcif.0", &mstp_clks[MSTP315]), CLKDEV_DEV_ID("ee100000.sd", &mstp_clks[MSTP314]),