@@ -125,6 +125,8 @@ def id(self):
125
125
board_id = self ._udoo_id ()
126
126
elif chip_id == chips .PENTIUM_N3710 :
127
127
board_id = self ._udoo_id ()
128
+ elif chip_id == chips .STM32MP157 :
129
+ board_id = self ._stm32mp1_id ()
128
130
129
131
return board_id
130
132
@@ -251,6 +253,13 @@ def _sama5_id(self):
251
253
return boards .GIANT_BOARD
252
254
return None
253
255
256
+ def _stm32mp1_id (self ):
257
+ """Check what type stm32mp1 board."""
258
+ board_value = self .detector .get_device_model ()
259
+ if "STM32MP157C-DK2" in board_value :
260
+ return boards .STM32MP157C_DK2
261
+ return None
262
+
254
263
def _imx8mx_id (self ):
255
264
"""Check what type iMX8M board."""
256
265
board_value = self .detector .get_device_model ()
@@ -430,6 +439,11 @@ def any_asus_tinker_board(self):
430
439
"""Check to see if the current board is an ASUS Tinker Board"""
431
440
return self .id in boards ._ASUS_TINKER_BOARD_IDS
432
441
442
+ @property
443
+ def any_stm32mp1 (self ):
444
+ """Check whether the current board is any stm32mp1 board."""
445
+ return self .id in boards ._STM32MP1_IDS
446
+
433
447
@property
434
448
def any_embedded_linux (self ):
435
449
"""Check whether the current board is any embedded Linux device."""
@@ -451,6 +465,7 @@ def any_embedded_linux(self):
451
465
self .any_clockwork_pi_board ,
452
466
self .any_udoo_board ,
453
467
self .any_asus_tinker_board ,
468
+ self .any_stm32mp1 ,
454
469
]
455
470
)
456
471
0 commit comments