i2c: begin skeleton device driver framework

This commit is contained in:
Michael Scire 2020-10-31 04:55:11 -07:00 committed by SciresM
parent 21fac86080
commit 4a2daa4810
18 changed files with 656 additions and 1 deletions

View file

@ -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();
}
}