Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add detection of Pine64 Quartz64 model A board #345

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions adafruit_platformdetect/board.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ def _rk3566_id(self) -> Optional[str]:
board = boards.ORANGE_PI_3B
if board_value and "Hardkernel ODROID-M1S" in board_value:
board = boards.ODROID_M1S
elif "quartz64-a" in board_value.lower():
board = boards.QUARTZ64_A
return board

def _rk3568_id(self) -> Optional[str]:
Expand Down
3 changes: 2 additions & 1 deletion adafruit_platformdetect/constants/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
PINEBOOK = "PINEBOOK"
PINEPHONE = "PINEPHONE"
SOPINE = "SOPINE"
QUARTZ64_A = "QUARTZ64_A"

RADXA_ZERO = "RADXA_ZERO"
RADXA_CM3 = "RADXA_CM3"
Expand Down Expand Up @@ -511,7 +512,7 @@
_ONION_OMEGA_BOARD_IDS = (ONION_OMEGA, ONION_OMEGA2)

# Pine64 boards and devices
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE)
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE, QUARTZ64_A)

# Pcduino baords
_PCDUINO_DEV_IDS = (PCDUINO2, PCDUINO3)
Expand Down