Add qcrtc(4), a driver for the RTC found on Qualcomm PMICs. Unfortunately
authorpatrick <patrick@openbsd.org>
Tue, 8 Nov 2022 19:47:05 +0000 (19:47 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 8 Nov 2022 19:47:05 +0000 (19:47 +0000)
commitebbbade523ef9055672aa4e81615aaec8377f8f3
treead25b86942dcb098c2218be7b3838576d6349057
parentc756b8ee6ddeeb017558d39149859297b090b4cc
Add qcrtc(4), a driver for the RTC found on Qualcomm PMICs.  Unfortunately
on the Lenovo x13s it does not seem to contain the offset from 1970.  Also
we are not allowed to write to the RTC.

I was told that the offset I need to calculate the actual date is sorted in
an UEFI variable, which can be accessed over a secure channel.  So as long
as we don't have that channel, this driver is useless.  Good start though.

ok kettenis@
sys/dev/fdt/qcrtc.c [new file with mode: 0644]