From patchwork Fri Dec 27 00:44:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 3407801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7605E9F314 for ; Fri, 27 Dec 2013 00:48:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 97F842013A for ; Fri, 27 Dec 2013 00:48:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 9CEA52012B for ; Fri, 27 Dec 2013 00:48: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 1VwLZX-0004jE-L6; Fri, 27 Dec 2013 00:46:41 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VwLYx-00009Y-C1; Fri, 27 Dec 2013 00:46:03 +0000 Received: from mail-oa0-f74.google.com ([209.85.219.74]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VwLYA-0008Ug-W1 for linux-arm-kernel@lists.infradead.org; Fri, 27 Dec 2013 00:45:16 +0000 Received: by mail-oa0-f74.google.com with SMTP id o6so1933851oag.3 for ; Thu, 26 Dec 2013 16:44:50 -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:in-reply-to :references; bh=FpEojSu+HSG8OlIap6ZeEYxutLcb/+e9gdlnDqbqak0=; b=Hm98sAEaaUMqgK0nYirT0UZAYG0+tgVzN75WGvnbZku/Z9XYESH/kmUNeY9FLhqo8d WqY2CRnEmxoTvGBoWK4pBSstcN0z0zlMqmqAYQuQ4qw1aQ4WVu9IYmTTsdtXolnm9oSY 47yHesNMIGqBS1YsBuFGuQ5FRICz8BDlDOnDSLY8Ffj9qoVdn/t/UbcEcOMS02CSk6iR RF0lm9NwxSn46q5/YgfG3OdAyWrk45veb5J1UVEOoryW7lMeXeHqz0usmWCFCo9jPWdb /+jPPXNInAgEt7gaje7SoVdxZ7x1ltqR8WXSvxi9UWqIElHsPfgldo0hPCW1lf5ySaH8 dIjg== X-Gm-Message-State: ALoCoQnvZBxDPdr0fbgEykeyAJU2MSLhcq4tL87rxaZJNGgw+30BA/K2mE3gpWnRUmzGs0M2ltF3J8lNEVOhpjVnctPsHgYiesEwGrbDbC1/TO42Jhrm2e7qRO7T4V/Rmazxsv7M/9PPG5derafvNzyjCoZnnjhWpdMfvh499dbr4r1zgv0UtFmMyakMVohtwFh02NYpWPe+vgxtunqfOYpiB08oYq8j1w== X-Received: by 10.43.44.136 with SMTP id ug8mr17035589icb.17.1388105089306; Thu, 26 Dec 2013 16:44:49 -0800 (PST) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id d9si10143061yhl.2.2013.12.26.16.44.49 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Dec 2013 16:44:49 -0800 (PST) Received: from abrestic.mtv.corp.google.com (abrestic.mtv.corp.google.com [172.22.72.111]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 214F55A41B6; Thu, 26 Dec 2013 16:44:49 -0800 (PST) Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id D7410220798; Thu, 26 Dec 2013 16:44:48 -0800 (PST) From: Andrew Bresticker To: Mike Turquette , Stephen Warren Subject: [PATCH 3/7] clk: tegra: PLLD2 fixes for hdmi Date: Thu, 26 Dec 2013 16:44:23 -0800 Message-Id: <1388105067-24438-4-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 1.8.5.1 In-Reply-To: <1388105067-24438-1-git-send-email-abrestic@chromium.org> References: <1388105067-24438-1-git-send-email-abrestic@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131226_194515_122411_AD80ED82 X-CRM114-Status: GOOD ( 10.01 ) X-Spam-Score: -3.2 (---) Cc: Prashant Gaikwad , Andrew Bresticker , Peter De Schrijver , linux-kernel@vger.kernel.org, Thierry Reding , linux-tegra@vger.kernel.org, David Ung , 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-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: David Ung Set correct pll_d2_out0 divider and correct the p div values for pll_d2. Signed-off-by: David Ung Signed-off-by: Andrew Bresticker --- drivers/clk/tegra/clk-tegra124.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c index 14c3f2f..0fc9126 100644 --- a/drivers/clk/tegra/clk-tegra124.c +++ b/drivers/clk/tegra/clk-tegra124.c @@ -619,12 +619,11 @@ static struct tegra_clk_pll_params pll_d_params = { }; static struct tegra_clk_pll_freq_table tegra124_pll_d2_freq_table[] = { - { 12000000, 148500000, 99, 1, 8}, - { 12000000, 594000000, 99, 1, 1}, - { 13000000, 594000000, 91, 1, 1}, /* actual: 591.5 MHz */ - { 16800000, 594000000, 71, 1, 1}, /* actual: 596.4 MHz */ - { 19200000, 594000000, 62, 1, 1}, /* actual: 595.2 MHz */ - { 26000000, 594000000, 91, 2, 1}, /* actual: 591.5 MHz */ + { 12000000, 594000000, 99, 1, 2}, + { 13000000, 594000000, 91, 1, 2}, /* actual: 591.5 MHz */ + { 16800000, 594000000, 71, 1, 2}, /* actual: 596.4 MHz */ + { 19200000, 594000000, 62, 1, 2}, /* actual: 595.2 MHz */ + { 26000000, 594000000, 91, 2, 2}, /* actual: 591.5 MHz */ { 0, 0, 0, 0, 0, 0 }, }; @@ -1295,9 +1294,9 @@ static void __init tegra124_pll_init(void __iomem *clk_base, clk_register_clkdev(clk, "pll_d2", NULL); clks[TEGRA124_CLK_PLL_D2] = clk; - /* PLLD2_OUT0 ?? */ + /* PLLD2_OUT0 */ clk = clk_register_fixed_factor(NULL, "pll_d2_out0", "pll_d2", - CLK_SET_RATE_PARENT, 1, 2); + CLK_SET_RATE_PARENT, 1, 1); clk_register_clkdev(clk, "pll_d2_out0", NULL); clks[TEGRA124_CLK_PLL_D2_OUT0] = clk;