From patchwork Tue Nov 4 07:52:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kever Yang X-Patchwork-Id: 5223491 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 026859F295 for ; Tue, 4 Nov 2014 07:57:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 33C712015E for ; Tue, 4 Nov 2014 07:57:27 +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 5EFA72012B for ; Tue, 4 Nov 2014 07:57:26 +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 1XlYxg-0005mt-Hq; Tue, 04 Nov 2014 07:55:32 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XlYxX-0004SM-9x; Tue, 04 Nov 2014 07:55:24 +0000 Received: by mail-pd0-f175.google.com with SMTP id y13so13180916pdi.20 for ; Mon, 03 Nov 2014 23:55:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=9nH5OIjf57GaZPeSXAAvYGVYCc55DraFgax+8oVQCHU=; b=mO5IhVRC3IxIUMTzb1BOWKohfhSIVi5ThwNSSwPbGg949oDX2a2W3SEaMSq4JGqYTf +s9PYDtLUui6I1x5DqgB3t5eBkxiTv2DdbyTZXFxUeqTCCwrxVbKXXY8EnF+6QVPBVtZ SE2POHizbsC07lejOyQj8HlgCEm8C3dA0Ou9RRqmFl6JIMTETK74KvKZ6q/2b20T2dng i1dKLC7F8hqBTsz3yPs/JSVReFltoby1LMyhVo3n/YIcwzB0kha/Y+BoU1lOgoArRazc eXQhyuBINBmI0smZui9M6EAyRiuvkr2gysrQL3TZVPq1+PH+ejqC3Y27aTLs12Bzj6lt VXJA== X-Received: by 10.68.134.197 with SMTP id pm5mr8575486pbb.123.1415087702051; Mon, 03 Nov 2014 23:55:02 -0800 (PST) Received: from localhost.localdomain ([58.22.7.114]) by mx.google.com with ESMTPSA id r4sm16197953pdm.93.2014.11.03.23.54.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Nov 2014 23:55:00 -0800 (PST) From: Kever Yang To: Mike Turquette , Heiko Stuebner Subject: [PATCH 1/5] clk: rockchip: add some clock rate into rate table for rk3288 Date: Tue, 4 Nov 2014 15:52:35 +0800 Message-Id: <1415087559-19444-2-git-send-email-kever.yang@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415087559-19444-1-git-send-email-kever.yang@rock-chips.com> References: <1415087559-19444-1-git-send-email-kever.yang@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141103_235523_382314_62CC924B X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.0 (+) Cc: huangtao@rock-chips.com, dkl@rock-chips.com, addy.ke@rock-chips.com, yzq@rock-chips.com, linux-kernel@vger.kernel.org, dianders@chromium.org, Kever Yang , linux-rockchip@lists.infradead.org, fzf@rock-chips.com, ykk@rock-chips.com, cf@rock-chips.com, sonnyrao@chromium.org, linux-arm-kernel@lists.infradead.org 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=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY, URIBL_BLACK 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 We are going to support all the HDMI resolutions which need a bunch of accurate clock rates. This patch makes the pll rate table can provide all the option clock rate that HDMI controller may needed. Here's what HDMI needs: resolutions Pixel clock(Mhz) 1920x1080p 60/50 148.5 1920x1080i 100/120 148.5 1920x1080i 60/50 74.25 1280x720p 60/50/30/25 74.25 720x576p 50 27 720x480p 60 27 1440x480i 60 27 1440x576i 50 27 1680x1050 60 146.25 1280x1024 60 108 1280x960 60 108 1440x900 60 106.5 1280x800 60 83.5 1024x768 60 65 800x600 60 40 800x600 56 36 640x480 60 25.175 Signed-off-by: Kever Yang --- drivers/clk/rockchip/clk-rk3288.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 279a662..48412e9 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -73,6 +73,7 @@ struct rockchip_pll_rate_table rk3288_pll_rates[] = { RK3066_PLL_RATE(1128000000, 1, 47, 1), RK3066_PLL_RATE(1104000000, 1, 46, 1), RK3066_PLL_RATE(1008000000, 1, 84, 2), + RK3066_PLL_RATE(1007000000, 12, 1007, 2), RK3066_PLL_RATE( 912000000, 1, 76, 2), RK3066_PLL_RATE( 891000000, 8, 594, 2), RK3066_PLL_RATE( 888000000, 1, 74, 2), @@ -84,6 +85,7 @@ struct rockchip_pll_rate_table rk3288_pll_rates[] = { RK3066_PLL_RATE( 696000000, 1, 58, 2), RK3066_PLL_RATE( 600000000, 1, 50, 2), RK3066_PLL_RATE_BWADJ(594000000, 1, 198, 8, 1), + RK3066_PLL_RATE( 585000000, 4, 195, 2), RK3066_PLL_RATE( 552000000, 1, 46, 2), RK3066_PLL_RATE( 504000000, 1, 84, 4), RK3066_PLL_RATE( 500000000, 3, 125, 2), @@ -97,6 +99,7 @@ struct rockchip_pll_rate_table rk3288_pll_rates[] = { RK3066_PLL_RATE( 297000000, 2, 198, 8), RK3066_PLL_RATE( 252000000, 1, 84, 8), RK3066_PLL_RATE( 216000000, 1, 72, 8), + RK3066_PLL_RATE( 167000000, 3, 167, 8), RK3066_PLL_RATE( 148500000, 2, 99, 8), RK3066_PLL_RATE( 126000000, 1, 84, 16), RK3066_PLL_RATE( 48000000, 1, 64, 32),