bob
This commit is contained in:
1 parent
0474bb1c27
commit
d3fbd695d7
5 files changed
+10
-6
No files matched your search
+2
-2
@@ -110,11 +110,11 @@ func (d *detectionS) do() {
|
||||
if strings.Contains(c, "sun50i-h5") {
|
||||
d.isH5 = true
|
||||
}
|
||||
if strings.Contains(c, "question-mark") {
|
||||
if strings.Contains(c, "sun50i-h6") {
|
||||
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 {
|
||||
// The kernel in the image that comes pre-installed on the pcDuino3 Nano
|
||||
|
||||
+4
@@ -1028,6 +1028,10 @@ func (d *driverGPIO) Init() (bool, error) {
|
||||
if err := mapH5Pins(); err != nil {
|
||||
return true, err
|
||||
}
|
||||
case IsH6():
|
||||
if err := mapH5Pins(); err != nil {
|
||||
return true, err
|
||||
}
|
||||
default:
|
||||
return false, errors.New("unknown Allwinner CPU model")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user