util/inteltool: Add pci ids for 4 northbridge models instead of 1.
This patch supports northbridges: 0x0150 0x0154 0x0158 0x015c as 3rd gen core. Tested on 0x0150 (0x0154 previously only model). Change-Id: I53a33d864494dd4ac1cb9e8330450f56001ed92c Signed-off-by: Damien Zammit <damien@zamaudio.com> Reviewed-on: http://review.coreboot.org/5873 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
0240f9492b
commit
601da481b5
|
@ -74,7 +74,10 @@ static const struct {
|
||||||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_0TH_GEN, "0th generation (Nehalem family) Core Processor" },
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_0TH_GEN, "0th generation (Nehalem family) Core Processor" },
|
||||||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_1ST_GEN, "1st generation (Westmere family) Core Processor" },
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_1ST_GEN, "1st generation (Westmere family) Core Processor" },
|
||||||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_2ND_GEN, "2nd generation (Sandy Bridge family) Core Processor" },
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_2ND_GEN, "2nd generation (Sandy Bridge family) Core Processor" },
|
||||||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN, "3rd generation (Ivy Bridge family) Core Processor" },
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_A, "3rd generation (Ivy Bridge family) Core Processor" },
|
||||||
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_B, "3rd generation (Ivy Bridge family) Core Processor" },
|
||||||
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_C, "3rd generation (Ivy Bridge family) Core Processor" },
|
||||||
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_D, "3rd generation (Ivy Bridge family) Core Processor" },
|
||||||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_4TH_GEN, "4th generation (Haswell family) Core Processor" },
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CORE_4TH_GEN, "4th generation (Haswell family) Core Processor" },
|
||||||
/* Southbridges (LPC controllers) */
|
/* Southbridges (LPC controllers) */
|
||||||
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371XX, "371AB/EB/MB" },
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371XX, "371AB/EB/MB" },
|
||||||
|
|
|
@ -154,7 +154,10 @@
|
||||||
#define PCI_DEVICE_ID_INTEL_CORE_0TH_GEN 0xd132 /* Nehalem */
|
#define PCI_DEVICE_ID_INTEL_CORE_0TH_GEN 0xd132 /* Nehalem */
|
||||||
#define PCI_DEVICE_ID_INTEL_CORE_1ST_GEN 0x0044 /* Westmere */
|
#define PCI_DEVICE_ID_INTEL_CORE_1ST_GEN 0x0044 /* Westmere */
|
||||||
#define PCI_DEVICE_ID_INTEL_CORE_2ND_GEN 0x0104 /* Sandy Bridge */
|
#define PCI_DEVICE_ID_INTEL_CORE_2ND_GEN 0x0104 /* Sandy Bridge */
|
||||||
#define PCI_DEVICE_ID_INTEL_CORE_3RD_GEN 0x0154 /* Ivy Bridge */
|
#define PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_A 0x0150 /* Ivy Bridge */
|
||||||
|
#define PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_B 0x0154 /* Ivy Bridge */
|
||||||
|
#define PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_C 0x0158 /* Ivy Bridge */
|
||||||
|
#define PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_D 0x015c /* Ivy Bridge */
|
||||||
#define PCI_DEVICE_ID_INTEL_CORE_4TH_GEN 0x0c04 /* Haswell */
|
#define PCI_DEVICE_ID_INTEL_CORE_4TH_GEN 0x0c04 /* Haswell */
|
||||||
|
|
||||||
#define ARRAY_SIZE(a) ((int)(sizeof(a) / sizeof((a)[0])))
|
#define ARRAY_SIZE(a) ((int)(sizeof(a) / sizeof((a)[0])))
|
||||||
|
|
|
@ -251,7 +251,10 @@ int print_mchbar(struct pci_dev *nb, struct pci_access *pacc)
|
||||||
case PCI_DEVICE_ID_INTEL_CORE_2ND_GEN:
|
case PCI_DEVICE_ID_INTEL_CORE_2ND_GEN:
|
||||||
mch_registers = sandybridge_mch_registers;
|
mch_registers = sandybridge_mch_registers;
|
||||||
size = ARRAY_SIZE(sandybridge_mch_registers);
|
size = ARRAY_SIZE(sandybridge_mch_registers);
|
||||||
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN: /* pretty printing not implemented yet */
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_A: /* pretty printing not implemented yet */
|
||||||
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_B:
|
||||||
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_C:
|
||||||
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_D:
|
||||||
mchbar_phys = pci_read_long(nb, 0x48);
|
mchbar_phys = pci_read_long(nb, 0x48);
|
||||||
mchbar_phys |= ((uint64_t)pci_read_long(nb, 0x4c)) << 32;
|
mchbar_phys |= ((uint64_t)pci_read_long(nb, 0x4c)) << 32;
|
||||||
mchbar_phys &= 0x0000007fffff8000UL; /* 38:15 */
|
mchbar_phys &= 0x0000007fffff8000UL; /* 38:15 */
|
||||||
|
|
|
@ -239,7 +239,10 @@ int print_dmibar(struct pci_dev *nb)
|
||||||
case PCI_DEVICE_ID_INTEL_CORE_2ND_GEN:
|
case PCI_DEVICE_ID_INTEL_CORE_2ND_GEN:
|
||||||
dmi_registers = sandybridge_dmi_registers;
|
dmi_registers = sandybridge_dmi_registers;
|
||||||
size = ARRAY_SIZE(sandybridge_dmi_registers);
|
size = ARRAY_SIZE(sandybridge_dmi_registers);
|
||||||
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN: /* pretty printing not implemented yet */
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_A: /* pretty printing not implemented yet */
|
||||||
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_B:
|
||||||
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_C:
|
||||||
|
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_D:
|
||||||
dmibar_phys = pci_read_long(nb, 0x68);
|
dmibar_phys = pci_read_long(nb, 0x68);
|
||||||
dmibar_phys |= ((uint64_t)pci_read_long(nb, 0x6c)) << 32;
|
dmibar_phys |= ((uint64_t)pci_read_long(nb, 0x6c)) << 32;
|
||||||
dmibar_phys &= 0x0000007ffffff000UL; /* 38:12 */
|
dmibar_phys &= 0x0000007ffffff000UL; /* 38:12 */
|
||||||
|
|
Loading…
Reference in New Issue