i2c: begin skeleton device driver framework

This commit is contained in:
Michael Scire committed 2020-10-31 04:55:11 -07:00
1 parent c867975eb8
commit 7636dd2d44
18 files changed
+656 -1

No files matched your search

@@ -29,4 +29,15 @@ namespace ams::boot {
gpio::driver::Initialize();
}
void InitializeI2cDriverLibrary() {
/* Initialize the i2c client library with the server manager object. */
i2c::InitializeWith(i2c::server::GetServiceObject(), i2c::server::GetServiceObjectPowerBus());
/* Initialize the board driver without enabling interrupt handlers. */
i2c::driver::board::Initialize();
/* Initialize the driver library. */
i2c::driver::Initialize();
}
}
@@ -18,6 +18,7 @@
namespace ams::boot {
void InitializeGpioDriverLibrary();
void InitializeI2cDriverLibrary();
}