File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def id(self) -> Optional[str]:
160
160
elif chip_id == chips .RK3288 :
161
161
board_id = self ._asus_tinker_board_id ()
162
162
elif chip_id == chips .RK3328 :
163
- board_id = self ._rock_pi_id ()
163
+ board_id = self ._rock_pi_id () or self . _libre_id ()
164
164
elif chip_id == chips .RK3566 :
165
165
board_id = self ._rk3566_id ()
166
166
elif chip_id == chips .RK3568 :
@@ -528,6 +528,14 @@ def _rock_pi_id(self) -> Optional[str]:
528
528
board = boards .ROCK_PI_3A
529
529
return board
530
530
531
+ def _libre_id (self ) -> Optional [str ]:
532
+ """Check what type of Libre Computer board."""
533
+ board_value = self .detector .get_device_model ()
534
+ board = None
535
+ if board_value and "Libre Computer ROC-RK3328-CC" in board_value :
536
+ board = boards .ROC_RK3328_CC
537
+ return board
538
+
531
539
def _clockwork_pi_id (self ) -> Optional [str ]:
532
540
"""Check what type of Clockwork Pi board."""
533
541
board_value = self .detector .get_device_model ()
Original file line number Diff line number Diff line change 578
578
579
579
# Libre Computer Boards
580
580
AML_S905X_CC = "AML-S905X-CC"
581
+ ROC_RK3328_CC = "ROC-RK3328-CC"
581
582
582
583
# Libre Computer Boards
583
- _LIBRE_COMPUTER_IDS = (AML_S905X_CC ,)
584
+ _LIBRE_COMPUTER_IDS = (
585
+ AML_S905X_CC ,
586
+ ROC_RK3328_CC ,
587
+ )
You can’t perform that action at this time.
0 commit comments