@@ -73,6 +73,8 @@ def id(self):
73
73
board_id = self ._pynq_id ()
74
74
elif chip_id == chips .A64 :
75
75
board_id = self ._pine64_id ()
76
+ elif chip_id == chips .A33 :
77
+ board_id = self ._clockwork_pi_id ()
76
78
return board_id
77
79
78
80
# pylint: enable=invalid-name
@@ -252,6 +254,14 @@ def _pynq_id(self):
252
254
except FileNotFoundError :
253
255
return None
254
256
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
+
255
265
@property
256
266
def any_96boards (self ):
257
267
"""Check whether the current board is any 96boards board."""
@@ -322,6 +332,11 @@ def any_pine64_board(self):
322
332
"""Check whether the current board is any Pine64 device."""
323
333
return self .id in boards ._PINE64_DEV_IDS
324
334
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
+
325
340
@property
326
341
def any_embedded_linux (self ):
327
342
"""Check whether the current board is any embedded Linux device."""
@@ -331,7 +346,7 @@ def any_embedded_linux(self):
331
346
self .any_giant_board , self .any_jetson_board , self .any_coral_board ,
332
347
self .any_odroid_40_pin , self .any_96boards , self .any_sifive_board ,
333
348
self .any_onion_omega_board , self .any_pine64_board ,
334
- self .any_pynq_board ,
349
+ self .any_pynq_board , self . any_clockwork_pi_board
335
350
]
336
351
)
337
352
0 commit comments