periph / host

Go·Hardware·Lean - Host drivers
https://periph.io
Apache License 2.0
57 stars 32 forks source link

allwinner: Support for H2+ and H3 (OrangePiZero) #23

Closed f0086 closed 1 year ago

f0086 commented 1 year ago

Add support for the Allwinner H2+ and H3 CPUs, which are almost identical. The H2+ has no GBit MAC and no 4h HDMI, but the rest is completely identical. For this library tho, it is not relevant, so we can combine these two CPU types into one single H3 and detect the H2+ as a H3 CPU.

Support for detecting Orange Pi Zero boards are added, which uses the H3 SOC. The Pinouts are from the Orange Pi manual.

Fixes #1

maruel commented 1 year ago

gohci

codecov-commenter commented 1 year ago

Codecov Report

Merging #23 (b7b49dd) into main (de9a57f) will not change coverage. The diff coverage is n/a.

@@          Coverage Diff          @@
##            main     #23   +/-   ##
=====================================
  Coverage   34.3%   34.3%           
=====================================
  Files         51      51           
  Lines       7992    7992           
=====================================
  Hits        2744    2744           
  Misses      5117    5117           
  Partials     131     131           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

maruel commented 1 year ago

Thanks!