inteltool: Add function to generate SPD dump.
E.g. on my MacbookAir to generate spd.bin to be used with coreboot I do: ./inteltool -S spd.bin Change-Id: If165475ed3e1f3262a8926ef619128d25b1e2896 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/11847 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
@ -111,7 +111,7 @@ static void dump_timings (void)
|
||||
/*
|
||||
* (G)MCH MMIO Config Space
|
||||
*/
|
||||
int print_mchbar(struct pci_dev *nb, struct pci_access *pacc)
|
||||
int print_mchbar(struct pci_dev *nb, struct pci_access *pacc, const char *dump_spd_file)
|
||||
{
|
||||
int i, size = (16 * 1024);
|
||||
uint64_t mchbar_phys;
|
||||
@ -265,7 +265,7 @@ int print_mchbar(struct pci_dev *nb, struct pci_access *pacc)
|
||||
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_M:
|
||||
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_E3:
|
||||
case PCI_DEVICE_ID_INTEL_CORE_3RD_GEN_015c:
|
||||
ivybridge_dump_timings();
|
||||
ivybridge_dump_timings(dump_spd_file);
|
||||
break;
|
||||
}
|
||||
unmap_physical((void *)mchbar, size);
|
||||
|
Reference in New Issue
Block a user