@@ -71,6 +71,10 @@ def id(self) -> Optional[str]:
71
71
board_id = self ._siemens_simatic_iot2000_id ()
72
72
elif chip_id == chips .DRA74X :
73
73
board_id = self ._bbai_id ()
74
+ elif chip_id == chips .SUN4I :
75
+ board_id = self ._armbian_id ()
76
+ elif chip_id == chips .SUN7I :
77
+ board_id = self ._armbian_id ()
74
78
elif chip_id == chips .SUN8I :
75
79
board_id = self ._armbian_id () or self ._allwinner_variants_id ()
76
80
elif chip_id == chips .SAMA5 :
@@ -127,6 +131,10 @@ def id(self) -> Optional[str]:
127
131
board_id = boards .ONION_OMEGA2
128
132
elif chip_id == chips .ZYNQ7000 :
129
133
board_id = self ._pynq_id ()
134
+ elif chip_id == chips .A10 :
135
+ board_id = self ._armbian_id ()
136
+ elif chip_id == chips .A20 :
137
+ board_id = self ._armbian_id ()
130
138
elif chip_id == chips .A64 :
131
139
board_id = self ._pine64_id ()
132
140
elif chip_id == chips .H6 :
@@ -338,6 +346,10 @@ def _armbian_id(self) -> Optional[str]:
338
346
board = boards .NANOPI_NEO
339
347
elif board_value == "nezha" :
340
348
board = boards .LICHEE_RV
349
+ elif board_value == "pcduino2" :
350
+ board = boards .PCDUINO2
351
+ elif board_value == "pcduino3" :
352
+ board = boards .PCDUINO3
341
353
342
354
return board
343
355
@@ -493,6 +505,16 @@ def _asus_tinker_board_id(self) -> Optional[str]:
493
505
board = boards ._ASUS_TINKER_BOARD_IDS
494
506
return board
495
507
508
+ def _pcduino_board_id (self ) -> Optional [str ]:
509
+ """Check on the type of Pcduino"""
510
+ board_value = self .detector .get_device_model ()
511
+ board = None
512
+ if "pcduino2" in board_value .lower ():
513
+ board = boards .PCDUINO2
514
+ if "pcduino3" in board_value .lower ():
515
+ board = boards .PCDUINO3
516
+ return board
517
+
496
518
def _allwinner_variants_id (self ) -> Optional [str ]:
497
519
"""Try to detect the id of allwinner based board. (orangepi, nanopi)"""
498
520
board_value = self .detector .get_device_model ()
@@ -663,6 +685,11 @@ def any_asus_tinker_board(self) -> bool:
663
685
"""Check to see if the current board is an ASUS Tinker Board"""
664
686
return self .id in boards ._ASUS_TINKER_BOARD_IDS
665
687
688
+ @property
689
+ def any_pcduino_board (self ) -> bool :
690
+ """Check whether the current board is any Pcduino board"""
691
+ return self .id in boards ._PCDUINO_DEV_IDS
692
+
666
693
@property
667
694
def any_stm32mp1 (self ) -> bool :
668
695
"""Check whether the current board is any stm32mp1 board."""
@@ -719,6 +746,7 @@ def any_embedded_linux(self) -> bool:
719
746
self .any_tisk_board ,
720
747
self .any_siemens_simatic_iot2000 ,
721
748
self .any_lichee_riscv_board ,
749
+ self .any_pcduino_board ,
722
750
]
723
751
)
724
752
0 commit comments