Skip to content

Commit d0d0ff7

Browse files
authored
Merge pull request #266 from kennethryerson/Radxa_CM3
Add support for Radxa CM3
2 parents ccb2313 + 20d5515 commit d0d0ff7

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

adafruit_platformdetect/board.py

+2
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@ def _rk3566_id(self) -> Optional[str]:
485485
board = boards.LUBANCAT_ZERO
486486
if board_value and "LubanCat1" in board_value:
487487
board = boards.LUBANCAT1
488+
if board_value and "Radxa CM3 IO" in board_value:
489+
board = boards.RADXA_CM3
488490
return board
489491

490492
def _rk3568_id(self) -> Optional[str]:

adafruit_platformdetect/constants/boards.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
SOPINE = "SOPINE"
164164

165165
RADXA_ZERO = "RADXA_ZERO"
166+
RADXA_CM3 = "RADXA_CM3"
166167

167168
ROCK_PI_S = "ROCK_PI_S"
168169
ROCK_PI_4 = "ROCK_PI_4"
@@ -536,7 +537,15 @@
536537
# Pcduino baords
537538
_PCDUINO_DEV_IDS = (PCDUINO2, PCDUINO3)
538539
# RockPi boards and devices
539-
_ROCK_PI_IDS = (ROCK_PI_S, ROCK_PI_4, ROCK_PI_X, ROCK_PI_E, RADXA_ZERO, ROCK_PI_5)
540+
_ROCK_PI_IDS = (
541+
ROCK_PI_S,
542+
ROCK_PI_4,
543+
ROCK_PI_X,
544+
ROCK_PI_E,
545+
RADXA_ZERO,
546+
ROCK_PI_5,
547+
RADXA_CM3,
548+
)
540549

541550
# UDOO
542551
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}

0 commit comments

Comments
 (0)