[PATCH v1 1/1] driver: clk: tegra: init basic clocks on probe

Tom Rini trini at konsulko.com
Fri Dec 6 16:15:36 CET 2024


On Fri, Dec 06, 2024 at 05:09:19PM +0200, Svyatoslav Ryhel wrote:
> пт, 6 груд. 2024 р. о 16:20 Tom Rini <trini at konsulko.com> пише:
> >
> > On Fri, Dec 06, 2024 at 08:01:15AM +0200, Svyatoslav Ryhel wrote:
> >
> > > In case DM drivers probe earlier than board clock setup is done
> > > init of basic clocks should be done in CAR driver probe as well.
> > > Add it to avoid possible clock related problems.
> > >
> > > Signed-off-by: Svyatoslav Ryhel <clamor95 at gmail.com>
> > > ---
> > >  drivers/clk/tegra/tegra-car-clk.c | 3 +++
> > >  1 file changed, 3 insertions(+)
> > >
> > > diff --git a/drivers/clk/tegra/tegra-car-clk.c b/drivers/clk/tegra/tegra-car-clk.c
> > > index 9078253d100..4f8405328a3 100644
> > > --- a/drivers/clk/tegra/tegra-car-clk.c
> > > +++ b/drivers/clk/tegra/tegra-car-clk.c
> > > @@ -111,6 +111,9 @@ static int tegra_car_clk_probe(struct udevice *dev)
> > >  {
> > >       debug("%s(dev=%p)\n", __func__, dev);
> > >
> > > +     clock_init();
> > > +     clock_verify();
> > > +
> > >       return 0;
> > >  }
> > >
> >
> > Is this called before arch/arm/mach-tegra/board2.c::board_init()?
> > Thanks.
> 
> It does if the device uses pmic with dm driver and has any of pmic
> regulators set as always-on or boot-on

Ah, OK. I'll wait and see what Simon has to say next, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20241206/adb2b582/attachment.sig>


More information about the U-Boot mailing list