Added board MilkV Duo
This commit is contained in:
parent
47efdb51c3
commit
9cf551506f
5 changed files with 21 additions and 0 deletions
|
|
@ -203,6 +203,8 @@ class Board:
|
|||
board_id = self._armbian_id()
|
||||
elif chip_id == chips.S905X:
|
||||
board_id = boards.AML_S905X_CC
|
||||
elif chip_id == chips.CV1800B:
|
||||
board_id = boards.MILKV_DUO
|
||||
self._board_id = board_id
|
||||
return board_id
|
||||
|
||||
|
|
@ -418,6 +420,8 @@ class Board:
|
|||
board = boards.PCDUINO3
|
||||
elif board_value == "rock-3a":
|
||||
board = boards.ROCK_PI_3A
|
||||
elif board_value == "milkv_duo":
|
||||
board = boards.MILKV_DUO
|
||||
return board
|
||||
|
||||
# pylint: enable=too-many-return-statements
|
||||
|
|
@ -864,6 +868,11 @@ class Board:
|
|||
"""Check whether the current board is any Pine64 device."""
|
||||
return self.id in boards._PINE64_DEV_IDS
|
||||
|
||||
@property
|
||||
def any_milkv_board(self) -> bool:
|
||||
"""Check whether the current board is any MilkV device."""
|
||||
return self.id in boards._MILKV_IDS_
|
||||
|
||||
@property
|
||||
def any_rock_pi_board(self) -> bool:
|
||||
"""Check whether the current board is any Rock Pi device."""
|
||||
|
|
@ -1002,6 +1011,7 @@ class Board:
|
|||
yield self.any_nxp_navq_board
|
||||
yield self.any_walnutpi
|
||||
yield self.any_olimex_lime2_board
|
||||
yield self.any_milkv_board
|
||||
|
||||
return any(condition for condition in lazily_generate_conditions())
|
||||
|
||||
|
|
|
|||
|
|
@ -355,6 +355,8 @@ class Chip:
|
|||
linux_id = chips.H5
|
||||
if compatible and "odroid-xu4" in compatible:
|
||||
linux_id = chips.EXYNOS5422
|
||||
if compatible and "cvitek,cv180x" in compatible:
|
||||
linux_id = chips.CV1800B
|
||||
cpu_model = self.detector.get_cpuinfo_field("cpu model")
|
||||
|
||||
if cpu_model is not None:
|
||||
|
|
|
|||
|
|
@ -214,6 +214,9 @@ UDOO_X86 = "UDOO_X86"
|
|||
MAAXBOARD = "MAAXBOARD"
|
||||
MAAXBOARD_MINI = "MAAXBOARD_MINI"
|
||||
|
||||
# Shenzhen MilkV Technology boards ids
|
||||
MILKV_DUO = "MILKV_DUO"
|
||||
|
||||
# Khadas VIM3
|
||||
KHADAS_VIM3 = "KHADAS_VIM3"
|
||||
|
||||
|
|
@ -559,3 +562,5 @@ _LIBRE_COMPUTER_IDS = (
|
|||
NXP_IMX8MPLUS_SOM = "NXP_IMX8MPLUS_SOM"
|
||||
|
||||
_NXP_SOM_IDS = (NXP_IMX8MPLUS_SOM,)
|
||||
|
||||
_MILKV_IDS_ = (MILKV_DUO,)
|
||||
|
|
|
|||
|
|
@ -75,3 +75,6 @@ D1_RISCV = "D1_RISCV"
|
|||
ATOM_J4105 = "ATOM_J4105"
|
||||
|
||||
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}
|
||||
|
||||
CV1800B = "CV1800B"
|
||||
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ print("Is this a Seeed Board?", detector.board.any_seeed_board)
|
|||
print("Is this a UDOO board?", detector.board.any_udoo_board)
|
||||
print("Is this an ASUS Tinker board?", detector.board.any_asus_tinker_board)
|
||||
print("Is this an STM32MP1 board?", detector.board.any_stm32mp1)
|
||||
print("Is this a MilkV board?", detector.board.any_milkv_board)
|
||||
print("Is this a generic Linux PC?", detector.board.generic_linux)
|
||||
print(
|
||||
"Is this an OS environment variable special case?", detector.board.os_environ_board
|
||||
|
|
|
|||
Loading…
Reference in a new issue