From patchwork Fri May 24 04:52: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: 17186 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D25F423976 for ; Fri, 24 May 2013 04:54:27 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id p13sf2542344vbe.8 for ; Thu, 23 May 2013 21:53:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=WSEEUftFT0rQK6eS+dmrEH+Ww1KI5iutapczdinIBNk=; b=kMYsnK5dDIQj9b99VfaXBGnzP3pzRXmMxCQeavxIEynAD76GAKidh4Ocop7iYqmEB2 7MATRP3bzU+zaUcdLtlXSuQLccjiPIFKG94FVOV97LZiGcW/toCO0zL4Gu023mRdDNu/ 1Xyp6WckUEwwAFMIEoRGzCon0RUJZigKPuMYLpEewS6QucBO1tDgmtPDenr5VWQ9n9Ql rjAB7j13zGtEozFzKZrKMd7r4HwfuOXqlzW+lY5N0OHrgzJvCS55mkTgTj8uMDWPxWRm qbYrErFhLkH01kr76mMKdAxwsRyWF2RP556rl2BlZgYkjjXFOdI+pUvRBHo/IcDCVeyn zm2Q== X-Received: by 10.224.215.194 with SMTP id hf2mr7826495qab.0.1369371211258; Thu, 23 May 2013 21:53:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.18.104 with SMTP id v8ls1849387qed.65.gmail; Thu, 23 May 2013 21:53:31 -0700 (PDT) X-Received: by 10.59.2.199 with SMTP id bq7mr7282796ved.51.1369371211026; Thu, 23 May 2013 21:53:31 -0700 (PDT) Received: from mail-ve0-x231.google.com (mail-ve0-x231.google.com [2607:f8b0:400c:c01::231]) by mx.google.com with ESMTPS id gr7si8424791vdc.64.2013.05.23.21.53.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 21:53:31 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::231 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::231; Received: by mail-ve0-f177.google.com with SMTP id ox1so3044232veb.8 for ; Thu, 23 May 2013 21:53:30 -0700 (PDT) X-Received: by 10.58.250.66 with SMTP id za2mr7357175vec.56.1369371210849; Thu, 23 May 2013 21:53:30 -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.126.138 with SMTP id c10csp82658vcs; Thu, 23 May 2013 21:53:30 -0700 (PDT) X-Received: by 10.66.26.52 with SMTP id i20mr10322809pag.209.1369371210048; Thu, 23 May 2013 21:53:30 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id qu10si11200445pbc.282.2013.05.23.21.53.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 21:53:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of vikas.sajjan@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id rl6so3863142pac.28 for ; Thu, 23 May 2013 21:53:29 -0700 (PDT) X-Received: by 10.66.51.165 with SMTP id l5mr9872409pao.73.1369371209664; Thu, 23 May 2013 21:53:29 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id uv1sm14600412pbc.16.2013.05.23.21.53.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 May 2013 21:53:28 -0700 (PDT) From: Vikas Sajjan To: yadi.brar01@gmail.com, linux-samsung-soc@vger.kernel.org Cc: dianders@chromium.org, tomasz.figa@gmail.com, kgene.kim@samsung.com, mturquette@linaro.org, thomas.abraham@linaro.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 5/5] clk: samsung: Add EPLL and VPLL freq table for exynos5250 SoC Date: Fri, 24 May 2013 10:22:57 +0530 Message-Id: <1369371177-5413-6-git-send-email-vikas.sajjan@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369371177-5413-1-git-send-email-vikas.sajjan@linaro.org> References: <1369371177-5413-1-git-send-email-vikas.sajjan@linaro.org> X-Gm-Message-State: ALoCoQkgVg9s+oj2JEZHHXGwpJVqh1oR7ue3JkwPN2AxgD+TG1Y/xrT9iPEG3LI+esiq6U7/bx02 X-Original-Sender: vikas.sajjan@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::231 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 the EPLL and VPLL freq table for exynos5250 SoC. Signed-off-by: Vikas Sajjan --- drivers/clk/samsung/clk-exynos5250.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos5250.c b/drivers/clk/samsung/clk-exynos5250.c index ddf10ca..00d1fa6 100644 --- a/drivers/clk/samsung/clk-exynos5250.c +++ b/drivers/clk/samsung/clk-exynos5250.c @@ -469,6 +469,21 @@ static __initdata struct of_device_id ext_clk_match[] = { { }, }; +static struct samsung_pll_rate_table vpll_tbl[] = { + PLL_36XX_RATE(70500000, 2, 94, 4, 0), +}; + +static struct samsung_pll_rate_table epll_tbl[] = { + PLL_36XX_RATE(192000000, 48, 3, 1, 0), + PLL_36XX_RATE(180000000, 45, 3, 1, 0), + PLL_36XX_RATE(73728000, 73, 3, 3, 47710), + PLL_36XX_RATE(67737600, 90, 4, 3, 20762), + PLL_36XX_RATE(49152000, 49, 3, 3, 9961), + PLL_36XX_RATE(45158400, 45, 3, 3, 10381), + PLL_36XX_RATE(180633600, 45, 3, 1, 10381), + PLL_36XX_RATE(32768000, 131, 3, 5, 4719), +}; + /* register exynox5250 clocks */ void __init exynos5250_clk_init(struct device_node *np) { @@ -501,9 +516,9 @@ void __init exynos5250_clk_init(struct device_node *np) cpll = samsung_clk_register_pll35xx("fout_cpll", "fin_pll", reg_base + 0x10020, NULL, 0); epll = samsung_clk_register_pll36xx("fout_epll", "fin_pll", - reg_base + 0x10030, NULL, 0); + reg_base + 0x10030, epll_tbl, ARRAY_SIZE(epll_tbl)); vpll = samsung_clk_register_pll36xx("fout_vpll", "mout_vpllsrc", - reg_base + 0x10040, NULL, 0); + reg_base + 0x10040, vpll_tbl, ARRAY_SIZE(vpll_tbl)); samsung_clk_register_fixed_rate(exynos5250_fixed_rate_clks, ARRAY_SIZE(exynos5250_fixed_rate_clks));