From patchwork Wed Nov 19 07:15:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sonny Rao X-Patchwork-Id: 5334731 Return-Path: X-Original-To: patchwork-linux-rockchip@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 76952C11AC for ; Wed, 19 Nov 2014 07:15:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8E62420115 for ; Wed, 19 Nov 2014 07:15:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0127200DF for ; Wed, 19 Nov 2014 07:15:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqzUS-0002ma-Lg; Wed, 19 Nov 2014 07:15:48 +0000 Received: from mail-pa0-f74.google.com ([209.85.220.74]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqzUQ-0002l4-WF for linux-rockchip@lists.infradead.org; Wed, 19 Nov 2014 07:15:47 +0000 Received: by mail-pa0-f74.google.com with SMTP id kq14so1274pab.1 for ; Tue, 18 Nov 2014 23:15:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6Sw1ZDxlvC6UxC0jNogJRznLZR86AIaF2Bfe9RylVuQ=; b=NOY7y8lFfISYphf2ZFOx65xqqtkoU1gY8bftGmjl2V+A8KYVMEihekBUmiPGkfb54k dMBf337TGIaGW4k6uDE362w1EDxGrVqvt78IW43kXI/CGO+TFl9QQDTvO3yj0OWRX8bC SD8FB7R8jKoESxY+WpEGS7KfFS4j/KRH4J4zfDEAJTHy+c1PYlsa44BVZqfAUTlOQker 0cC52yDEYgem4bmuDnd3rC3uiB0UL82JqZ+dzKexBO+wWtvKFL6U96taeHk68yDtOrkZ pqsS+nvN8avckv/ZaMo/gYmKIC1FydoG57dAbccycjoyetxEaGgueZCD623Gs52FVInE 813A== X-Gm-Message-State: ALoCoQlSNvucoaihVa9NpXSWwf4AIWTyZTE1ZPQB7i9ATxmobCdL41eHQM8hWcXivpdwpCLmytLV X-Received: by 10.66.163.199 with SMTP id yk7mr70998439pab.41.1416381323915; Tue, 18 Nov 2014 23:15:23 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id t28si47818yhb.4.2014.11.18.23.15.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Nov 2014 23:15:23 -0800 (PST) Received: from sonnyrao.mtv.corp.google.com ([172.22.65.176]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id qmbDhEtL.1; Tue, 18 Nov 2014 23:15:23 -0800 Received: by sonnyrao.mtv.corp.google.com (Postfix, from userid 129445) id A513EA0CF0; Tue, 18 Nov 2014 23:15:22 -0800 (PST) From: Sonny Rao To: Heiko Stuebner Subject: [PATCH] clk: rockchip: rk3288 export i2s0_clkout for use in DT Date: Tue, 18 Nov 2014 23:15:19 -0800 Message-Id: <1416381319-31117-1-git-send-email-sonnyrao@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141118_231547_064444_A9BD6506 X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Mike Turquette , linux-kernel@vger.kernel.org, dianders@chromium.org, Kever Yang , linux-rockchip@lists.infradead.org, Sonny Rao , linux-arm-kernel@lists.infradead.org, Mark yao X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This exposes the clock that comes out of the i2s block which generally goes to the audio codec. Signed-off-by: Sonny Rao --- drivers/clk/rockchip/clk-rk3288.c | 3 ++- include/dt-bindings/clock/rk3288-cru.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 2327829..8777737 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -305,7 +305,8 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { RK3288_CLKGATE_CON(4), 2, GFLAGS), MUX(0, "i2s_pre", mux_i2s_pre_p, CLK_SET_RATE_PARENT, RK3288_CLKSEL_CON(4), 8, 2, MFLAGS), - COMPOSITE_NODIV(0, "i2s0_clkout", mux_i2s_clkout_p, CLK_SET_RATE_PARENT, + COMPOSITE_NODIV(SCLK_I2S0_OUT, "i2s0_clkout", mux_i2s_clkout_p, + CLK_SET_RATE_PARENT, RK3288_CLKSEL_CON(4), 12, 1, MFLAGS, RK3288_CLKGATE_CON(4), 0, GFLAGS), GATE(SCLK_I2S0, "sclk_i2s0", "i2s_pre", CLK_SET_RATE_PARENT, diff --git a/include/dt-bindings/clock/rk3288-cru.h b/include/dt-bindings/clock/rk3288-cru.h index 100a08c..4acc730 100644 --- a/include/dt-bindings/clock/rk3288-cru.h +++ b/include/dt-bindings/clock/rk3288-cru.h @@ -71,6 +71,7 @@ #define SCLK_HDMI_CEC 110 #define SCLK_HEVC_CABAC 111 #define SCLK_HEVC_CORE 112 +#define SCLK_I2S0_OUT 113 #define DCLK_VOP0 190 #define DCLK_VOP1 191