@@ -113,6 +113,8 @@ def id(self):
113
113
board_id = self ._pine64_id ()
114
114
elif chip_id == chips .A33 :
115
115
board_id = self ._clockwork_pi_id ()
116
+ elif chip_id == chips .RK3308 :
117
+ board_id = self ._rock_pi_id ()
116
118
return board_id
117
119
118
120
# pylint: enable=invalid-name
@@ -289,6 +291,14 @@ def _pynq_id(self):
289
291
except FileNotFoundError :
290
292
return None
291
293
294
+ def _rock_pi_id (self ):
295
+ """Check what type of Rock Pi board."""
296
+ board_value = self .detector .get_device_model ()
297
+ board = None
298
+ if board_value and "ROCK Pi S" in board_value :
299
+ board = boards .ROCK_PI_S
300
+ return board
301
+
292
302
def _clockwork_pi_id (self ):
293
303
"""Check what type of Clockwork Pi board."""
294
304
board_value = self .detector .get_device_model ()
@@ -367,6 +377,11 @@ def any_pine64_board(self):
367
377
"""Check whether the current board is any Pine64 device."""
368
378
return self .id in boards ._PINE64_DEV_IDS
369
379
380
+ @property
381
+ def any_rock_pi_board (self ):
382
+ """Check whether the current board is any Clockwork Pi device."""
383
+ return self .ROCK_PI_S
384
+
370
385
@property
371
386
def any_clockwork_pi_board (self ):
372
387
"""Check whether the current board is any Clockwork Pi device."""
@@ -389,6 +404,7 @@ def any_embedded_linux(self):
389
404
self .any_onion_omega_board ,
390
405
self .any_pine64_board ,
391
406
self .any_pynq_board ,
407
+ self .any_rock_pi_board ,
392
408
self .any_clockwork_pi_board ,
393
409
]
394
410
)
0 commit comments