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: 3643751 Return-Path: X-Original-To: patchwork-linux-omap@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 061F49F1EE for ; Thu, 13 Feb 2014 09:01:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 43D0420179 for ; Thu, 13 Feb 2014 09:01:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C1D220158 for ; Thu, 13 Feb 2014 09:01:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753439AbaBMJB3 (ORCPT ); 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: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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) {