add lpc mapping interface and stubs
Add an lpc mapping interface to allow for multiple mapping
implementations, such as one for Aspeed and one for Nuvoton.
Add empty implementations for Aspeed and Nuvoton.
Add configuration options to enable aspeed or nuvoton lpc.
Change-Id: I3fd2b1e437db6366c7656f294d138224c25d4e81
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/lpc_aspeed.cpp b/lpc_aspeed.cpp
new file mode 100644
index 0000000..677a9fd
--- /dev/null
+++ b/lpc_aspeed.cpp
@@ -0,0 +1,26 @@
+#include "lpc_aspeed.hpp"
+
+#include "lpc_interface.hpp"
+
+#include <cstdint>
+#include <memory>
+#include <utility>
+
+namespace blobs
+{
+
+std::unique_ptr<LpcMapperInterface> LpcMapperAspeed::createAspeedMapper()
+{
+ /* NOTE: considered using a joint factory to create one or the other, for
+ * now, separate factories.
+ */
+ return std::make_unique<LpcMapperAspeed>();
+}
+
+std::pair<std::uint32_t, std::uint32_t>
+ LpcMapperAspeed::mapWindow(std::uint32_t address, std::uint32_t length)
+{
+ return std::make_pair(0, 0);
+}
+
+} // namespace blobs