This commit is contained in:
didier committed 2024-07-27 10:22:52 -04:00
1 parent 0474bb1c27
commit d3fbd695d7
5 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ module go-orange
go 1.22 go 1.22
replace periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240727140742-e0faeaf34e9d replace periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240727142115-bdcb8e456a6f
require ( require (
periph.io/x/conn/v3 v3.7.0 periph.io/x/conn/v3 v3.7.0
+2 -2
View File
@@ -1,5 +1,5 @@
github.com/didiercrunch/host/v3 v3.8.3-0.20240727140742-e0faeaf34e9d h1:kOnT9w42VfnB9Dppfiti1KXj++THP5+CvspMikaKV4s= github.com/didiercrunch/host/v3 v3.8.3-0.20240727142115-bdcb8e456a6f h1:nwyKYSguhr5waBVv0JiNz7ZG3e3SgObaAnI+LiVyzRM=
github.com/didiercrunch/host/v3 v3.8.3-0.20240727140742-e0faeaf34e9d/go.mod h1:yFL76AesNHR68PboofSWYaQTKmvPXsQH2Apvp/ls/K4= github.com/didiercrunch/host/v3 v3.8.3-0.20240727142115-bdcb8e456a6f/go.mod h1:yFL76AesNHR68PboofSWYaQTKmvPXsQH2Apvp/ls/K4=
github.com/jonboulle/clockwork v0.3.0 h1:9BSCMi8C+0qdApAp4auwX0RkLGUjs956h0EkuQymUhg= github.com/jonboulle/clockwork v0.3.0 h1:9BSCMi8C+0qdApAp4auwX0RkLGUjs956h0EkuQymUhg=
github.com/jonboulle/clockwork v0.3.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/jonboulle/clockwork v0.3.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8=
periph.io/x/conn/v3 v3.7.0 h1:f1EXLn4pkf7AEWwkol2gilCNZ0ElY+bxS4WE2PQXfrA= periph.io/x/conn/v3 v3.7.0 h1:f1EXLn4pkf7AEWwkol2gilCNZ0ElY+bxS4WE2PQXfrA=
+1 -1
View File
@@ -13,7 +13,7 @@ periph.io/x/conn/v3/pin
periph.io/x/conn/v3/pin/pinreg periph.io/x/conn/v3/pin/pinreg
periph.io/x/conn/v3/spi periph.io/x/conn/v3/spi
periph.io/x/conn/v3/spi/spireg periph.io/x/conn/v3/spi/spireg
# periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240727140742-e0faeaf34e9d # periph.io/x/host/v3 v3.8.2 => github.com/didiercrunch/host/v3 v3.8.3-0.20240727142115-bdcb8e456a6f
## explicit; go 1.20 ## explicit; go 1.20
periph.io/x/host/v3 periph.io/x/host/v3
periph.io/x/host/v3/allwinner periph.io/x/host/v3/allwinner
+2 -2
View File
@@ -110,11 +110,11 @@ func (d *detectionS) do() {
if strings.Contains(c, "sun50i-h5") { if strings.Contains(c, "sun50i-h5") {
d.isH5 = true d.isH5 = true
} }
if strings.Contains(c, "question-mark") { if strings.Contains(c, "sun50i-h6") {
d.isH6 = true d.isH6 = true
} }
} }
d.isAllwinner = d.isA64 || d.isR8 || d.isA20 || d.isH3 || d.isH5 d.isAllwinner = d.isA64 || d.isR8 || d.isA20 || d.isH3 || d.isH5 || d.isH6
if !d.isAllwinner { if !d.isAllwinner {
// The kernel in the image that comes pre-installed on the pcDuino3 Nano // The kernel in the image that comes pre-installed on the pcDuino3 Nano
+4
View File
@@ -1028,6 +1028,10 @@ func (d *driverGPIO) Init() (bool, error) {
if err := mapH5Pins(); err != nil { if err := mapH5Pins(); err != nil {
return true, err return true, err
} }
case IsH6():
if err := mapH5Pins(); err != nil {
return true, err
}
default: default:
return false, errors.New("unknown Allwinner CPU model") return false, errors.New("unknown Allwinner CPU model")
} }