lpc_handler also requires a BMC address for mapping
Rename the PCI_PHYSICAL_ADDRESS to MAPPED_ADDRESS to refer to a region
of BMC memory reserved for the mapping.
Change-Id: Ie3f0a87a92c985cae0770162bf957caa1c035f82
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/main.cpp b/main.cpp
index 0a43b96..7d87f27 100644
--- a/main.cpp
+++ b/main.cpp
@@ -21,15 +21,17 @@
#ifdef ENABLE_LPC_BRIDGE
#if defined(ASPEED_LPC)
-LpcDataHandler lpcDataHandler(LpcMapperAspeed::createAspeedMapper());
+LpcDataHandler lpcDataHandler(MAPPED_ADDRESS,
+ LpcMapperAspeed::createAspeedMapper());
#elif defined(NUVOTON_LPC)
-LpcDataHandler lpcDataHandler(LpcMapperNuvoton::createNuvotonMapper());
+LpcDataHandler lpcDataHandler(MAPPED_ADDRESS,
+ LpcMapperNuvoton::createNuvotonMapper());
#else
#error "You must specify a hardware implementation."
#endif
#endif
-PciDataHandler pciDataHandler(PCI_PHYSICAL_ADDRESS);
+PciDataHandler pciDataHandler(MAPPED_ADDRESS);
std::vector<HandlerPack> supportedFirmware = {
{FirmwareBlobHandler::hashBlobID, &hashHandler},