@@ -73,6 +73,8 @@ def id(self):
7373 board_id = self ._pynq_id ()
7474 elif chip_id == chips .A64 :
7575 board_id = self ._pine64_id ()
76+ elif chip_id == chips .A33 :
77+ board_id = self ._clockwork_pi_id ()
7678 return board_id
7779
7880 # pylint: enable=invalid-name
@@ -252,6 +254,14 @@ def _pynq_id(self):
252254 except FileNotFoundError :
253255 return None
254256
257+ def _clockwork_pi_id (self ):
258+ """Check what type of Clockwork Pi board."""
259+ board_value = self .detector .get_device_model ()
260+ board = None
261+ if board_value and "Clockwork CPI3" in board_value :
262+ board = boards .CLOCKWORK_CPI3
263+ return board
264+
255265 @property
256266 def any_96boards (self ):
257267 """Check whether the current board is any 96boards board."""
@@ -322,6 +332,11 @@ def any_pine64_board(self):
322332 """Check whether the current board is any Pine64 device."""
323333 return self .id in boards ._PINE64_DEV_IDS
324334
335+ @property
336+ def any_clockwork_pi_board (self ):
337+ """Check whether the current board is any Clockwork Pi device."""
338+ return self .CLOCKWORK_CPI3
339+
325340 @property
326341 def any_embedded_linux (self ):
327342 """Check whether the current board is any embedded Linux device."""
@@ -331,7 +346,7 @@ def any_embedded_linux(self):
331346 self .any_giant_board , self .any_jetson_board , self .any_coral_board ,
332347 self .any_odroid_40_pin , self .any_96boards , self .any_sifive_board ,
333348 self .any_onion_omega_board , self .any_pine64_board ,
334- self .any_pynq_board ,
349+ self .any_pynq_board , self . any_clockwork_pi_board
335350 ]
336351 )
337352
0 commit comments