From patchwork Wed Jan 27 12:24:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kochetkov X-Patchwork-Id: 8133221 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 68F6CBEEE5 for ; Wed, 27 Jan 2016 12:26:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9E62320254 for ; Wed, 27 Jan 2016 12:26:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C4D6820220 for ; Wed, 27 Jan 2016 12:26:43 +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 1aOP9s-0001df-N7; Wed, 27 Jan 2016 12:25:12 +0000 Received: from mail-lb0-x244.google.com ([2a00:1450:4010:c04::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOP9p-0000SO-Fy; Wed, 27 Jan 2016 12:25:10 +0000 Received: by mail-lb0-x244.google.com with SMTP id ad5so325210lbc.3; Wed, 27 Jan 2016 04:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/MFHZ8wHcidMSgErzRrqmwtsn/tfTlv3BvuOws1YF2k=; b=XnIInUIevmDD99Hbat0+Zeu4HRCSPA6lFtQzDSDvC9L+YgPzWPRWi2CrSho8Dgu54y FY/wMPWDpf0N18hTfqbc68DwQ+8bYZ4AvNnvAtRVl71ESNmCQpk7bBsWpn93tnFhbvAt O6Ty/O8459D4l1AB1ztZc2gCrNeHfQH9/fB+qy+dxqSylrb9bRMh+CLSTQqJeJwoQ4h8 6RKVx2W14swzqrsfpjnE/py+Iz0XzCrLCR+OZLZIFIqDO/bBtFgIyIUMk0s92mMKRmTh YXYHEIljG1Zaf+k5ATB2KAHtys8FVpaRB4chvlFHD7qE9X7HJ0ukjWUcbuY02atcMTjl xFCQ== 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=/MFHZ8wHcidMSgErzRrqmwtsn/tfTlv3BvuOws1YF2k=; b=BOQAtbk4rYMK3vCjRmW62RgIXwVzx1ctKnW6n6VQw61eWfwNFN3d7ekCBdPe3YT95m C+Q/vLeb8YGUcL0Q2RXgyUIuQl9qhmms2bpL+akdJ3TrDINXKqY9idGWH/Ldn6/lacN8 cWBLqM+6PWkZW51kWa4g1CNMGVUYU0nF7uAh8o88IFXWkzgqglrqfYnvDKem5T1LYigl c3EnQK9cNso1nMKTTlqma1hwjI9/jOgZ6aGEObfyjiZAHS32Y7VxzJK60me54MwxhTgq eVVutoiJC+V+d+1dZOrcTx3IXm9L0envWuYVj8Kej2l4ok5K54KRRoR/1gM9w9KqokB4 xv2g== X-Gm-Message-State: AG10YOTfFxuXbMXXuzbi227N9etjR9rfyp8J5lsvRwcRNwmkuiibAuD/t5ma6GNIhpDSiA== X-Received: by 10.112.72.34 with SMTP id a2mr8657875lbv.18.1453897487014; Wed, 27 Jan 2016 04:24:47 -0800 (PST) Received: from ubuntu.lintech.ru ([185.35.119.87]) by smtp.gmail.com with ESMTPSA id a67sm799221lfe.6.2016.01.27.04.24.45 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jan 2016 04:24:46 -0800 (PST) From: Alexander Kochetkov To: Heiko Stuebner Subject: [PATCH] clk: rockchip: Allow sclk_i2s0 and i2s0_frac to change their parents rate on rk3188 Date: Wed, 27 Jan 2016 15:24:29 +0300 Message-Id: <1453897469-2134-1-git-send-email-al.kochet@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160127_042509_813671_31620E2D X-CRM114-Status: UNSURE ( 7.63 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.6 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Alexander Kochetkov , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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=-0.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SBL_CSS, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no 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 Allow sclk_i2s0 and i2s0_frac to change their parents rate as that the upstream dividers are purely there to feed sclk_i2s0 Tested on radxarock-lite. Signed-off-by: Alexander Kochetkov --- drivers/clk/rockchip/clk-rk3188.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c index fe728f8..50e3eee 100644 --- a/drivers/clk/rockchip/clk-rk3188.c +++ b/drivers/clk/rockchip/clk-rk3188.c @@ -691,10 +691,10 @@ static struct rockchip_clk_branch rk3188_clk_branches[] __initdata = { COMPOSITE_NOMUX(0, "i2s0_pre", "i2s_src", 0, RK2928_CLKSEL_CON(3), 0, 7, DFLAGS, RK2928_CLKGATE_CON(0), 9, GFLAGS), - COMPOSITE_FRAC(0, "i2s0_frac", "i2s0_pre", 0, + COMPOSITE_FRAC(0, "i2s0_frac", "i2s0_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(7), 0, RK2928_CLKGATE_CON(0), 10, GFLAGS), - MUX(SCLK_I2S0, "sclk_i2s0", mux_sclk_i2s0_p, 0, + MUX(SCLK_I2S0, "sclk_i2s0", mux_sclk_i2s0_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(3), 8, 2, MFLAGS), GATE(0, "hclk_imem0", "hclk_cpu", 0, RK2928_CLKGATE_CON(4), 14, GFLAGS),