Received: by 10.223.176.5 with SMTP id f5csp837707wra; Fri, 2 Feb 2018 06:59:12 -0800 (PST) X-Google-Smtp-Source: AH8x226mRx7wy7VrNoPLBuAaIRavkFkMPZ+EbPDIJWvcidnEXMOdtjAMre3ymYOqjY0zbZMY87S6 X-Received: by 2002:a17:902:aa02:: with SMTP id be2-v6mr15195534plb.121.1517583552757; Fri, 02 Feb 2018 06:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517583552; cv=none; d=google.com; s=arc-20160816; b=czdqd9eoeYVDbVcAgCBLMJu807Q5gmZ7AKjeGk9WyyuwizMI6jxbwDiujX2W3eyG2t F4ZVwezpbQ+KX1UXhPIsY7czA3HZcqjNRpx9j23eJDDcSS9QKGaqx2ixsmM7JbL1Bflq J07JnrotRDcHKGzJtMe0LKr36aZDffwXn3YyMDC4MxK3Vn/FQNMqVtZIQ6nD0n0oocBu dz4upjj+5TG4iUkjVMSOOApJM1j+tx1P8LFTAgfgpp3MpUEAT2XKyMVfp1SlpA0LG6Th VR5k2p0OR0iWH8fsZFqornEZyUSu9JKXKFKTsm6ZuRqWgD4UuqZJrMtoHEBIjySndDHN 2Gvg== 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=gTiW/8pAhkdTcqcoA8BXXLGXJyHYzEVA8uHJ/Cz3Emk=; b=rm7i+0lprgroJNnklQObj4KBKOOoZEv81OlBS48to970cOKzSEXZIRUHqJ+jJzp/3a UxRZANswz9vVV+2V9qMH0fRBPPyrgn9McXZbmxM4wwC4g/4FAj8ygIHu+4Ced5iMPbdS bgVneglXwO/UGmWrZdgAL7b3fAIH5m4zvDCUwM37xAVRNP3pOamOsu82ddy0ASO8Tkuq QRHMsJ7317j5g1TEbIL1txT9RP4667AZ8I1ZDb/zC+kjSC/EHpnfHusiGVw+sLy6GmaI H9cRLKi3hwEbzTY+GcrhbRXoGuWbX2ekPisKuqt0TXmNV8W5YHPDQ+glq7H46HVYVT1z 4iHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GiPkWjRP; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b59-v6si1907744plb.514.2018.02.02.06.58.57; Fri, 02 Feb 2018 06:59:12 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GiPkWjRP; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbeBBO5L (ORCPT + 99 others); Fri, 2 Feb 2018 09:57:11 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:40388 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbeBBO5F (ORCPT ); Fri, 2 Feb 2018 09:57:05 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w12Eu1I2004632; Fri, 2 Feb 2018 08:56:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1517583361; bh=Gab5spzpyAai73Jx8blZbfZqSZOo2iV5SWZOyFgrX9s=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=GiPkWjRPxZM052qB1A1wfnbPVQmfg+mFQn8xnExMwL4D93OfajTf7Y2EDIzYGBqlR lN5vK0+zpfESKe5Mr51S+FSnRtnGL/LwABXJ8iyt5Ci3ZjuhI7e+ZJTYxxqx+9g65l f0L0QC1beqNXXt7O87w6JFFjAJwDjA9b1HKKqmSs= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w12Eu1bC021474; Fri, 2 Feb 2018 08:56:01 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 2 Feb 2018 08:56:00 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 2 Feb 2018 08:56:00 -0600 Received: from [172.24.190.171] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w12Etu2H030570; Fri, 2 Feb 2018 08:55:57 -0600 Subject: Re: [PATCH v6 25/41] ARM: dm646x: add new clock init using common clock framework To: David Lechner , , , CC: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Kevin Hilman , Bartosz Golaszewski , Adam Ford , References: <1516468460-4908-1-git-send-email-david@lechnology.com> <1516468460-4908-26-git-send-email-david@lechnology.com> From: Sekhar Nori Message-ID: Date: Fri, 2 Feb 2018 20:25:56 +0530 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-26-git-send-email-david@lechnology.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 20 January 2018 10:44 PM, David Lechner wrote: > void __init dm646x_init_time(unsigned long ref_clk_rate, > unsigned long aux_clkin_rate) > { > +#ifdef CONFIG_COMMON_CLK > + void __iomem *pll1, *pll2, *psc; > + struct clk *clk; > + > + pll1 = ioremap(DAVINCI_PLL1_BASE, SZ_4K); > + pll2 = ioremap(DAVINCI_PLL2_BASE, SZ_4K); > + psc = ioremap(DAVINCI_PWR_SLEEP_CNTRL_BASE, SZ_4K); > + > + clk_register_fixed_rate(NULL, "ref_clk", NULL, 0, ref_clk_rate); > + clk_register_fixed_rate(NULL, "aux_clkin", NULL, 0, aux_clkin_rate); > + > + dm646x_pll_clk_init(pll1, pll2); > + > + dm646x_psc_clk_init(psc); > + /* no LPSC, always enabled; c.f. spruep9a */ > + clk = clk_register_fixed_factor(NULL, "timer2", "pll1_sysclk3", 0, 1, 1); > + clk_register_clkdev(clk, NULL, "davinci-wdt"); Lets move this to dm646x_pll_clk_init() and directly register to clkdev to pll1_sysclk3? Thanks, Sekhar