Skip to content

Commit 03fd0ea

Browse files
authored
Merge pull request #345 from anonymouscowhead/add-quartz64a
add detection of Pine64 Quartz64 model A board
2 parents 0bb023d + 9e3c7e6 commit 03fd0ea

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ def _rk3566_id(self) -> Optional[str]:
579579
board = boards.ORANGE_PI_3B
580580
if board_value and "Hardkernel ODROID-M1S" in board_value:
581581
board = boards.ODROID_M1S
582+
elif "quartz64-a" in board_value.lower():
583+
board = boards.QUARTZ64_A
582584
return board
583585

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

adafruit_platformdetect/constants/boards.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
PINEBOOK = "PINEBOOK"
190190
PINEPHONE = "PINEPHONE"
191191
SOPINE = "SOPINE"
192+
QUARTZ64_A = "QUARTZ64_A"
192193

193194
RADXA_ZERO = "RADXA_ZERO"
194195
RADXA_CM3 = "RADXA_CM3"
@@ -511,7 +512,7 @@
511512
_ONION_OMEGA_BOARD_IDS = (ONION_OMEGA, ONION_OMEGA2)
512513

513514
# Pine64 boards and devices
514-
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE)
515+
_PINE64_DEV_IDS = (PINE64, PINEH64, PINEBOOK, PINEPHONE, SOPINE, QUARTZ64_A)
515516

516517
# Pcduino baords
517518
_PCDUINO_DEV_IDS = (PCDUINO2, PCDUINO3)

0 commit comments

Comments
 (0)