ZhangGaoxing / sunxi-gpio-driver

A full function(PULL-UP, PULL-DOWN) generic GPIO driver for Allwinner SoCs.
MIT License
6 stars 2 forks source link

Add support of Allwinner H616 (sun50iw9p1) #1

Open AlexeyKrasuk opened 3 years ago

AlexeyKrasuk commented 3 years ago

Hello, is it possible to add Allwinner H616 driver support which used in Orange Pi Zero 2. Documentation says that "Apparently it has no CPUS (ARISC management processor) anymore, also is missing the associated SRAM A2." and I don't know which value should I use in protected override int CpusPortBaseAddress variable.

ZhangGaoxing commented 3 years ago

I don't have this board right now, but I'll take time to look at the datasheet

ZhangGaoxing commented 3 years ago

I didn't look at it carefully, and there was no board to test. You can try this

// GPIO(PC,PF,PG,PH,PI) 
protected override int CpuxPortBaseAddress => 0x0300B000;
// GPIO(PL)
protected override int CpusPortBaseAddress => 0x07022000;