Skip to content

Commit

Permalink
Merge pull request #348 from burberius/raxda-zero3
Browse files Browse the repository at this point in the history
Add detection for Radxa ZERO 3 boards
  • Loading branch information
makermelissa committed May 8, 2024
2 parents f991454 + 40b6db5 commit 717172a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adafruit_platformdetect/board.py
Expand Up @@ -426,6 +426,8 @@ def _armbian_id(self) -> Optional[str]:
board = boards.PCDUINO3
elif board_value == "rock-3a":
board = boards.ROCK_PI_3A
elif board_value == "radxa-zero3":
board = boards.RADXA_ZERO3
elif board_value == "repka-pi3-h5":
board = boards.REPKA_PI_3_H5
elif board_value == "repka-pi4-h6":
Expand Down Expand Up @@ -575,6 +577,8 @@ def _rk3566_id(self) -> Optional[str]:
board = boards.LUBANCAT1
if board_value and "Radxa CM3 IO" in board_value:
board = boards.RADXA_CM3
if board_value and "Radxa ZERO 3" in board_value:
board = boards.RADXA_ZERO3
if board_value and "Radxa ROCK3 Model C" in board_value:
board = boards.ROCK_PI_3C
if board_value and "Rockchip RK3566 OPi 3B" in board_value:
Expand Down
2 changes: 2 additions & 0 deletions adafruit_platformdetect/constants/boards.py
Expand Up @@ -192,6 +192,7 @@
QUARTZ64_A = "QUARTZ64_A"

RADXA_ZERO = "RADXA_ZERO"
RADXA_ZERO3 = "RADXA_ZERO3"
RADXA_CM3 = "RADXA_CM3"

ROCK_PI_3A = "ROCK_PI_3A"
Expand Down Expand Up @@ -526,6 +527,7 @@
ROCK_PI_X,
ROCK_PI_E,
RADXA_ZERO,
RADXA_ZERO3,
ROCK_PI_5,
RADXA_CM3,
ROCK_PI_3A,
Expand Down

0 comments on commit 717172a

Please sign in to comment.