Add support for Tinker Board 2 and Tinker Edge R

This commit is contained in:
tooz 2023-06-20 12:03:32 +08:00
parent 9082e332cb
commit e7ddeac4e8
4 changed files with 17 additions and 1 deletions

View file

@ -614,6 +614,12 @@ class Board:
board = None board = None
if board_value and "ASUS Tinker Board" in board_value: if board_value and "ASUS Tinker Board" in board_value:
board = boards.ASUS_TINKER_BOARD board = boards.ASUS_TINKER_BOARD
if board_value and "ASUS TINKER BOARD 2" in board_value:
board = boards.ASUS_TINKER_BOARD_2
if board_value and "ASUS_TINKER_EDGE_R" in board_value:
board = boards.ASUS_TINKER_EDGE_R
print("board: {}".format(board))
return board return board
def _pcduino_board_id(self) -> Optional[str]: def _pcduino_board_id(self) -> Optional[str]:

View file

@ -226,6 +226,9 @@ class Chip:
if self.detector.check_dt_compatible_value("radxa,rock-4c-plus"): if self.detector.check_dt_compatible_value("radxa,rock-4c-plus"):
return chips.RK3399_T return chips.RK3399_T
if self.detector.check_dt_compatible_value("rockchip,rk3399pro"):
return chips.RK3399PRO
if self.detector.check_dt_compatible_value("rockchip,rk3399"): if self.detector.check_dt_compatible_value("rockchip,rk3399"):
return chips.RK3399 return chips.RK3399

View file

@ -35,6 +35,8 @@ GIANT_BOARD = "GIANT_BOARD"
# ASUS Tinker Boards # ASUS Tinker Boards
ASUS_TINKER_BOARD = "ASUS_TINKER_BOARD" ASUS_TINKER_BOARD = "ASUS_TINKER_BOARD"
ASUS_TINKER_BOARD_2 = "ASUS_TINKER_BOARD_2"
ASUS_TINKER_EDGE_R = "ASUS_TINKER_EDGE_R"
# Clockwork Pi boards # Clockwork Pi boards
CLOCKWORK_CPI3 = "CLOCKWORK_CPI3" CLOCKWORK_CPI3 = "CLOCKWORK_CPI3"
@ -203,7 +205,11 @@ KHADAS_VIM3 = "KHADAS_VIM3"
_KHADAS_40_PIN_IDS = (KHADAS_VIM3,) _KHADAS_40_PIN_IDS = (KHADAS_VIM3,)
# Asus Tinkerboard # Asus Tinkerboard
_ASUS_TINKER_BOARD_IDS = (ASUS_TINKER_BOARD,) _ASUS_TINKER_BOARD_IDS = (
ASUS_TINKER_BOARD,
ASUS_TINKER_BOARD_2,
ASUS_TINKER_EDGE_R
)
# STM32MP1 # STM32MP1
_STM32MP1_IDS = ( _STM32MP1_IDS = (

View file

@ -55,6 +55,7 @@ H616 = "H616"
RK3308 = "RK3308" RK3308 = "RK3308"
RK3399 = "RK3399" RK3399 = "RK3399"
RK3399_T = "RK3399_T" RK3399_T = "RK3399_T"
RK3399PRO = "RK3399PRO"
RK3328 = "RK3328" RK3328 = "RK3328"
LPC4330 = "LPC4330" LPC4330 = "LPC4330"
RK3288 = "RK3288" RK3288 = "RK3288"