* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / x86 / flashrom / amd.patch
blob44ea34c2362d371aed5ba9f6416a0ecaee685b58
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../flashrom/amd.patch
5 # Copyright (C) 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Added AMD Ryzen 4000 Mobile and AMD Ryzen 3950x PCI revisions
18 to AMD FP4 / AM4 sb600spi.c.
20 Signed-of-by: René Rebe <rene@exactcode.de>
22 diff --git a/sb600spi.c b/sb600spi.c
23 index 5892d57..8a3c87d 100644
24 --- a/sb600spi.c
25 +++ b/sb600spi.c
26 @@ -143,7 +143,7 @@ static int determine_generation(struct pci_dev *dev)
27 if (rev == 0x4a) {
28 amd_gen = CHIPSET_YANGTZE;
29 msg_pdbg("Yangtze detected.\n");
30 - } else if (rev == 0x4b) {
31 + } else if (rev == 0x4b || rev == 0x51 || rev == 0x61) {
32 amd_gen = CHIPSET_PROMONTORY;
33 msg_pdbg("Promontory detected.\n");
34 } else {