i2c: implement remaining required driver logic

This commit is contained in:
Michael Scire
2020-11-01 00:52:02 -07:00
parent 43f7b10c0f
commit 22ae1d5bd3
14 changed files with 307 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ namespace ams::boot {
i2c::driver::I2cSession i2c_session;
public:
PmicDriver() {
i2c::driver::OpenSession(std::addressof(this->i2c_session), i2c::DeviceCode_Max77620Pmic);
R_ABORT_UNLESS(i2c::driver::OpenSession(std::addressof(this->i2c_session), i2c::DeviceCode_Max77620Pmic));
}
~PmicDriver() {