File tree 5 files changed +25
-0
lines changed
5 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ def id(self) -> Optional[str]:
92
92
board_id = boards .ODROID_C4
93
93
elif chip_id == chips .S922X :
94
94
board_id = boards .ODROID_N2
95
+ elif chip_id == chips .A311D :
96
+ board_id = boards .KHADAS_VIM3
95
97
elif chip_id == chips .EXYNOS5422 :
96
98
board_id = boards .ODROID_XU4
97
99
elif chip_id == chips .FT232H :
@@ -573,6 +575,11 @@ def any_odroid_40_pin(self) -> bool:
573
575
"""Check whether the current board is any defined 40-pin Odroid."""
574
576
return self .id in boards ._ODROID_40_PIN_IDS
575
577
578
+ @property
579
+ def khadas_vim3_40_pin (self ) -> bool :
580
+ """Check whether the current board is any defined 40-pin Khadas VIM3."""
581
+ return self .id in boards ._KHADAS_40_PIN_IDS
582
+
576
583
@property
577
584
def any_jetson_board (self ) -> bool :
578
585
"""Check whether the current board is any defined Jetson Board."""
@@ -647,6 +654,7 @@ def any_embedded_linux(self) -> bool:
647
654
self .any_jetson_board ,
648
655
self .any_coral_board ,
649
656
self .any_odroid_40_pin ,
657
+ self .khadas_vim3_40_pin ,
650
658
self .any_96boards ,
651
659
self .any_sifive_board ,
652
660
self .any_onion_omega_board ,
Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ def _linux_id(self) -> Optional[str]:
200
200
if self .detector .check_dt_compatible_value ("rockchip,rk3328" ):
201
201
return chips .RK3328
202
202
203
+ if self .detector .check_dt_compatible_value ("amlogic,a311d" ):
204
+ return chips .A311D
205
+
203
206
if self .detector .check_dt_compatible_value ("st,stm32mp157" ):
204
207
return chips .STM32MP157
205
208
@@ -276,6 +279,8 @@ def _linux_id(self) -> Optional[str]:
276
279
return chips .S922X
277
280
if "sm1" in compatible_list :
278
281
return chips .S905X3
282
+ if "vim3amlogic" in compatible_list :
283
+ return chips .A311D
279
284
if compatible and "sun50i-a64" in compatible :
280
285
linux_id = chips .A64
281
286
if compatible and "sun50i-h6" in compatible :
@@ -318,6 +323,8 @@ def _linux_id(self) -> Optional[str]:
318
323
linux_id = chips .S905X3
319
324
elif "ODROID-XU4" in hardware :
320
325
linux_id = chips .EXYNOS5422
326
+ elif "KHADAS-VIM3" in hardware :
327
+ linux_id = chips .A311D
321
328
elif "SAMA5" in hardware :
322
329
linux_id = chips .SAMA5
323
330
elif "Pinebook" in hardware :
Original file line number Diff line number Diff line change 162
162
MAAXBOARD = "MAAXBOARD"
163
163
MAAXBOARD_MINI = "MAAXBOARD_MINI"
164
164
165
+ # Khadas VIM3
166
+ KHADAS_VIM3 = "KHADAS_VIM3"
167
+
168
+ _KHADAS_40_PIN_IDS = (KHADAS_VIM3 ,)
169
+
165
170
# Asus Tinkerboard
166
171
_ASUS_TINKER_BOARD_IDS = (ASUS_TINKER_BOARD ,)
167
172
Original file line number Diff line number Diff line change 3
3
# SPDX-License-Identifier: MIT
4
4
5
5
"""Definition of chips."""
6
+ A311D = "A311D"
6
7
AM33XX = "AM33XX"
7
8
DRA74X = "DRA74X"
8
9
TDA4VM = "TDA4VM"
Original file line number Diff line number Diff line change 44
44
print ("Is this a PYNQ Board?" , detector .board .PYNQ_Z1 | detector .board .PYNQ_Z2 )
45
45
print ("Is this a Rock Pi board?" , detector .board .any_rock_pi_board )
46
46
print ("Is this a NanoPi board?" , detector .board .any_nanopi )
47
+ print ("Is this a Khadas VIM3 board?" , detector .board .KHADAS_VIM3 )
47
48
print ("Is this a Clockwork Pi board?" , detector .board .any_clockwork_pi_board )
48
49
print ("Is this an embedded Linux system?" , detector .board .any_embedded_linux )
49
50
print ("Is this a generic Linux PC?" , detector .board .GENERIC_LINUX_PC )
83
84
if detector .board .any_odroid_40_pin :
84
85
print ("Odroid detected." )
85
86
87
+ if detector .board .khadas_vim3_40_pin :
88
+ print ("Khadas VIM3 detected." )
89
+
86
90
if detector .board .any_onion_omega_board :
87
91
print ("Onion Omega detected." )
88
92
You can’t perform that action at this time.
0 commit comments