@@ -81,6 +81,8 @@ def id(self) -> Optional[str]:
81
81
board_id = self ._sama5_id ()
82
82
elif chip_id == chips .IMX8MX :
83
83
board_id = self ._imx8mx_id ()
84
+ elif chip_id == chips .IMX8MP :
85
+ board_id = self ._imx8mp_id ()
84
86
elif chip_id == chips .IMX6ULL :
85
87
board_id = self ._imx6ull_id ()
86
88
elif chip_id == chips .S905Y2 :
@@ -420,6 +422,13 @@ def _imx8mx_id(self) -> Optional[str]:
420
422
return boards .CORAL_EDGE_TPU_DEV
421
423
return None
422
424
425
+ def _imx8mp_id (self ) -> Optional [str ]:
426
+ """Check what type iMX8M board."""
427
+ board_value = self .detector .get_device_model ()
428
+ if "NXP i.MX8MPlus SOM" in board_value :
429
+ return boards .NXP_IMX8MPLUS_SOM
430
+ return None
431
+
423
432
def _imx6ull_id (self ) -> Optional [str ]:
424
433
"""Check what type iMX6ULL board."""
425
434
board_value = self .detector .get_device_model ()
@@ -797,6 +806,11 @@ def any_libre_computer_board(self) -> bool:
797
806
"""Check whether the current board is any defined Libre Computer board."""
798
807
return self .id in boards ._LIBRE_COMPUTER_IDS
799
808
809
+ @property
810
+ def any_nxp_navq_board (self ) -> bool :
811
+ """Check whether the current board is any NXP NavQ board"""
812
+ return self .id in boards ._NXP_SOM_IDS
813
+
800
814
@property
801
815
def os_environ_board (self ) -> bool :
802
816
"""Check whether the current board is an OS environment variable special case."""
@@ -851,6 +865,7 @@ def lazily_generate_conditions():
851
865
yield self .any_pcduino_board
852
866
yield self .any_libre_computer_board
853
867
yield self .generic_linux
868
+ yield self .any_nxp_navq_board
854
869
855
870
return any (condition for condition in lazily_generate_conditions ())
856
871
0 commit comments