From patchwork Thu Feb 13 09:00:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 24575 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0A181202B2 for ; Thu, 13 Feb 2014 09:01:33 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id z6sf23703133yhz.2 for ; Thu, 13 Feb 2014 01:01:33 -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:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=0bTV0RdZGn7kaV5cEMSzoeTOst5K7XPaoQwMTHH0f0Q=; b=jZ4T7FmIJIq69AMIQul08Q+x0BF/ijV48hfDLuWwoHCACMGTStvNbvGBm8GUPf4ve0 Fhwg506Y15+mAoL2SGv/g1haOx085zwIFlDtD1A0XTKj6cFurgzUm+Cfw25UN2FMWS+O 8PllogE/G7pNZu6GU6kXBPSoSb71J/6oZGIzfV233x0j/2c4khmQ3EuykmtdQs5ELmXn ELRbT3aXxmjRbEHCeuzrVgg5hR1pJawTibBVB7bA4NYXiSgBDd3cLD8mpXnPmCsHO2vd k+/AYFdQ8chH6tCqxQFBJaIGw62Nf1IXNxsyvACU7XNyolNOf9MHYSXiB1O1vB3pP7nL kRHA== X-Gm-Message-State: ALoCoQkNgCXkiahivDT0sGxgqf74Kfzw7nUwG6VicvGMDfMoCqZxGTmT8Ly4UYIZaopCWKJU/oUf X-Received: by 10.224.163.71 with SMTP id z7mr130252qax.5.1392282093117; Thu, 13 Feb 2014 01:01:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.73 with SMTP id i67ls3323520qgd.97.gmail; Thu, 13 Feb 2014 01:01:33 -0800 (PST) X-Received: by 10.58.90.202 with SMTP id by10mr161331veb.6.1392282092969; Thu, 13 Feb 2014 01:01:32 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id uw4si432031vdc.92.2014.02.13.01.01.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 01:01:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id im17so8015047vcb.33 for ; Thu, 13 Feb 2014 01:01:32 -0800 (PST) X-Received: by 10.52.229.133 with SMTP id sq5mr91629vdc.45.1392282092868; Thu, 13 Feb 2014 01:01:32 -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.174.196 with SMTP id u4csp10088vcz; Thu, 13 Feb 2014 01:01:32 -0800 (PST) X-Received: by 10.68.14.130 with SMTP id p2mr400602pbc.17.1392282091955; Thu, 13 Feb 2014 01:01:31 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz8si1352577pac.56.2014.02.13.01.01.31; Thu, 13 Feb 2014 01:01:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753439AbaBMJB3 (ORCPT + 5 others); Thu, 13 Feb 2014 04:01:29 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:58379 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbaBMJB3 (ORCPT ); Thu, 13 Feb 2014 04:01:29 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1D918Kc032749; Thu, 13 Feb 2014 03:01:08 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1D918OU031936; Thu, 13 Feb 2014 03:01:08 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Thu, 13 Feb 2014 03:01:08 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1D911bl021319; Thu, 13 Feb 2014 03:01:07 -0600 From: Tero Kristo To: , CC: , Subject: [PATCH 3/4] clk: ti: add support for default-rate property from DT Date: Thu, 13 Feb 2014 11:00:47 +0200 Message-ID: <1392282048-6284-4-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392282048-6284-1-git-send-email-t-kristo@ti.com> References: <1392282048-6284-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: t-kristo@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , default-rate property can now be used to define default rates for clocks, which get configured during boot. Signed-off-by: Tero Kristo Acked-by: Tony Lindgren --- arch/arm/mach-omap2/prm_common.c | 2 ++ drivers/clk/ti/clk.c | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index b4c4ab9..4703545 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c @@ -528,5 +528,7 @@ int __init of_prcm_init(void) ti_dt_clockdomains_setup(); + of_clk_set_init_rates(); + return 0; } diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index b1a6f71..23998b7 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -156,6 +156,7 @@ void ti_dt_clk_init_provider(struct device_node *parent, int index) clk_init_cb = (of_clk_init_cb_t)match->data; pr_debug("%s: initializing: %s\n", __func__, np->name); clk_init_cb(np); + of_clk_parse_init_rate(np, NULL); } list_for_each_entry_safe(retry, tmp, &retry_list, link) {