soc: intel_adsp: tools: sort cAVS2.5 PCI DIDs in cavstool.py

Numerically sort the PCI DIDs for cAVS2.5 hardware. This follows
the convention in e.g. Linux and coreboot and eases maintainance. No
functional change.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
This commit is contained in:
Kai Vehmanen 2024-10-11 18:37:50 +03:00 committed by Alberto Escolar
parent 2c79024b2f
commit 7ad012d3bb

View file

@ -217,7 +217,7 @@ def map_regs(log_only):
# Platform/quirk detection. ID lists cribbed from the SOF kernel driver
global cavs25, ace15, ace20, ace30
did = int(open(f"{pcidir}/device").read().rstrip(), 16)
cavs25 = did in [ 0xa0c8, 0x43c8, 0x4b55, 0x4b58, 0x7ad0, 0x51c8 ]
cavs25 = did in [ 0x43c8, 0x4b55, 0x4b58, 0x51c8, 0x7ad0, 0xa0c8 ]
ace15 = did in [ 0x7728, 0x7f50, 0x7e28 ]
ace20 = did in [ 0xa828 ]
ace30 = did in [ 0xe428 ]