@@ -666,6 +666,10 @@ static void board_init(void)
666666 */
667667 if (!extpower_is_present ())
668668 board_power_off ();
669+
670+ /* GPIO062 for DVT2 or the older boards need to set the input. */
671+ if (board_get_version () <= BOARD_VERSION_8 )
672+ gpio_set_flags (GPIO_PM_SLP_S0_L , GPIO_INPUT );
669673}
670674DECLARE_HOOK (HOOK_INIT , board_init , HOOK_PRIO_DEFAULT + 1 );
671675
@@ -711,6 +715,10 @@ static void board_chipset_resume(void)
711715 gpio_set_level (GPIO_EC_MUTE_L , 1 );
712716 gpio_set_level (GPIO_CAM_EN , 1 );
713717 charge_psys_onoff (1 );
718+
719+ /* Enable BB retimer power, for MP boards. */
720+ if (board_get_version () > BOARD_VERSION_10 )
721+ gpio_set_level (GPIO_PM_SLP_S0_L , 1 );
714722}
715723DECLARE_HOOK (HOOK_CHIPSET_RESUME , board_chipset_resume ,
716724 MOTION_SENSE_HOOK_PRIO - 1 );
@@ -725,6 +733,10 @@ static void board_chipset_suspend(void)
725733 gpio_set_level (GPIO_CAM_EN , 0 );
726734 }
727735 charge_psys_onoff (0 );
736+
737+ /* Disable BB retimer power, for MP boards. */
738+ if (board_get_version () > BOARD_VERSION_10 )
739+ gpio_set_level (GPIO_PM_SLP_S0_L , 0 );
728740}
729741DECLARE_HOOK (HOOK_CHIPSET_SUSPEND ,
730742 board_chipset_suspend ,
0 commit comments