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: 5334741 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 B1744C11AC for ; Wed, 19 Nov 2014 07:17:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E798820115 for ; Wed, 19 Nov 2014 07:17:44 +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 0CDC2200DF for ; Wed, 19 Nov 2014 07:17:44 +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 1XqzUT-0002mp-Hj; Wed, 19 Nov 2014 07:15:49 +0000 Received: from mail-pa0-f73.google.com ([209.85.220.73]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqzUQ-0002l5-WB for linux-arm-kernel@lists.infradead.org; Wed, 19 Nov 2014 07:15:47 +0000 Received: by mail-pa0-f73.google.com with SMTP id lj1so1111pab.2 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=iyWIQXPfPZ4xevSK/1c50I0e7KYyyqBgrcUJeSkUQvFJnJVgnb58owB/ABlPKdh7G4 kfnw90wFfByNEZF9uG5gk20VSQGlTlCY9KBtwUFpxL4hG0NxPlSrdS2tKA0kfos4xYv8 KvCwXhdc+61CXEfIXRdHvOFOFkk4LqW0JHn77NEClb6jTZBDJBjt/r2aD+9dCwXXS8b/ 2xILFC12Ak9RqMDIfeM0/4Y0roUvFb8NgFdACrivma7KG0A6QB3D/P/GVdEXvSyi9F8t X+38paH5xjdOcJ2UMxiuk0eGJS4bZNUGoggzvnHt3BBlbkiTscpAt44Zp85w6M/tVl2x 8UyQ== X-Gm-Message-State: ALoCoQkhVmFzemI5HZ0XjTj0TQfeEZFUtmpcQvJS7OXPbjg6nHXYEvyYyRGPY+cfnSBD8efwZHyN 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_084351_29B77059 X-CRM114-Status: UNSURE ( 9.86 ) 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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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-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