[U-Boot] [PATCH 28/41] net: fec_mxc: Add the init_clk_fec function

Peng Fan peng.fan at nxp.com
Fri Jun 15 06:46:48 UTC 2018


Hi Joe, Simon,

> -----Original Message-----
> From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
> Sent: 2018年6月13日 9:26
> To: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Peng Fan <peng.fan at nxp.com>; Stefano Babic <sbabic at denx.de>; Fabio
> Estevam <fabio.estevam at nxp.com>; u-boot <u-boot at lists.denx.de>
> Subject: Re: [U-Boot] [PATCH 28/41] net: fec_mxc: Add the init_clk_fec function
> 
> Hi,
> 
> On 12 June 2018 at 12:27, Joe Hershberger <joe.hershberger at ni.com> wrote:
> >
> > Hi Peng,
> >
> > On Mon, May 28, 2018 at 7:25 AM, Peng Fan <peng.fan at nxp.com> wrote:
> > > From: Ye Li <ye.li at nxp.com>
> > >
> > > When the power domain driver is enabled, we need to enable clocks
> > > after power domain on. So the clock settings can't set in
> > > board_init, needs to set them when the device is probed. Add this
> > > weak function in driver, that SoC codes can implement the clock settings.
> >
> > Can you not use clock infrastructure in DM to handle this. We don't
> > really want these direct calls out of drivers like this. Simon?
> >
> 
> Yes that is definitely bad.
> 
> Probably the easiest option is to add a clock driver.

I'll give a try to add a clock DM driver.

Thanks,
Peng.

> 
> Regards,
> Simon


More information about the U-Boot mailing list