File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ def id(self):
113
113
board_id = self ._tegra_id ()
114
114
elif chip_id == chips .HFU540 :
115
115
board_id = self ._sifive_id ()
116
+ elif chip_id == chips .C906 :
117
+ board_id = self ._allwinner_id ()
116
118
elif chip_id == chips .MCP2221 :
117
119
board_id = boards .MICROCHIP_MCP2221
118
120
elif chip_id == chips .BINHO :
@@ -342,6 +344,13 @@ def _sifive_id(self):
342
344
return boards .SIFIVE_UNLEASHED
343
345
return None
344
346
347
+ def _allwinner_id (self ):
348
+ """Try to detect the id for Allwiner D1 board."""
349
+ board_value = self .detector .get_device_model ()
350
+ if "sun20iw1p1" in board_value :
351
+ return boards .ALLWINER_D1
352
+ return None
353
+
345
354
def _pine64_id (self ):
346
355
"""Try to detect the id for Pine64 board or device."""
347
356
board_value = self .detector .get_device_model ()
Original file line number Diff line number Diff line change @@ -162,6 +162,9 @@ def _linux_id(self):
162
162
if self .detector .check_dt_compatible_value ("fu500" ):
163
163
return chips .HFU540
164
164
165
+ if self .detector .check_dt_compatible_value ("sun20iw1p1" ):
166
+ return chips .C906
167
+
165
168
if self .detector .check_dt_compatible_value ("sun8i-a33" ):
166
169
return chips .A33
167
170
Original file line number Diff line number Diff line change 109
109
110
110
SIFIVE_UNLEASHED = "SIFIVE_UNLEASHED"
111
111
112
+ ALLWINER_D1 = "ALLWINER_D1"
113
+
112
114
MICROCHIP_MCP2221 = "MICROCHIP_MCP2221"
113
115
114
116
# Raspberry Pi Pico with u2if firmware
Original file line number Diff line number Diff line change 23
23
FT232H = "FT232H"
24
24
FT2232H = "FT2232H"
25
25
HFU540 = "HFU540"
26
+ C906 = "C906"
26
27
MCP2221 = "MCP2221"
27
28
BINHO = "BINHO"
28
29
MIPS24KC = "MIPS24KC"
You can’t perform that action at this time.
0 commit comments