[RFC] clk: rockchip: Fix CPLL setup issue

Sascha Hauer s.hauer at pengutronix.de
Mon Sep 29 01:44:27 PDT 2025


On Mon, Sep 29, 2025 at 11:29:04AM +0300, Alexander Shiyan wrote:
> Hello.
> 
> > On Fri, Sep 26, 2025 at 04:15:14PM +0300, Alexander Shiyan wrote:
> > > This is a dirty patch to solve the RK3588 CPLL clock setup issue.
> > > It's taken from the Rockchip U-Boot repository [1].
> > > Any ideas on how to improve it?
> > >
> > > [1] https://github.com/rockchip-linux/u-boot/commit/bd11beba4f997b62809d24eba30a8713c8bbeb81
> ...
> > > +     /* Barebox addition */
> > > +     if (pll->reg_base - pll->ctx->reg_base == 0x1a0) {
> > > +             /* Determine CPLL clock and patch clk_bisrintf_pllsrc_en back */
> > > +             writel(HIWORD_UPDATE(0, BIT(1), 0),
> > > +                    pll->ctx->reg_base + 0x84c);
> > > +     }
> >
> > Resetting this bit is not in the U-Boot patch you reference. Do we need
> > this?
> 
> Yes.
> https://github.com/rockchip-linux/u-boot/commit/7560cacdd3a68bb475f23b4249a98025c89064d4

Ah, alright, they fixed it in a later commit. I only looked at the
commit you referenced. So please reference both in the commit message.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list