Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Mar 2021 10:16:03 +0000
From:      "peterj (Peter Jeremy)" <phabric-noreply@FreeBSD.org>
To:        Phabricator <phabric-noreply@FreeBSD.org>
Cc:        freebsd-arm@freebsd.org
Subject:   [Differential] D29140: Add support for the RK805/RK808 RTC
Message-ID:  <886352750466a1f9b0d69b7480f1ab3d@localhost.localdomain>
In-Reply-To: <differential-rev-PHID-DREV-brcifnwvtqm5yhvdtuu6-req@reviews.freebsd.org>
References:  <differential-rev-PHID-DREV-brcifnwvtqm5yhvdtuu6-req@reviews.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--b1_886352750466a1f9b0d69b7480f1ab3d
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: base64

cGV0ZXJqIGNyZWF0ZWQgdGhpcyByZXZpc2lvbi4KcGV0ZXJqIGFkZGVkIGEgcmV2aWV3ZXI6IGFy
bTY0LgpIZXJhbGQgYWRkZWQgc3Vic2NyaWJlcnM6IGVtYXN0ZSwgYW5kcmV3LgpIZXJhbGQgYWRk
ZWQgYSByZXZpZXdlcjogbWFudS4KcGV0ZXJqIHJlcXVlc3RlZCByZXZpZXcgb2YgdGhpcyByZXZp
c2lvbi4KClJFVklTSU9OIFNVTU1BUlkKICBJbXBsZW1lbnQgZHJpdmVyIGZvciB0aGUgUlRDIGVt
YmVkZGVkIGluIHRoZSBSSzgwNS9SSzgwOCBwb3dlciBtYW5hZ2VtZW50IHN5c3RlbS4KICAKICBU
aGlzIGlzIGEgcmVwbGFjZW1lbnQgZm9yIEQyMjY5MiA8aHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qu
b3JnL0QyMjY5Mj4sIHRha2luZyBpbnRvIGFjY291bnQgY29tbWVudHMgb24gdGhhbiByZXZpc2lv
bi4gIEJhc2VkIG9uIGV4cGVyaW1lbnRzIG9uIG15IFJLODA4LCBzZXR0aW5nIHRoZSB0aW1lIGRv
ZXNuJ3QgYWx0ZXIgdGhlIGludGVybmFsL2luYWNjZXNzaWJsZSBzdWItc2Vjb25kIGNvdW50ZXIs
IHRoZXJlZm9yZSB0aGVyZSdzIG5vIHBvaW50IGluIGNhbGxpbmcgY2xvY2tfc2NoZWR1bGUoKS4K
ClRFU1QgUExBTgogIFRlc3RlZCB1c2luZyB0aGUgUks4MDgtRCBvbiBteSBSb2NrUHJvNjQgKFJL
MzM5OSkKClJFVklTSU9OIERFVEFJTAogIGh0dHBzOi8vcmV2aWV3cy5mcmVlYnNkLm9yZy9EMjkx
NDAKCkFGRkVDVEVEIEZJTEVTCiAgc3lzL2FybTY0L3JvY2tjaGlwL3JrODA1LmMKICBzeXMvYXJt
NjQvcm9ja2NoaXAvcms4MDVyZWcuaAoKRU1BSUwgUFJFRkVSRU5DRVMKICBodHRwczovL3Jldmll
d3MuZnJlZWJzZC5vcmcvc2V0dGluZ3MvcGFuZWwvZW1haWxwcmVmZXJlbmNlcy8KClRvOiBwZXRl
cmosICNhcm02NCwgbWFudQpDYzogYW5kcmV3LCBmcmVlYnNkLWFybS1saXN0LCBlbWFzdGUK

--b1_886352750466a1f9b0d69b7480f1ab3d
Content-Type: text/x-patch; charset=utf-8; name="D29140.85371.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D29140.85371.patch"

ZGlmZiAtLWdpdCBhL3N5cy9hcm02NC9yb2NrY2hpcC9yazgwNXJlZy5oIGIvc3lzL2FybTY0L3Jv
Y2tjaGlwL3JrODA1cmVnLmgKLS0tIGEvc3lzL2FybTY0L3JvY2tjaGlwL3JrODA1cmVnLmgKKysr
IGIvc3lzL2FybTY0L3JvY2tjaGlwL3JrODA1cmVnLmgKQEAgLTMwLDYgKzMwLDMxIEBACiAjaWZu
ZGVmIF9SSzgwNVJFR19IXwogI2RlZmluZQkgX1JLODA1UkVHX0hfCiAKKy8qCisgKiBUaGUgUlRD
IHJlZ2lzdGVycyBhcmUgdGhlIHNhbWUgaW4gYm90aCBSSzgwNSBhbmQgUks4MDguCisgKiBO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ChlcnJvciAhPSAwKQorCQlyZXR1cm4gKGVycm9yKTsKKworCWN0cmwgfD0gUks4MDVf
UlRDX0NUUkxfU1RPUDsKKwljdHJsICY9IH5SSzgwNV9SVENfQU1QTV9NT0RFOworCWVycm9yID0g
cms4MDVfd3JpdGUoZGV2LCBSSzgwNV9SVENfQ1RSTCwgJmN0cmwsIDEpOworCWlmIChlcnJvciAh
PSAwKQorCQlyZXR1cm4gKGVycm9yKTsKKworCWVycm9yID0gcms4MDVfd3JpdGUoZGV2LCBSSzgw
NV9SVENfU0VDUywgZGF0YSwgNyk7CisJY3RybCAmPSB+Uks4MDVfUlRDX0NUUkxfU1RPUDsKKwly
azgwNV93cml0ZShkZXYsIFJLODA1X1JUQ19DVFJMLCAmY3RybCwgMSk7CisKKwlpZiAoYm9vdHZl
cmJvc2UpCisJCWRldmljZV9wcmludGYoZGV2LAorCQkgICAgIlNldCBSVEMgYXQgJTA0eC0lMDJ4
LSUwMnggJTAyeDolMDJ4OiUwMnhbLiUwOWxkXVxuIiwKKwkJICAgIGJjdC55ZWFyLCBiY3QubW9u
LCBiY3QuZGF5LCBiY3QuaG91ciwgYmN0Lm1pbiwgYmN0LnNlYywKKwkJICAgIGJjdC5uc2VjKTsK
KworCXJldHVybiAoZXJyb3IpOworfQorCiBzdGF0aWMgaW50CiByazgwNV9hdHRhY2goZGV2aWNl
X3QgZGV2KQogewpAQCAtNzI0LDYgKzgzNCwxMSBAQAogCiAJLyogcmVnZGV2IGludGVyZmFjZSAq
LwogCURFVk1FVEhPRChyZWdkZXZfbWFwLAkJcms4MDVfbWFwKSwKKworCS8qIENsb2NrIGludGVy
ZmFjZSAqLworCURFVk1FVEhPRChjbG9ja19nZXR0aW1lLAlyazgwNV9nZXR0aW1lKSwKKwlERVZN
RVRIT0QoY2xvY2tfc2V0dGltZSwJcms4MDVfc2V0dGltZSksCisKIAlERVZNRVRIT0RfRU5ECiB9
OwogCgo=


--b1_886352750466a1f9b0d69b7480f1ab3d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?886352750466a1f9b0d69b7480f1ab3d>