board: vicharak vaaman and axon support
Vicharak has introduced Vaaman and Axon board which uses rk3399 and rk3588 respectively. Signed-off-by: djkabutar <d.kabutarwala@yahoo.com>
This commit is contained in:
parent
c9518b0a55
commit
e9a841ba66
2 changed files with 24 additions and 0 deletions
|
|
@ -173,6 +173,7 @@ class Board:
|
|||
or self._diet_pi_id()
|
||||
or self._asus_tinker_board_id()
|
||||
or self._vivid_unit_id()
|
||||
or self._vicharak_id()
|
||||
)
|
||||
elif chip_id == chips.RK3399PRO:
|
||||
board_id = self._asus_tinker_board_id()
|
||||
|
|
@ -197,6 +198,7 @@ class Board:
|
|||
or self._armbian_id()
|
||||
or self._rk3588_id()
|
||||
or self._ameridroid_id()
|
||||
or self._vicharak_id()
|
||||
)
|
||||
elif chip_id == chips.RYZEN_V1605B:
|
||||
board_id = self._udoo_id()
|
||||
|
|
@ -683,6 +685,16 @@ class Board:
|
|||
board = boards.ROCK_PI_3A
|
||||
return board
|
||||
|
||||
def _vicharak_id(self) -> Optional[str]:
|
||||
"""Check what type of Vicharak Board."""
|
||||
board_value = self.detector.get_device_model()
|
||||
board = None
|
||||
if board_value and "VAAMAN" in board_value.upper():
|
||||
board = boards.VAAMAN
|
||||
if board_value and "AXON" in board_value.upper():
|
||||
board = boards.AXON
|
||||
return board
|
||||
|
||||
def _libre_id(self) -> Optional[str]:
|
||||
"""Check what type of Libre Computer board."""
|
||||
board_value = self.detector.get_device_model()
|
||||
|
|
@ -1036,6 +1048,11 @@ class Board:
|
|||
"""Check whether the current board is any Rock Pi device."""
|
||||
return self.id in boards._ROCK_PI_IDS
|
||||
|
||||
@property
|
||||
def any_vicharak_board(self) -> bool:
|
||||
"""Check whether the current board is any vicharak device."""
|
||||
return self.id in boards._VICHARAK_BOARD_IDS
|
||||
|
||||
@property
|
||||
def any_clockwork_pi_board(self) -> bool:
|
||||
"""Check whether the current board is any Clockwork Pi device."""
|
||||
|
|
|
|||
|
|
@ -218,6 +218,10 @@ ROCK_PI_E = "ROCK_PI_E"
|
|||
ROCK_PI_5 = "ROCK_PI_5"
|
||||
ROCK_PI_5C = "ROCK_PI_5C"
|
||||
|
||||
# Vicharak Boards
|
||||
VAAMAN = "VAAMAN"
|
||||
AXON = "AXON"
|
||||
|
||||
GREATFET_ONE = "GREATFET_ONE"
|
||||
|
||||
# SeeedStudio boards
|
||||
|
|
@ -604,6 +608,9 @@ _ROCK_PI_IDS = (
|
|||
ROCK_PI_3C,
|
||||
)
|
||||
|
||||
# Vicharak Boards
|
||||
_VICHARAK_BOARD_IDS = (VAAMAN, AXON)
|
||||
|
||||
# UDOO
|
||||
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",), UDOO_X86: ("dummy",)}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue