Skip to content

Commit e3d05ed

Browse files
authored
Merge pull request #192 from Avnet/MaaXBoard
MaaXBoard and MaaXBoard Mini are both detected
2 parents 65d5035 + 3b13324 commit e3d05ed

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

adafruit_platformdetect/board.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ def _stm32mp1_id(self):
334334
def _imx8mx_id(self):
335335
"""Check what type iMX8M board."""
336336
board_value = self.detector.get_device_model()
337+
if "i.MX8MM" in board_value:
338+
return boards.MAAXBOARD_MINI
339+
if "i.MX8MQ" in board_value:
340+
return boards.MAAXBOARD
337341
if "Phanbell" in board_value:
338342
return boards.CORAL_EDGE_TPU_DEV
339343
return None

adafruit_platformdetect/constants/boards.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@
147147
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
148148
UDOO_X86 = "UDOO_X86"
149149

150+
# MaaXBoard
151+
MAAXBOARD = "MAAXBOARD"
152+
MAAXBOARD_MINI = "MAAXBOARD_MINI"
153+
150154
# Asus Tinkerboard
151155
_ASUS_TINKER_BOARD_IDS = (ASUS_TINKER_BOARD,)
152156

@@ -453,3 +457,6 @@
453457

454458
# UDOO
455459
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}
460+
461+
# MaaXBoard boards
462+
_MAAXBOARD_DEV_IDS = ("MAAXBOARD", "MAAXBOARD_MINI")

bin/detect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
print("Is this a Giant Board?", detector.board.GIANT_BOARD)
1818
print("Is this a Coral Dev Board?", detector.board.CORAL_EDGE_TPU_DEV)
1919
print("Is this a Coral Dev Board Mini?", detector.board.CORAL_EDGE_TPU_DEV_MINI)
20+
print("Is this a MaaXBoard?", detector.board.MAAXBOARD)
21+
print("Is this a MaaXBoard Mini?", detector.board.MAAXBOARD_MINI)
2022
print("Is this a SiFive Unleashed? ", detector.board.SIFIVE_UNLEASHED)
2123
print("Is this a PYNQ Board?", detector.board.PYNQ_Z1 | detector.board.PYNQ_Z2)
2224
print("Is this a Rock Pi board?", detector.board.any_rock_pi_board)

0 commit comments

Comments
 (0)