[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <153573558557.93865.3835503209987304514@swboyd.mtv.corp.google.com>
Date: Fri, 31 Aug 2018 10:13:05 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: "Zhu, Yi Xin" <yixin.zhu@...ux.intel.com>,
Songjun Wu <songjun.wu@...ux.intel.com>,
chuanhua.lei@...ux.intel.com, hua.ma@...ux.intel.com,
qi-ming.wu@...el.com
Cc: linux-mips@...ux-mips.org, linux-clk@...r.kernel.org,
linux-serial@...r.kernel.org, devicetree@...r.kernel.org,
Michael Turquette <mturquette@...libre.com>,
linux-kernel@...r.kernel.org, Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>
Subject: Re: [PATCH v2 02/18] clk: intel: Add clock driver for Intel MIPS SoCs
Quoting Zhu, Yi Xin (2018-08-29 03:34:26)
> >>>> +}
> >>>> +
> >>>> +CLK_OF_DECLARE(intel_grx500_cgu, "intel,grx500-cgu", grx500_clk_init);
> >>> Any reason a platform driver can't be used instead of CLK_OF_DECLARE()?
> >> It provides CPU clock which is used in early boot stage.
> >>
> > Ok. What is the CPU clock doing in early boot stage? Some sort of timer
> > frequency? If the driver can be split into two pieces, one to handle the
> > really early stuff that must be in place to get timers up and running
> > and the other to register the rest of the clks that aren't critical from
> > a regular platform driver it would be good. That's preferred model if
> > something is super critical.
> >
> Just to make sure my approach is same as you think.
>
> In the driver, there's two clock registrations.
>
> - One through CLK_OF_DECLARE for early stage clocks.
>
> - The other via platform driver for the non-critical clocks.
You can use the same DT node for both parts, no need to split the node
into two and use syscon here.
Powered by blists - more mailing lists