Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sunxi_rtc



Judging by this post here: https://blog.netbsd.org/tnf/entry/pinebook
Compared to the recent pinebook status updates:
	https://mail-index.netbsd.org/port-arm/2019/08/24/msg006080.html
with dmesg:
	https://github.com/ebijun/NetBSD/blob/master/dmesg/aarch64/pinebook

It seems that the rtc used to be detected correctly and now is not.
I saw this commit message in openbsd:
	Adapt to allwinner device tree changes in linux >= 5.0-rc1
	"allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64

With this change:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/fdt/sxirtc.c.diff?r1=1.2&r2=1.3

(see here for full log of sxirtc.c in openbsd:
https://cvsweb.openbsd.org/src/sys/dev/fdt/sxirtc.c)

Can we get these changes ported across to netbsd?

Here is my attempt (not including the later clock support changes):
Index: sunxi_rtc.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/sunxi/sunxi_rtc.c,v
retrieving revision 1.4
diff -r1.4 sunxi_rtc.c
131a132,133
>       { "allwinner,sun8i-h3-rtc",             (uintptr_t)&sun6i_rtc_config },
>       { "allwinner,sun50i-h5-rtc",            (uintptr_t)&sun6i_rtc_config },


-- 
ioh


Home | Main Index | Thread Index | Old Index