lemp12: hack to drain LDO_3V3 capacitors

This commit is contained in:
Jeremy Soller
2023-05-10 19:06:46 -06:00
parent ca1996dd44
commit f5c4eaba97

View File

@ -28,4 +28,15 @@ void board_event(void) {
espi_event();
ec_read_post_codes();
// Hack to drain LDO_3V3 capacitors
if (!gpio_get(&XLP_OUT)) {
// These are pulled up by LDO_3V3, pull them low
// SMB_CLK_EC
GPCRC1 = GPIO_OUT;
// SMB_DATA_EC
GPCRC2 = GPIO_OUT;
// SMB_CLK_EC, SMB_DATA_EC
GPDRC &= ~(BIT(1) | BIT(2));
}
}