boot: add missing 18.0.0 change and new 23.0.0 change
This commit is contained in:
@@ -466,12 +466,21 @@ namespace ams::boot {
|
||||
boot::ShutdownSystem();
|
||||
}
|
||||
}
|
||||
|
||||
/* On 18.0.0+ i2c shutdown is unconditionally disabled here. */
|
||||
if (hos::GetVersion() >= hos::Version_18_0_0) {
|
||||
if (R_FAILED(battery_driver.SetI2cShutdownEnabled(false))) {
|
||||
boot::ShutdownSystem();
|
||||
}
|
||||
}
|
||||
|
||||
/* Get the boot reason. */
|
||||
const auto boot_reason = boot::GetBootReason();
|
||||
|
||||
/* Initialize the charger driver. */
|
||||
if (R_FAILED(charger_driver.Initialize(boot_reason != spl::BootReason_RtcAlarm2)))
|
||||
if (R_FAILED(charger_driver.Initialize(boot_reason != spl::BootReason_RtcAlarm2))) {
|
||||
boot::ShutdownSystem();
|
||||
}
|
||||
|
||||
/* Check that the charger input limit is greater than 150 milli-amps. */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user