From patchwork Wed Aug 28 13:39:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas C Sajjan X-Patchwork-Id: 19561 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0D9E6248D3 for ; Wed, 28 Aug 2013 13:40:17 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf753898qac.8 for ; Wed, 28 Aug 2013 06:40:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=GmkxHYXss9lX/AyVMgipH7Pk1FG+NrGf40PwJitSJwQ=; b=nsnvo8GiWnxYVvC6xAkVpJNqPpc/hCfm/1ZdxDAggXV8wusjAmbzgPjS+42e3n01KB nw4HBHOOyJzoP4PrvA0UWmN1gdfdrnrPWyGnnol7Q9vGsBELXT86fPMNrsOwXakvK4wd lGC5M5/Mpo4N9g3k2AgGOXsfoV5B/eUNwN7u4iYu6tuoctDk9jxzd5YtonuWG1awQ/tT O2bItrnd2O30BRUShOlDSPeqYjGUK1tmDyFNrVX5xTq5NDKvkARVn1qwJC0e1alrSNo+ uYVo2j2WJ/1VdR+9LdM8um1JQGmCG0be08qALU0sWsQAOxClyyxMmYOsRHVzd7AMyTkj RmJw== X-Received: by 10.236.31.2 with SMTP id l2mr9909840yha.36.1377697216858; Wed, 28 Aug 2013 06:40:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.108.7 with SMTP id hg7ls339852qeb.95.gmail; Wed, 28 Aug 2013 06:40:16 -0700 (PDT) X-Received: by 10.52.96.100 with SMTP id dr4mr21287082vdb.17.1377697216622; Wed, 28 Aug 2013 06:40:16 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id xe6si6523468vdb.35.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 06:40:16 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id m1so4122367ves.41 for ; Wed, 28 Aug 2013 06:40:16 -0700 (PDT) X-Gm-Message-State: ALoCoQktzGiK7V5IKf4WGtz6v3bGUzvZsIbFGSWGnGNwFX6taxRigbKojNq5JsaSf0bmyE/3Zwgs X-Received: by 10.52.164.16 with SMTP id ym16mr745976vdb.32.1377697216527; Wed, 28 Aug 2013 06:40:16 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp356449vcz; Wed, 28 Aug 2013 06:40:15 -0700 (PDT) X-Received: by 10.68.134.202 with SMTP id pm10mr27815338pbb.2.1377697214907; Wed, 28 Aug 2013 06:40:14 -0700 (PDT) Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by mx.google.com with ESMTPS id to1si20738081pab.51.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 06:40:14 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.45 is neither permitted nor denied by best guess record for domain of vikas.sajjan@linaro.org) client-ip=209.85.160.45; Received: by mail-pb0-f45.google.com with SMTP id mc17so6281166pbc.32 for ; Wed, 28 Aug 2013 06:40:14 -0700 (PDT) X-Received: by 10.66.161.38 with SMTP id xp6mr15181601pab.145.1377697214402; Wed, 28 Aug 2013 06:40:14 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id fk4sm33976049pab.23.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 06:40:13 -0700 (PDT) From: Vikas Sajjan To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, t.figa@samsung.com, mturquette@linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org, joshi@samsung.com Subject: [PATCH v2 1/2] clk: samsung: Add GPLL freq table for exynos5250 SoC Date: Wed, 28 Aug 2013 19:09:57 +0530 Message-Id: <1377697198-19097-2-git-send-email-vikas.sajjan@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1377697198-19097-1-git-send-email-vikas.sajjan@linaro.org> References: <1377697198-19097-1-git-send-email-vikas.sajjan@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vikas.sajjan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Adds GPLL freq table for exynos5250 SoC. Signed-off-by: Vikas Sajjan --- drivers/clk/samsung/clk-exynos5250.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index 00a80e4..6b7ad2a 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -494,6 +494,21 @@ static struct samsung_gate_clock exynos5250_gate_clks[] __initdata = { GATE(g2d, "g2d", "aclk200", GATE_IP_ACP, 3, 0, 0), }; +static struct samsung_pll_rate_table gpll_24mhz_tbl[] __initdata = { + /* sorted in descending order */ + /* PLL_35XX_RATE(rate, m, p, s) */ + PLL_35XX_RATE(1400000000, 175, 3, 0), /* for 466MHz */ + PLL_35XX_RATE(800000000, 100, 3, 0), /* for 400MHz, 200MHz */ + PLL_35XX_RATE(666857142, 389, 7, 1), /* for 333MHz, 222MHz, 166MHz */ + PLL_35XX_RATE(600000000, 200, 4, 1), /* for 300MHz, 200MHz, 150MHz */ + PLL_35XX_RATE(533000000, 533, 12, 1), /* for 533MHz, 266MHz, 133MHz */ + PLL_35XX_RATE(450000000, 450, 12, 1), /* for 450Hz */ + PLL_35XX_RATE(400000000, 100, 3, 1), + PLL_35XX_RATE(333000000, 222, 4, 2), + PLL_35XX_RATE(200000000, 100, 3, 2), + { }, +}; + static struct samsung_pll_rate_table vpll_24mhz_tbl[] __initdata = { /* sorted in descending order */ /* PLL_36XX_RATE(rate, m, p, s, k) */ @@ -561,8 +576,10 @@ static void __init exynos5250_clk_init(struct device_node *np) samsung_clk_register_mux(exynos5250_pll_pmux_clks, ARRAY_SIZE(exynos5250_pll_pmux_clks)); - if (_get_rate("fin_pll") == 24 * MHZ) + if (_get_rate("fin_pll") == 24 * MHZ) { exynos5250_plls[epll].rate_table = epll_24mhz_tbl; + exynos5250_plls[gpll].rate_table = gpll_24mhz_tbl; + } if (_get_rate("mout_vpllsrc") == 24 * MHZ) exynos5250_plls[vpll].rate_table = vpll_24mhz_tbl;