diff --git a/board/nocturne/board.c b/board/nocturne/board.c index 33168a7973..0c812f71ca 100644 --- a/board/nocturne/board.c +++ b/board/nocturne/board.c @@ -335,6 +335,18 @@ static void board_init(void) } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); +static void board_pmic_init(void) +{ + int pgmask1; + + /* Mask V5A_DS3_PG from PMIC PGMASK1. */ + if (i2c_read8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x18, &pgmask1)) + return; + pgmask1 |= (1 << 2); + i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x18, pgmask1); +} +DECLARE_HOOK(HOOK_INIT, board_pmic_init, HOOK_PRIO_DEFAULT); + void board_overcurrent_event(int port) { /* Sanity check the port. */ diff --git a/board/nocturne/gpio.inc b/board/nocturne/gpio.inc index 9e655c4a02..837ee37056 100644 --- a/board/nocturne/gpio.inc +++ b/board/nocturne/gpio.inc @@ -71,7 +71,7 @@ GPIO(CCD_MODE_ODL, PIN(E, 3), GPIO_INPUT) GPIO(EC_BATT_PRES_L, PIN(E, 5), GPIO_INPUT) GPIO(EC_ENTERING_RW, PIN(E, 1), GPIO_OUT_LOW) GPIO(EC_BL_DISABLE_ODL, PIN(D, 3), GPIO_ODR_HIGH) -GPIO(EC_PLATFORM_RST, PIN(8, 6), GPIO_INPUT) +GPIO(EC_PLATFORM_RST, PIN(8, 6), GPIO_OUT_LOW) GPIO(EC_GPIO31, PIN(3, 1), GPIO_OUT_LOW) GPIO(BASE_PWR_EN, PIN(2, 2), GPIO_OUT_LOW) GPIO(PP3300_NVME_EN, PIN(2, 1), GPIO_OUT_LOW)