Add option to skip p2a bridge disable
Add a new constructor for P2aDataHandler with skipBridgeDisable bool to
enable an option to skip disableBridge() in AspeedPciBridge and
NuvotonPciBridge.
Signed-off-by: Willy Tu <wltu@google.com>
Change-Id: I439bbaa2b7295adc54a8aa98157db60a7e820837
diff --git a/tools/p2a.cpp b/tools/p2a.cpp
index c18df99..090b9bd 100644
--- a/tools/p2a.cpp
+++ b/tools/p2a.cpp
@@ -55,14 +55,14 @@
try
{
- bridge = std::make_unique<NuvotonPciBridge>(pci);
+ bridge = std::make_unique<NuvotonPciBridge>(pci, skipBridgeDisable);
}
catch (NotFoundException& e)
{}
try
{
- bridge = std::make_unique<AspeedPciBridge>(pci);
+ bridge = std::make_unique<AspeedPciBridge>(pci, skipBridgeDisable);
}
catch (NotFoundException& e)
{}