i2c: begin skeleton device driver framework

This commit is contained in:
Michael Scire authored and SciresM committed 2020-11-14 03:37:51 -08:00
1 parent 21fac86080
commit 4a2daa4810
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();
}
}