Merge pull request #370 from hajimef/develop

Added support for D-Robotics RDK-X3
This commit is contained in:
Melissa LeBlanc-Williams 2025-01-03 12:19:01 -08:00 committed by GitHub
commit 49b677907c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 0 deletions

View file

@ -228,6 +228,8 @@ class Board:
board_id = self._rv1103_id()
elif chip_id == chips.RV1106:
board_id = self._rv1106_id()
elif chip_id == chips.SUNRISE_X3:
board_id = boards.RDK_X3
self._board_id = board_id
return board_id
@ -1109,6 +1111,11 @@ class Board:
"""Check whether the current board is any Vivid Unit device."""
return self.id in boards._VIVID_UNIT_IDS
@property
def any_horizon_board(self):
"""Check whether the current board is any Horizon device."""
return self.id in boards._HORIZON_IDS
@property
def os_environ_board(self) -> bool:
"""Check whether the current board is an OS environment variable special case."""
@ -1180,6 +1187,7 @@ class Board:
yield self.any_luckfox_pico_board
yield self.any_vivid_unit
yield self.any_starfive_id
yield self.any_horizon_board
return any(condition for condition in lazily_generate_conditions())

View file

@ -321,6 +321,9 @@ class Chip:
if self.detector.check_dt_compatible_value("light-lpi4a"):
return chips.TH1520
if self.detector.check_dt_compatible_value("hobot,x3"):
return chips.SUNRISE_X3
linux_id = None
hardware = self.detector.get_cpuinfo_field("Hardware")

View file

@ -252,6 +252,9 @@ LUCKFOX_PICO_PLUS = "LUCKFOX_PICO_PLUS"
# Ameridroid boards
INDIEDROID_NOVA = "INDIEDROID_NOVA"
# Horizon
RDK_X3 = "RDK_X3"
# StarFive boards
_STARFIVE_BOARD_IDS = (VISIONFIVE2,)
# Asus Tinkerboard
@ -632,6 +635,9 @@ _LUCKFOX_IDS = (
LUCKFOX_PICO_PLUS,
)
# Horizon
_HORIZON_IDS = (RDK_X3,)
_AMERIDROID_IDS = (INDIEDROID_NOVA,)
# Agnostic board

View file

@ -81,6 +81,7 @@ D1_RISCV = "D1_RISCV"
ATOM_J4105 = "ATOM_J4105"
TH1520 = "TH1520"
K1 = "K1"
SUNRISE_X3 = "SUNRISE_X3"
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}