Skip to content

Commit

Permalink
Merge pull request #266 from kennethryerson/Radxa_CM3
Browse files Browse the repository at this point in the history
Add support for Radxa CM3
  • Loading branch information
makermelissa authored Nov 30, 2022
2 parents ccb2313 + 20d5515 commit d0d0ff7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
11 changes: 10 additions & 1 deletion adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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",)}
Expand Down

0 comments on commit d0d0ff7

Please sign in to comment.