diff --git a/adafruit_platformdetect/board.py b/adafruit_platformdetect/board.py index e8e6254..460f9e1 100644 --- a/adafruit_platformdetect/board.py +++ b/adafruit_platformdetect/board.py @@ -368,7 +368,8 @@ def _armbian_id(self) -> Optional[str]: board = boards.PCDUINO2 elif board_value == "pcduino3": board = boards.PCDUINO3 - + elif board_value == "rock-3a": + board = boards.ROCK_PI_3A return board # pylint: enable=too-many-return-statements @@ -499,6 +500,8 @@ def _rk3568_id(self) -> Optional[str]: board = None if board_value and "LubanCat2" in board_value: board = boards.LUBANCAT2 + if board_value and "ROCK3 Model A" in board_value: + board = boards.ROCK_PI_3A return board def _rock_pi_id(self) -> Optional[str]: @@ -517,6 +520,8 @@ def _rock_pi_id(self) -> Optional[str]: board = boards.ROCK_PI_5 if board_value and "RADXA ROCK 4C+" in board_value.upper(): board = boards.ROCK_PI_4_C_PLUS + if board_value and "ROCK3 Model A" in board_value: + board = boards.ROCK_PI_3A return board def _clockwork_pi_id(self) -> Optional[str]: diff --git a/adafruit_platformdetect/constants/boards.py b/adafruit_platformdetect/constants/boards.py index 5becca3..f698c58 100644 --- a/adafruit_platformdetect/constants/boards.py +++ b/adafruit_platformdetect/constants/boards.py @@ -166,6 +166,7 @@ RADXA_ZERO = "RADXA_ZERO" RADXA_CM3 = "RADXA_CM3" +ROCK_PI_3A = "ROCK_PI_3A" ROCK_PI_S = "ROCK_PI_S" ROCK_PI_4 = "ROCK_PI_4" ROCK_PI_4_C_PLUS = "ROCK_PI_4C+" @@ -550,6 +551,7 @@ RADXA_ZERO, ROCK_PI_5, RADXA_CM3, + ROCK_PI_3A, ) # UDOO