Re: Quartz64 (RK3566) clock driver and patches.

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Sat, 24 Jul 2021 13:56:00 +0200
On Sat, 24 Jul 2021 13:26:07 +0200
Søren Schmidt <soren.schmidt_at_gmail.com> wrote:

> Hi 
> 
> As promised, the clk driver I did for the RK3566 used on the Pine Quartz64 board:
> 
> https://people.freebsd.org/~sos/Q64/ <https://people.freebsd.org/~sos/Q64/>
> 
> Included the buld script, kernel config and u-boot I have used to get there.

 That will be much easier to review on phab, or even github PR or git
send-email, basically anything else that this raw diff.
 I've only glance at it a bit and swa this :
Index: sys/arm64/rockchip/clk/rk_clk_fract.c
===================================================================
--- sys/arm64/rockchip/clk/rk_clk_fract.c	(revision 570)
+++ sys/arm64/rockchip/clk/rk_clk_fract.c	(working copy)
_at__at_ -191,8 +191,12 _at__at_
 	if (sc->denominator == 0) {
 		printf("%s: %s denominator is zero!\n",
clknode_get_name(clk), __func__);
+#if 0
 		*freq = 0;
 		return(EINVAL);
+#else
+		return (0);
+#endif

 which I don't understand why it's needed.
 I won't look/comment at all the clocks definition in this form.

> I still use the ?all inclusive? DTS and not the shiny new ?official? one (last wont boot :) ) thats for later?

 What does that mean ?

> Next on is a driver for the RK817 PMIC used on the quartz64?
> 
> Enjoy!
> 
> --
> Søren Schmidt
> sos_at_deepcore.dk / sos_at_freebsd.org
> "So much code to hack, so little time"

 Cheers,

-- 
Emmanuel Vadot <manu_at_bidouilliste.com> <manu_at_freebsd.org>
Received on Sat Jul 24 2021 - 11:56:00 UTC

Original text of this message