Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 @@ -243,6 +243,8 @@ def id(self) -> Optional[str]:
board_id = self._rv1106_id()
elif chip_id == chips.SUNRISE_X3:
board_id = boards.RDK_X3
elif chip_id == chips.SUNRISE_X5:
board_id = boards.RDK_X5
elif chip_id == chips.QCM6490:
board_id = boards.PARTICLE_TACHYON
self._board_id = board_id
Expand Down
3 changes: 3 additions & 0 deletions adafruit_platformdetect/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ def _linux_id(self) -> Optional[str]:
if self.detector.check_dt_compatible_value("hobot,x3"):
return chips.SUNRISE_X3

if self.detector.check_dt_compatible_value("Horizon, x5"):
return chips.SUNRISE_X5

if self.detector.check_dt_compatible_value("particle,tachyon"):
return chips.QCM6490

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 @@ -270,6 +270,7 @@

# Horizon
RDK_X3 = "RDK_X3"
RDK_X5 = "RDK_X5"

# Particle
PARTICLE_TACHYON = "PARTICLE_TACHYON"
Expand Down Expand Up @@ -702,7 +703,7 @@
)

# Horizon
_HORIZON_IDS = (RDK_X3,)
_HORIZON_IDS = (RDK_X3, RDK_X5)

_AMERIDROID_IDS = (INDIEDROID_NOVA,)

Expand Down
1 change: 1 addition & 0 deletions adafruit_platformdetect/constants/chips.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
RZV2N = "RZV2N"
RZV2H = "RZV2H"
SUNRISE_X3 = "SUNRISE_X3"
SUNRISE_X5 = "SUNRISE_X5"
QCM6490 = "QCM6490"

BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}
Expand Down
3 changes: 3 additions & 0 deletions bin/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,6 @@

if detector.board.any_walnutpi:
print("Walnut Pi detected.")

if detector.board.any_horizon_board:
print("Horizon detected.")
Loading