periph / host

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

allwinner: extend supported CPUS (H2, H3) #1

Closed chenjeff622 closed 1 year ago

chenjeff622 commented 3 years ago

as title. how do i porting please?

maruel commented 3 years ago

Could you contribute one?

If you want the headers, you could create a directory orangepi and use https://github.com/periph/host/tree/main/pine64 as an inspiration, then send a PR.

chenjeff622 commented 3 years ago

okey. i will give a try.

f0086 commented 2 years ago

@chenjeff622 Any progress on this? If not, I could pick this one up. I want to support the Orange Pi Zero (v1) with an Allwinner H2 CPU (ARMv7-A). Sadly, the allwinner package does not detect the CPU (see here the detection logic). The H2 is a 32 bit CPU with the device string allwinner,sun8i-h2-plus. Can I just extend the check for this type to support the CPU or is there more work to be done? What do you think @maruel?

chenjeff622 commented 2 years ago

https://github.com/periph/host/tree/main/allwinner You should to create h2 inside the folder. I don't have time to test my h3 board. Maybe we make it success together.

maruel commented 2 years ago

Even if the pinout is not supported, you can still use sysfs driver as a fallback. I'm happy to have more memory registered driver! I don't have one to develop and test on.

f0086 commented 1 year ago

I've implemented support for H2+ and H3 CPUs.