From 9e3c7e6d7d124326b391ab00a56c5d547128adf8 Mon Sep 17 00:00:00 2001 From: anonymouscowhead Date: Sun, 3 Mar 2024 22:14:06 -0500 Subject: [PATCH] add detection of Pine64 Quartz64 model A board --- adafruit_platformdetect/board.py | 2 ++ adafruit_platformdetect/constants/boards.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index 02dcd4b..f36d6d5 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -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]: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 472b2b7..2cd7308 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -189,6 +189,7 @@ PINEBOOK = "PINEBOOK" PINEPHONE = "PINEPHONE" SOPINE = "SOPINE" +QUARTZ64_A = "QUARTZ64_A" RADXA_ZERO = "RADXA_ZERO" RADXA_CM3 = "RADXA_CM3" @@ -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)