Merge pull request #370 from hajimef/develop
Added support for D-Robotics RDK-X3
This commit is contained in:
commit
49b677907c
4 changed files with 18 additions and 0 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue