Received: by 10.223.176.46 with SMTP id f43csp3158535wra; Mon, 22 Jan 2018 09:17:39 -0800 (PST) X-Google-Smtp-Source: AH8x2255VP14P32WNTYxmqAVrIoD23n54leOU8J4isxX1GKinhp+HDEoMuyMuWELEQFcU4Z0Y2qm X-Received: by 10.107.147.87 with SMTP id v84mr9103096iod.293.1516641459164; Mon, 22 Jan 2018 09:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516641459; cv=none; d=google.com; s=arc-20160816; b=xph7zHtPq5fvq3aYfQOCuFIWI0kPKC4MK9k9BDOtHMy1UA3J/5L/8AvQNPmlbGEyu9 nxxgM6LH9ZU1ykAsmVjWeV1tChWfLmjw3H46dQ2AjHglaM8WU3OBQ4h2WfBDx3Q8eIzr ue6QDY/jZ4mYSPiPUK3WKU+ciEZH8g2lG2MyfGlXTP105Rj/bxDl5ObzihTL8Si0HLQT gNg/Gq3uBMjqEHBJnjucN784YH5ov2BC1KpAGEiNu4RwBH/4goXmsdPv2f7yx65/FHDa k4CVeD07KP3eBNhGx3IR+KC4IyTbrKzCA038ee5coxWnpD+XYdoLjzWGHXhwQ3p6jT+j uogw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=DARIHo5Z02H/2Mt/bd7pTOFs5MZooClF0iEZmf+PCMM=; b=xanZCQeGz/J3bFek6uevqvoLD3qUxGJczN3KBJF4uYSOo0cSJ8LzFS80KKmaJDuNVl M7S/j4lmupD9r0umzGmRSxACOFyw9z8YOl0J467HhmvS0WOFcJZoqBiw1n7oHh+fC11H 1G0gyPJIspVyCE6OsuU/etM+mUZ8X37yYhKbh3FjHSFifaH7CYAPBt5hq4y6Bwdlyj+X nXTlvnDZmVUGf4Az3U7OMud3ri0hjbB7ne545apz2MZSYDUo3h4g45JT25loINmiGlpL T1QRW5jr3UNurLtr0fDUizFjKuu7BjE0qsFLoM0aRN7C+WLGMaVW2BgWLMyiTpFOkTel uVHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=oGwSIAV6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si12252309iof.333.2018.01.22.09.17.26; Mon, 22 Jan 2018 09:17:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=oGwSIAV6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751233AbeAVRPz (ORCPT + 99 others); Mon, 22 Jan 2018 12:15:55 -0500 Received: from vern.gendns.com ([206.190.152.46]:52497 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbeAVRPx (ORCPT ); Mon, 22 Jan 2018 12:15:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DARIHo5Z02H/2Mt/bd7pTOFs5MZooClF0iEZmf+PCMM=; b=oGwSIAV6US1CE43IkTeOR1R4HI JWIfKNQyzVLb1P3IHtmY/ylWJf31FXAxU1QM+WfhvgHnuw5F1ufle4hAwTaQYC9aVyynhZBIQtzqk Rzx6JxkiHGJfG8tdj7nsq08NiMYzMfcGtn/aAAXMAIxPSP8IrDVVf+cX/A7mdsvVcawReBvGWc2rC rPDHWV0adpgsBEGfRc8Jb/EZJBfIEu2oRwCnbn+Y+g7eieU4QBBaSTRy3lBcQw9iCcLntkxNwdVwq n7yAlwgZ+7rTIFgFiTpYd1jc6xdC0BVWd3tLDMMYwG6OABN9+0yiVhTtNDyAwoaEqw4+AmDocm6b0 Gn0+/Lfg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:33186 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1edfgl-003AaL-CX; Mon, 22 Jan 2018 12:15:19 -0500 Subject: Re: [PATCH v6 20/41] ARM: da830: add new clock init using common clock framework To: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org References: <1516468460-4908-1-git-send-email-david@lechnology.com> <1516468460-4908-21-git-send-email-david@lechnology.com> From: David Lechner Message-ID: Date: Mon, 22 Jan 2018 11:15:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1516468460-4908-21-git-send-email-david@lechnology.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/20/2018 11:13 AM, David Lechner wrote: > This adds the new board-specific clock init in mach-davinci/da830.c > using the new common clock framework drivers. > > The #ifdefs are needed to prevent compile errors until the entire > ARCH_DAVINCI is converted. > > Also clean up the #includes since we are adding some here. > > Signed-off-by: David Lechner > --- > > v6 changes: > - add blank lines between function calls > - include da8xx_register_cfgchip() > > arch/arm/mach-davinci/da830.c | 49 +++++++++++++++++++++++++++++++++++++------ > 1 file changed, 43 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c ... > + clk = clk_register_fixed_factor(NULL, "i2c0", "pll0_aux_clk", 0, 1, 1); Should be "pll0_auxclk" instead of "pll0_aux_clk" here and 2 more below. > + clk_register_clkdev(clk, NULL, "i2c_davinci.1"); > + > + clk = clk_register_fixed_factor(NULL, "timer0", "pll0_aux_clk", 0, 1, 1); > + clk_register_clkdev(clk, "timer0", NULL); > + > + clk = clk_register_fixed_factor(NULL, "timer1", "pll0_aux_clk", 0, 1, 1); > + clk_register_clkdev(clk, NULL, "davinci-wdt"); > + > + clk = clk_register_fixed_factor(NULL, "rmii", "pll0_sysclk7", 0, 1, 1); > + clk_register_clkdev(clk, "rmii", NULL); > +#else > da8xx_register_cfgchip(); > davinci_clk_init(da830_clks); > +#endif > davinci_timer_init(); > } >