Message ID | 1394197751-28984-2-git-send-email-rogerq@ti.com |
---|---|
State | Accepted |
Commit | 94e72ae5dbb1aff59791e6f96e2f0416b8a82257 |
Headers | show
Return-Path: <patchwork-forward+bncBD45J6OZZMOBB6MK46MAKGQE3UL5POA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 693BB203C3 for <linaro@patches.linaro.org>; Fri, 7 Mar 2014 13:11:22 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf10066394pbc.8 for <linaro@patches.linaro.org>; Fri, 07 Mar 2014 05:11:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:mime-version:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=lV5aZrWn3QthyCZkxtAb4ZBEHRJ1vufiRfSYvodSinU=; b=ZXLtmSx/3Gh35Js0c4xOmxyOwQWqnqz1kGKG979E+zRJZILnGPjIx6MNjfq4Fiomoh UTgq3BaXlqomOAvqIZrAHuobfHUL6wnBHnUHIGuU9+W9sNzLlTGKjHdV92QOX4EWc3Bi RyiM12ZfNpE4CjzMSnA9Z4I2+/ENDaBNH/owapGhAw3Vx68kU7V/llT2Kq2HATzYRuqB k7CEhkYRMDpW1zaW3gyfDOdKmywl7Zlf9/zvy2jfmkDb0JsPoPE4Hs1GJnMKYDH2Byx4 Gtcxf7GmIJ82aQwCbmdTwPc35OjCouBYWKRmDJDdPeaeDjJ4jkWaZDdmABxjlxfhoRVX zLbg== X-Gm-Message-State: ALoCoQmub7Tb35tIyi4U7BJlPGH/h+FvCRDKheDgqfSJ0+6iU4nMtzt5btjW4JG23KCksY5NXXW/ X-Received: by 10.68.216.230 with SMTP id ot6mr7910564pbc.3.1394197881701; Fri, 07 Mar 2014 05:11:21 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.161 with SMTP id o30ls1180551qga.94.gmail; Fri, 07 Mar 2014 05:11:21 -0800 (PST) X-Received: by 10.52.29.113 with SMTP id j17mr12106418vdh.22.1394197881541; Fri, 07 Mar 2014 05:11:21 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id z15si2050706vcj.111.2014.03.07.05.11.21 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Mar 2014 05:11:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.172 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.172; Received: by mail-ve0-f172.google.com with SMTP id jx11so4190939veb.31 for <patchwork-forward@linaro.org>; Fri, 07 Mar 2014 05:11:21 -0800 (PST) X-Received: by 10.52.108.228 with SMTP id hn4mr498989vdb.43.1394197881455; Fri, 07 Mar 2014 05:11:21 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp113717vck; Fri, 7 Mar 2014 05:11:20 -0800 (PST) X-Received: by 10.194.175.66 with SMTP id by2mr18718556wjc.59.1394197880252; Fri, 07 Mar 2014 05:11:20 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id x3si286634wje.119.2014.03.07.05.11.19 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Mar 2014 05:11:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLuXN-0006p7-2L; Fri, 07 Mar 2014 13:10:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLuXE-0008W6-2e; Fri, 07 Mar 2014 13:09:56 +0000 Received: from bear.ext.ti.com ([192.94.94.41]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLuX2-0008TK-0J for linux-arm-kernel@lists.infradead.org; Fri, 07 Mar 2014 13:09:45 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s27D9Lqp006663; Fri, 7 Mar 2014 07:09:21 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s27D9LPF005348; Fri, 7 Mar 2014 07:09:21 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 7 Mar 2014 07:09:20 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s27D9Een003003; Fri, 7 Mar 2014 07:09:17 -0600 From: Roger Quadros <rogerq@ti.com> To: <balbi@ti.com>, <tony@atomide.com> Subject: [PATCH 1/8] CLK: ti: dra7: Initialize USB_DPLL Date: Fri, 7 Mar 2014 15:09:04 +0200 Message-ID: <1394197751-28984-2-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394197751-28984-1-git-send-email-rogerq@ti.com> References: <1394197751-28984-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140307_080944_174710_8547913E X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [192.94.94.41 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: devicetree@vger.kernel.org, george.cherian@ti.com, Mike Turquette <mturquette@linaro.org>, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kishon@ti.com, Tero Kristo <t-kristo@ti.com>, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rogerq@ti.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 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 Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c index 9977653..f89f3c2 100644 --- a/drivers/clk/ti/clk-7xx.c +++ b/drivers/clk/ti/clk-7xx.c @@ -18,6 +18,7 @@ #define DRA7_DPLL_ABE_DEFFREQ 361267200 #define DRA7_DPLL_GMAC_DEFFREQ 1000000000 +#define DRA7_DPLL_USB_DEFFREQ 960000000 static struct ti_dt_clk dra7xx_clks[] = { @@ -328,5 +329,15 @@ int __init dra7xx_dt_clk_init(void) if (rc) pr_err("%s: failed to configure GMAC DPLL!\n", __func__); + dpll_ck = clk_get_sys(NULL, "dpll_usb_ck"); + rc = clk_set_rate(dpll_ck, DRA7_DPLL_USB_DEFFREQ); + if (rc) + pr_err("%s: failed to configure USB DPLL!\n", __func__); + + dpll_ck = clk_get_sys(NULL, "dpll_usb_m2_ck"); + rc = clk_set_rate(dpll_ck, DRA7_DPLL_USB_DEFFREQ/2); + if (rc) + pr_err("%s: failed to set USB_DPLL M2 OUT\n", __func__); + return rc; }
USB_DPLL must be initialized and locked at boot so that USB modules can work. Also program USB_DLL_M2 output to half rate. CC: Mike Turquette <mturquette@linaro.org> CC: Tero Kristo <t-kristo@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> --- drivers/clk/ti/clk-7xx.c | 11 +++++++++++ 1 file changed, 11 insertions(+)