power/sdm845.c: Format with clang-format
BRANCH=none
TEST=none
#define IN_POWER_GOOD POWER_SIGNAL_MASK(SDM845_POWER_GOOD)
#define IN_AP_RST_ASSERTED POWER_SIGNAL_MASK(SDM845_AP_RST_ASSERTED)
-
/* Long power key press to force shutdown */
#define DELAY_FORCE_SHUTDOWN (8 * SECOND)
@@ -182,9 +181,11 @@ void chipset_warm_reset_interrupt(enum gpio_signal signal)
*/
ap_rst_overdriven = 1;
gpio_set_flags(GPIO_PS_HOLD, GPIO_INT_BOTH |
- GPIO_SEL_1P8V | GPIO_OUT_HIGH);
+ GPIO_SEL_1P8V |
+ GPIO_OUT_HIGH);
gpio_set_flags(GPIO_AP_RST_L, GPIO_INT_BOTH |
- GPIO_SEL_1P8V | GPIO_OUT_LOW);
+ GPIO_SEL_1P8V |
+ GPIO_OUT_LOW);
} else {
/*
* The pull-up rail POWER_GOOD drops.
@@ -192,10 +193,10 @@ void chipset_warm_reset_interrupt(enum gpio_signal signal)
* High-Z both AP_RST_L and PS_HOLD to restore their
* states.
*/
- gpio_set_flags(GPIO_AP_RST_L, GPIO_INT_BOTH |
- GPIO_SEL_1P8V);
- gpio_set_flags(GPIO_PS_HOLD, GPIO_INT_BOTH |
- GPIO_SEL_1P8V);
+ gpio_set_flags(GPIO_AP_RST_L,
+ GPIO_INT_BOTH | GPIO_SEL_1P8V);
+ gpio_set_flags(GPIO_PS_HOLD,
+ GPIO_INT_BOTH | GPIO_SEL_1P8V);
ap_rst_overdriven = 0;
}
} else {
@@ -268,7 +269,6 @@ static void wait_switchcap_power_good(int enable)
else
CPRINTS("SWITCHCAP STILL POWER GOOD!");
}
-
}
/**
@@ -882,6 +882,4 @@ static int command_power(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(power, command_power,
- "on/off",
- "Turn AP power on/off");
+DECLARE_CONSOLE_COMMAND(power, command_power, "on/off", "Turn AP power on/off");
