Merge pull request #260 from mmontol/main
Add supprot for LubanCat Zero,LubanCat1 and LubanCat2
This commit is contained in:
commit
cd400bb55d
4 changed files with 40 additions and 1 deletions
|
|
@ -155,6 +155,10 @@ class Board:
|
|||
board_id = self._asus_tinker_board_id()
|
||||
elif chip_id == chips.RK3328:
|
||||
board_id = self._rock_pi_id()
|
||||
elif chip_id == chips.RK3566:
|
||||
board_id = self._rk3566_id()
|
||||
elif chip_id == chips.RK3568:
|
||||
board_id = self._rk3568_id()
|
||||
elif chip_id == chips.RK3588:
|
||||
board_id = self._rock_pi_id()
|
||||
elif chip_id == chips.RYZEN_V1605B:
|
||||
|
|
@ -469,6 +473,24 @@ class Board:
|
|||
except FileNotFoundError:
|
||||
return None
|
||||
|
||||
def _rk3566_id(self) -> Optional[str]:
|
||||
"""Check what type of rk3566 board."""
|
||||
board_value = self.detector.get_device_model()
|
||||
board = None
|
||||
if board_value and "LubanCat-Zero" in board_value:
|
||||
board = boards.LUBANCAT_ZERO
|
||||
if board_value and "LubanCat1" in board_value:
|
||||
board = boards.LUBANCAT1
|
||||
return board
|
||||
|
||||
def _rk3568_id(self) -> Optional[str]:
|
||||
"""Check what type of rk3568 board."""
|
||||
board_value = self.detector.get_device_model()
|
||||
board = None
|
||||
if board_value and "LubanCat2" in board_value:
|
||||
board = boards.LUBANCAT2
|
||||
return board
|
||||
|
||||
def _rock_pi_id(self) -> Optional[str]:
|
||||
"""Check what type of Rock Pi board."""
|
||||
board_value = self.detector.get_device_model()
|
||||
|
|
|
|||
|
|
@ -218,6 +218,12 @@ class Chip:
|
|||
if self.detector.check_dt_compatible_value("rockchip,rk3328"):
|
||||
return chips.RK3328
|
||||
|
||||
if self.detector.check_dt_compatible_value("rockchip,rk3566"):
|
||||
return chips.RK3566
|
||||
|
||||
if self.detector.check_dt_compatible_value("rockchip,rk3568"):
|
||||
return chips.RK3568
|
||||
|
||||
if self.detector.check_dt_compatible_value("rockchip,rk3588"):
|
||||
return chips.RK3588
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,9 @@ STMP157_OLINUXINO_LIME2 = "STMP157_OLINUXINO_LIME2"
|
|||
# Embedfire LubanCat board
|
||||
LUBANCAT_IMX6ULL = "LUBANCAT_IMX6ULL"
|
||||
LUBANCAT_STM32MP157 = "LUBANCAT_STM32MP157"
|
||||
LUBANCAT_ZERO = "LUBANCAT_ZERO"
|
||||
LUBANCAT1 = "LUBANCAT1"
|
||||
LUBANCAT2 = "LUBANCAT2"
|
||||
|
||||
# Various Raspberry Pi models
|
||||
RASPBERRY_PI_B_REV1 = "RASPBERRY_PI_B_REV1"
|
||||
|
|
@ -220,7 +223,13 @@ _NANOPI_IDS = (NANOPI_NEO_AIR, NANOPI_DUO2, NANOPI_NEO)
|
|||
_BANANA_PI_IDS = (BANANA_PI_M2_ZERO, BANANA_PI_M2_PLUS, BANANA_PI_M5)
|
||||
|
||||
# LubanCat
|
||||
_LUBANCAT_IDS = (LUBANCAT_IMX6ULL, LUBANCAT_STM32MP157)
|
||||
_LUBANCAT_IDS = (
|
||||
LUBANCAT_IMX6ULL,
|
||||
LUBANCAT_STM32MP157,
|
||||
LUBANCAT_ZERO,
|
||||
LUBANCAT1,
|
||||
LUBANCAT2,
|
||||
)
|
||||
|
||||
# Coral boards
|
||||
_CORAL_IDS = (CORAL_EDGE_TPU_DEV, CORAL_EDGE_TPU_DEV_MINI)
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ RK3399 = "RK3399"
|
|||
RK3328 = "RK3328"
|
||||
LPC4330 = "LPC4330"
|
||||
RK3288 = "RK3288"
|
||||
RK3566 = "RK3566"
|
||||
RK3568 = "RK3568"
|
||||
RK3588 = "RK3588"
|
||||
PENTIUM_N3710 = "PENTIUM_N3710" # SOC Braswell core
|
||||
STM32F405 = "STM32F405"
|
||||
|
|
|
|||
Loading…
Reference in a new issue