@@ -113,6 +113,8 @@ def id(self):
113113 board_id = self ._pine64_id ()
114114 elif chip_id == chips .A33 :
115115 board_id = self ._clockwork_pi_id ()
116+ elif chip_id == chips .RK3308 :
117+ board_id = self ._rock_pi_id ()
116118 return board_id
117119
118120 # pylint: enable=invalid-name
@@ -289,6 +291,14 @@ def _pynq_id(self):
289291 except FileNotFoundError :
290292 return None
291293
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+
292302 def _clockwork_pi_id (self ):
293303 """Check what type of Clockwork Pi board."""
294304 board_value = self .detector .get_device_model ()
@@ -367,6 +377,11 @@ def any_pine64_board(self):
367377 """Check whether the current board is any Pine64 device."""
368378 return self .id in boards ._PINE64_DEV_IDS
369379
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+
370385 @property
371386 def any_clockwork_pi_board (self ):
372387 """Check whether the current board is any Clockwork Pi device."""
@@ -389,6 +404,7 @@ def any_embedded_linux(self):
389404 self .any_onion_omega_board ,
390405 self .any_pine64_board ,
391406 self .any_pynq_board ,
407+ self .any_rock_pi_board ,
392408 self .any_clockwork_pi_board ,
393409 ]
394410 )
0 commit comments