From patchwork Fri Feb 28 09:22:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 25520 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D881203C5 for ; Fri, 28 Feb 2014 09:24:34 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id o6sf13352466oag.6 for ; Fri, 28 Feb 2014 01:24:34 -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=l5wBwKoSGhSst1SW7fCWfJWju9WQkbK4ZkLroOuxhKU=; b=RHJ3MV3cz+0KTEVEFSu0JEFfsJytSXNCKYg5XHCgZspUWTj5ubHDIiC4HWGg+bxC15 vdk0+7Wj/8xs/XlSpV/H4P8U/eKpc2o8rCJfmsLvIo1HlKrW0x9kCX34swmW/vsjAfgW 6UiBfRxqE5FGFipsZ3J5R3Mdhoe69IYj3azEpZA1PqP/9hV/Skyn4PC3O/s9gw8Re51I g2iHjMnhbI5m+rz+z+exyoN9pHZtk4g6AfWDElBvgnRsQ+MEGjOwa0jXk38a0CNFQKLX dg+W3KwMz0V4Ig22m4UtUy7Pd7ACviRM05J6DkbldSqhR83t3khqXJvaaExIYIFJbecn xvFw== X-Gm-Message-State: ALoCoQkNHK1/q3AwunvxoPDi43vkvqaiTgqeheJerYplJCYxg93KrUiH6p2LaxByGlJxd4v4dwSp X-Received: by 10.50.114.134 with SMTP id jg6mr1270303igb.2.1393579473736; Fri, 28 Feb 2014 01:24:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.196 with SMTP id m62ls1156813qge.11.gmail; Fri, 28 Feb 2014 01:24:33 -0800 (PST) X-Received: by 10.52.29.113 with SMTP id j17mr12449114vdh.22.1393579473610; Fri, 28 Feb 2014 01:24:33 -0800 (PST) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id fi2si399727vdb.114.2014.02.28.01.24.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Feb 2014 01:24:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id cz12so458629veb.35 for ; Fri, 28 Feb 2014 01:24:33 -0800 (PST) X-Received: by 10.221.53.194 with SMTP id vr2mr59360vcb.41.1393579473526; Fri, 28 Feb 2014 01:24:33 -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.130.193 with SMTP id u1csp40808vcs; Fri, 28 Feb 2014 01:24:33 -0800 (PST) X-Received: by 10.66.248.227 with SMTP id yp3mr2321005pac.116.1393579472678; Fri, 28 Feb 2014 01:24:32 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zj6si1306859pac.233.2014.02.28.01.24.31; Fri, 28 Feb 2014 01:24:32 -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 S1751514AbaB1JYa (ORCPT + 5 others); Fri, 28 Feb 2014 04:24:30 -0500 Received: from comal.ext.ti.com ([198.47.26.152]:40367 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbaB1JY2 (ORCPT ); Fri, 28 Feb 2014 04:24:28 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id s1S9O6ph028302; Fri, 28 Feb 2014 03:24:06 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1S9O6MB002794; Fri, 28 Feb 2014 03:24:06 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Fri, 28 Feb 2014 03:24:03 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s1S9NhsD015360; Fri, 28 Feb 2014 03:24:01 -0600 From: Tero Kristo To: , , , , CC: , Subject: [PATCH 07/12] CLK: TI: interface: add support for omap2430 specific interface clock Date: Fri, 28 Feb 2014 11:22:59 +0200 Message-ID: <1393579384-23440-8-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393579384-23440-1-git-send-email-t-kristo@ti.com> References: <1393579384-23440-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.128.176 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: , OMAP2430 I2CHS modules require specific hardware ops to be used, so added a new compatible string for this. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/interface.txt | 2 ++ arch/arm/mach-omap2/clock.h | 1 - drivers/clk/ti/interface.c | 7 +++++++ include/linux/clk/ti.h | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/ti/interface.txt b/Documentation/devicetree/bindings/clock/ti/interface.txt index 064e8ca..3111a40 100644 --- a/Documentation/devicetree/bindings/clock/ti/interface.txt +++ b/Documentation/devicetree/bindings/clock/ti/interface.txt @@ -21,6 +21,8 @@ Required properties: "ti,omap3-dss-interface-clock" - interface clock with DSS specific HW handling "ti,omap3-ssi-interface-clock" - interface clock with SSI specific HW handling "ti,am35xx-interface-clock" - interface clock with AM35xx specific HW handling + "ti,omap2430-interface-clock" - interface clock with OMAP2430 specific HW + handling - #clock-cells : from common clock binding; shall be set to 0 - clocks : link to phandle of parent clock - reg : base address for the control register diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index 7b7a03c..bb67238 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h @@ -265,7 +265,6 @@ extern const struct clk_hw_omap_ops clkhwops_omap3430es2_hsotgusb_wait; extern const struct clk_hw_omap_ops clkhwops_am35xx_ipss_module_wait; extern const struct clk_hw_omap_ops clkhwops_apll54; extern const struct clk_hw_omap_ops clkhwops_apll96; -extern const struct clk_hw_omap_ops clkhwops_omap2430_i2chs_wait; /* clksel_rate blocks shared between OMAP44xx and AM33xx */ extern const struct clksel_rate div_1_0_rates[]; diff --git a/drivers/clk/ti/interface.c b/drivers/clk/ti/interface.c index 320a2b1..4b1c336 100644 --- a/drivers/clk/ti/interface.c +++ b/drivers/clk/ti/interface.c @@ -123,3 +123,10 @@ static void __init of_ti_am35xx_interface_clk_setup(struct device_node *node) } CLK_OF_DECLARE(ti_am35xx_interface_clk, "ti,am35xx-interface-clock", of_ti_am35xx_interface_clk_setup); + +static void __init of_ti_omap2430_interface_clk_setup(struct device_node *node) +{ + _of_ti_interface_clk_setup(node, &clkhwops_omap2430_i2chs_wait); +} +CLK_OF_DECLARE(ti_omap2430_interface_clk, "ti,omap2430-interface-clock", + of_ti_omap2430_interface_clk_setup); diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index ddac0d0..4a05d97 100644 --- a/include/linux/clk/ti.h +++ b/include/linux/clk/ti.h @@ -308,6 +308,7 @@ static inline void of_ti_clk_deny_autoidle_all(void) { } #endif extern const struct clk_hw_omap_ops clkhwops_omap2xxx_dpll; +extern const struct clk_hw_omap_ops clkhwops_omap2430_i2chs_wait; extern const struct clk_hw_omap_ops clkhwops_omap3_dpll; extern const struct clk_hw_omap_ops clkhwops_omap4_dpllmx; extern const struct clk_hw_omap_ops clkhwops_wait;