Skip to content

Commit 2f650af

Browse files
committed
Add support for detecting AMD Zynq UltraScale+ MPSoCs
Those boards identify with detector.chip.ZYNQMP == True.
1 parent 7c8db42 commit 2f650af

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

adafruit_platformdetect/chip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ def _linux_id(self) -> Optional[str]:
427427
linux_id = chips.EXYNOS5422
428428
if compatible and "cvitek,cv180x" in compatible:
429429
linux_id = chips.CV1800B
430+
if compatible and "xlnx,zynqmp" in compatible:
431+
linux_id = chips.ZYNQMP
430432
cpu_model = self.detector.get_cpuinfo_field("cpu model")
431433

432434
if cpu_model is not None:

adafruit_platformdetect/constants/chips.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
SUNRISE_X3 = "SUNRISE_X3"
9393
SUNRISE_X5 = "SUNRISE_X5"
9494
QCM6490 = "QCM6490"
95+
ZYNQMP = "ZYNQMP"
9596

9697
BCM_RANGE = {"BCM2708", "BCM2709", "BCM2711", "BCM2712", "BCM2835", "BCM2837"}
9798

0 commit comments

Comments
 (0)