Added AMD Ryzen 3950x X570 and AMD Ryzen 4000 Mobile PCI revisions to AMD FP4 / AM4 sb600spi.c.
Trying to use flashrom to downgrade my Asus WS X570 ACE bios to a previous, more stable and performant version I just got this output:
flashrom -p internal flashrom v1.2 on Linux 5.8.13-dist (x86_64) flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found chipset "AMD FP4". Enabling flash write... FCH device found but SMBus revision 0x61 does not match known values.
So I patched mine and a friends MSI Modern 14 Ryzen 4700 laptop revisions in and we could both read the BIOS and I also tested flashing the Asus WS X570 ACE succesfully.
Signed-of-by: René Rebe rene@exactcode.de
diff --git a/sb600spi.c b/sb600spi.c index 5892d57..8a3c87d 100644 --- a/sb600spi.c +++ b/sb600spi.c @@ -143,7 +143,7 @@ static int determine_generation(struct pci_dev *dev) if (rev == 0x4a) { amd_gen = CHIPSET_YANGTZE; msg_pdbg("Yangtze detected.\n"); - } else if (rev == 0x4b) { + } else if (rev == 0x4b || rev == 0x51 || rev == 0x61) { amd_gen = CHIPSET_PROMONTORY; msg_pdbg("Promontory detected.\n"); } else {