fatal: Reboot to RCM if VOL is pressed instead of PWR.

This commit is contained in:
Michael Scire
2018-11-30 05:33:35 -08:00
parent 8d3b8354c3
commit be5b58d033
8 changed files with 48 additions and 15 deletions

View File

@@ -36,8 +36,8 @@ uint32_t configitem_set(bool privileged, ConfigItem item, uint64_t value) {
g_battery_profile = (value != 0);
break;
case CONFIGITEM_NEEDS_REBOOT_TO_RCM:
/* Force a reboot to RCM. */
{
/* Force a reboot to RCM, if requested. */
if (value != 0) {
MAKE_REG32(0x7000E450) = 0x2;
MAKE_REG32(0x7000E400) = 0x10;
while (1) { }