Support for Particle Tachyon

This commit is contained in:
Technobly 2025-04-29 11:07:30 -05:00
parent 80ec116668
commit 16e3e94bf4
4 changed files with 18 additions and 0 deletions

View file

@ -243,6 +243,8 @@ class Board:
board_id = self._rv1106_id()
elif chip_id == chips.SUNRISE_X3:
board_id = boards.RDK_X3
elif chip_id == chips.QCM6490:
board_id = boards.PARTICLE_TACHYON
self._board_id = board_id
return board_id
@ -1198,6 +1200,11 @@ class Board:
"""Check whether the current board is any Horizon device."""
return self.id in boards._HORIZON_IDS
@property
def any_particle_board(self):
"""Check whether the current board is any Particle device."""
return self.id in boards._PARTICLE_IDS
@property
def os_environ_board(self) -> bool:
"""Check whether the current board is an OS environment variable special case."""
@ -1272,6 +1279,7 @@ class Board:
yield self.any_vivid_unit
yield self.any_starfive_id
yield self.any_horizon_board
yield self.any_particle_board
return any(condition for condition in lazily_generate_conditions())

View file

@ -349,6 +349,9 @@ class Chip:
if self.detector.check_dt_compatible_value("hobot,x3"):
return chips.SUNRISE_X3
if self.detector.check_dt_compatible_value("particle,tachyon"):
return chips.QCM6490
linux_id = None
hardware = self.detector.get_cpuinfo_field("Hardware")

View file

@ -270,6 +270,9 @@ INDIEDROID_NOVA = "INDIEDROID_NOVA"
# Horizon
RDK_X3 = "RDK_X3"
# Particle
PARTICLE_TACHYON = "PARTICLE_TACHYON"
# StarFive boards
_STARFIVE_BOARD_IDS = (VISIONFIVE2,)
# Asus Tinkerboard
@ -688,5 +691,8 @@ _HORIZON_IDS = (RDK_X3,)
_AMERIDROID_IDS = (INDIEDROID_NOVA,)
# Particle
_PARTICLE_IDS = (PARTICLE_TACHYON,)
# Agnostic board
OS_AGNOSTIC_BOARD = "OS_AGNOSTIC_BOARD"

View file

@ -87,6 +87,7 @@ K1 = "K1"
RZV2N = "RZV2N"
RZV2H = "RZV2H"
SUNRISE_X3 = "SUNRISE_X3"
QCM6490 = "QCM6490"
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}