|
|
|
@ -116,6 +116,101 @@ int ORANGEPI_PIN_MASK[4][32] = //[BANK] [INDEX]
|
|
|
|
|
|
|
|
|
|
#endif /* CONFIG_ORANGEPI_2G_IOT */ |
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_PRIME |
|
|
|
|
int pinToGpioOrangePi[64] = |
|
|
|
|
{ |
|
|
|
|
12, 11, // 0, 1
|
|
|
|
|
6, 69, // 2, 3
|
|
|
|
|
70, 1, // 4 5
|
|
|
|
|
110,0, // 6, 7
|
|
|
|
|
3, 68, // 8, 9
|
|
|
|
|
71, 15, //10,11
|
|
|
|
|
16, 2, //12,13
|
|
|
|
|
14, 13, //14,15
|
|
|
|
|
72, 19, //16,17
|
|
|
|
|
18, 7, //18,19
|
|
|
|
|
8, 73, //20,21
|
|
|
|
|
9, 10, //22,23
|
|
|
|
|
74,107, //24,25
|
|
|
|
|
75, 76, //26,27
|
|
|
|
|
|
|
|
|
|
-1, -1, //28, 29
|
|
|
|
|
-1, -1, //30,31
|
|
|
|
|
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 47
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,// ... 63
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
int physToGpioOrangePi[64] =//head num map to OrangePi
|
|
|
|
|
{ |
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
12, -1, // 3, 4
|
|
|
|
|
11, -1, // 5, 6
|
|
|
|
|
6, 69, // 7, 8
|
|
|
|
|
-1, 70, // 9, 10
|
|
|
|
|
1, 110, //11, 12
|
|
|
|
|
0, -1, //13, 14
|
|
|
|
|
3, 68, //15, 16
|
|
|
|
|
-1, 71, //17, 18
|
|
|
|
|
15, -1, //19, 20
|
|
|
|
|
16, 2, //21, 22
|
|
|
|
|
14, 13, //23, 24
|
|
|
|
|
-1, 72, //25, 26
|
|
|
|
|
19, 18, //27, 28
|
|
|
|
|
7, -1, //29, 30
|
|
|
|
|
8, 73, //31, 32
|
|
|
|
|
9, -1, //33, 34
|
|
|
|
|
10, 74, //35, 36
|
|
|
|
|
107, 75, //37, 38
|
|
|
|
|
-1, 76, //39, 40
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, //41-> 55
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1 // 56-> 63
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
int physToPinOrangePi[64] = //return wiringPI pin
|
|
|
|
|
{ |
|
|
|
|
-1, // 0
|
|
|
|
|
-1, -1, // 1, 2
|
|
|
|
|
0, -1, //3, 4
|
|
|
|
|
1, -1, //5, 6
|
|
|
|
|
2, 3, //7, 8
|
|
|
|
|
-1, 4, //9,10
|
|
|
|
|
5, 6, //11,12
|
|
|
|
|
7, -1, //13,14
|
|
|
|
|
8, 9, //15,16
|
|
|
|
|
-1, 10, //17,18
|
|
|
|
|
11, -1, //19,20
|
|
|
|
|
12, 13, //21,22
|
|
|
|
|
14, 15, //23, 24
|
|
|
|
|
-1, 16, // 25, 26
|
|
|
|
|
17, 18, //27, 28
|
|
|
|
|
19, -1, //29, 30
|
|
|
|
|
20, 21, //31, 32
|
|
|
|
|
22, -1, //33, 34
|
|
|
|
|
23, 24, //35, 36
|
|
|
|
|
25, 26, //37, 38
|
|
|
|
|
-1, 27, //39, 40
|
|
|
|
|
// Padding:
|
|
|
|
|
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // ... 56
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, // ... 63
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
int ORANGEPI_PIN_MASK[9][32] = //[BANK] [INDEX]
|
|
|
|
|
{ |
|
|
|
|
{ 0, 1, 2, 3,-1,-1, 6, 7, 8, 9,10,11,12,13,14,15,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
|
int pinToGpioOrangePi[64] = |
|
|
|
|
{ |
|
|
|
@ -131,7 +226,7 @@ int pinToGpioOrangePi[64] =
|
|
|
|
|
18, 7, //18,19
|
|
|
|
|
8, 200, //20,21
|
|
|
|
|
9, 10, //22,23
|
|
|
|
|
107,201, //24,25
|
|
|
|
|
201,107, //24,25
|
|
|
|
|
198, 199, //26,27
|
|
|
|
|
|
|
|
|
|
-1, -1, //28, 29
|
|
|
|
@ -1091,13 +1186,13 @@ const char *piModelNames[6] =
|
|
|
|
|
#ifdef CONFIG_ORANGEPI_2G_IOT |
|
|
|
|
"OrangePi 2G-IOT", |
|
|
|
|
#elif CONFIG_ORANGEPI_PC2 || CONFIG_ORANGEPI_ZEROPLUS || CONFIG_ORANGEPI_H5_ZEROPLUS2 || CONFIG_ORANGEPI_PRIME |
|
|
|
|
"OrangePi PC2", |
|
|
|
|
"OrangePi H5 family", |
|
|
|
|
#elif CONFIG_ORANGEPI_A64 |
|
|
|
|
"OrangePi Win/Winplus", |
|
|
|
|
#elif CONFIG_ORANGEPI_H3 || CONFIG_ORANGEPI_H3_ZEROPLUS2 |
|
|
|
|
"OrangePi H3 family", |
|
|
|
|
#elif CONFIG_ORANGEPI_ZERO |
|
|
|
|
"OrangePi Zero", |
|
|
|
|
"OrangePi H2+ family", |
|
|
|
|
#endif |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|