inteltool: Support for nasty Primary to Sideband Bridge (P2SB)
The Primary to Sideband Bridge (P2SB) is the interface to Private Con- figuration Registers (PCR) including GPIO configuration. Of course, access is restricted to Intel partners and criminals, so the PCI device is hidden from the OS. Probably we only need to fetch the SBREG_BAR address and can hide the PCI device again after that. Change-Id: Ic121a09f021708aab82ae4b9d76d6c3c6fb884fa Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/19588 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
76a4f71e89
commit
99b02a1d7c
@@ -24,6 +24,7 @@
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
#include "inteltool.h"
|
||||
#include "pcr.h"
|
||||
|
||||
#ifdef __NetBSD__
|
||||
#include <machine/sysarch.h>
|
||||
@@ -511,6 +512,7 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
pacc = pci_alloc();
|
||||
pacc->method = PCI_ACCESS_I386_TYPE1;
|
||||
pci_init(pacc);
|
||||
pci_scan_bus(pacc);
|
||||
|
||||
@@ -681,6 +683,7 @@ int main(int argc, char *argv[])
|
||||
print_sgx();
|
||||
|
||||
/* Clean up */
|
||||
pcr_cleanup();
|
||||
if (ahci)
|
||||
pci_free_dev(ahci);
|
||||
if (gfx)
|
||||
|
Reference in New Issue
Block a user