Adding Tinker Board detection
Adding detection for the ASUS Tinker Board SBC. SoC: Rockchip 3288 (RK3288)
This commit is contained in:
parent
1067d517c2
commit
98cdaa4bba
8 changed files with 16 additions and 0 deletions
|
|
@ -119,6 +119,8 @@ class Board:
|
|||
board_id = self._clockwork_pi_id()
|
||||
elif chip_id == chips.RK3308:
|
||||
board_id = self._rock_pi_id()
|
||||
elif chip_id == chips.RK3288:
|
||||
board_id = boards.ASUS_TINKER_BOARD
|
||||
elif chip_id == chips.RYZEN_V1605B:
|
||||
board_id = self._udoo_id()
|
||||
|
||||
|
|
|
|||
|
|
@ -130,6 +130,9 @@ class Chip:
|
|||
if self.detector.check_dt_compatible_value("rockchip,rk3308"):
|
||||
return chips.RK3308
|
||||
|
||||
if self.detector.check_dt_compatible_value("rockchip,rk3288"):
|
||||
return chips.RK3288
|
||||
|
||||
linux_id = None
|
||||
hardware = self.detector.get_cpuinfo_field("Hardware")
|
||||
|
||||
|
|
@ -212,6 +215,8 @@ class Chip:
|
|||
linux_id = chips.A64
|
||||
elif "sun50iw1p1" in hardware:
|
||||
linux_id = chips.A64
|
||||
elif "ASUS_TINKER_BOARD" in hardware:
|
||||
linux_id = chips.RK3288
|
||||
elif "Xilinx Zynq" in hardware:
|
||||
compatible = self.detector.get_device_compatible()
|
||||
if compatible and "xlnx,zynq-7000" in compatible:
|
||||
|
|
|
|||
|
|
@ -98,6 +98,8 @@ GREATFET_ONE = "GREATFET_ONE"
|
|||
UDOO_BOLT_V3 = "UDOO_BOLT_V3"
|
||||
UDOO_BOLT_V8 = "UDOO_BOLT_V8"
|
||||
|
||||
ASUS_TINKER_BOARD = "ASUS_TINKER_BOARD"
|
||||
|
||||
# pylint: enable=bad-whitespace
|
||||
|
||||
# OrangePI
|
||||
|
|
@ -345,5 +347,10 @@ _ONION_OMEGA_BOARD_IDS = (
|
|||
# Pine64 boards and devices
|
||||
_PINE64_DEV_IDS = (PINE64, PINEBOOK, PINEPHONE)
|
||||
|
||||
# ASUS Tinker Board
|
||||
_ASUS_TINKER_BOARD_DEV_IDS = (
|
||||
ASUS_TINKER_BOARD
|
||||
)
|
||||
|
||||
# UDOO
|
||||
_UDOO_BOARD_IDS = {UDOO_BOLT_V8: ("SC40-2000-0000-C0|C",)}
|
||||
|
|
|
|||
|
|
@ -30,5 +30,6 @@ A64 = "A64"
|
|||
A33 = "A33"
|
||||
RK3308 = "RK3308"
|
||||
LPC4330 = "LPC4330"
|
||||
RK3288 = "RK3288"
|
||||
|
||||
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2835", "BCM2837"}
|
||||
|
|
|
|||
1
bin/detect.py
Executable file → Normal file
1
bin/detect.py
Executable file → Normal file
|
|
@ -24,6 +24,7 @@ print("Is this a Clockwork Pi board?", detector.board.any_clockwork_pi_board)
|
|||
print("Is this an embedded Linux system?", detector.board.any_embedded_linux)
|
||||
print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC)
|
||||
print("Is this a UDOO Bolt?", detector.board.UDOO_BOLT)
|
||||
print("Is this an ASUS Tinker Board?", detector.board.ASUS_TINKER_BOARD)
|
||||
print(
|
||||
"Is this an OS environment variable special case?",
|
||||
detector.board.FTDI_FT232H
|
||||
|
|
|
|||
0
docs/conf.py
Executable file → Normal file
0
docs/conf.py
Executable file → Normal file
0
requirements.txt
Executable file → Normal file
0
requirements.txt
Executable file → Normal file
0
setup.py
Executable file → Normal file
0
setup.py
Executable file → Normal file
Loading…
Reference in a new issue