diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 47c104b..16c3531 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -485,6 +485,8 @@ def _rk3566_id(self) -> Optional[str]: board = boards.LUBANCAT_ZERO if board_value and "LubanCat1" in board_value: board = boards.LUBANCAT1 + if board_value and "Radxa CM3 IO" in board_value: + board = boards.RADXA_CM3 return board def _rk3568_id(self) -> Optional[str]: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 52800a5..bba1522 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -163,6 +163,7 @@ SOPINE = "SOPINE" RADXA_ZERO = "RADXA_ZERO" +RADXA_CM3 = "RADXA_CM3" ROCK_PI_S = "ROCK_PI_S" ROCK_PI_4 = "ROCK_PI_4" @@ -536,7 +537,15 @@ # Pcduino baords _PCDUINO_DEV_IDS = (PCDUINO2, PCDUINO3) # RockPi boards and devices -_ROCK_PI_IDS = (ROCK_PI_S, ROCK_PI_4, ROCK_PI_X, ROCK_PI_E, RADXA_ZERO, ROCK_PI_5) +_ROCK_PI_IDS = ( + ROCK_PI_S, + ROCK_PI_4, + ROCK_PI_X, + ROCK_PI_E, + RADXA_ZERO, + ROCK_PI_5, + RADXA_CM3, +) # UDOO _UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}