@@ -153,18 +153,16 @@ void s5_power_up_control(int control)
153153
154154static void chipset_force_g3 (void )
155155{
156- gpio_set_level (GPIO_SUSP_L , 0 );
157- gpio_set_level (GPIO_EC_VCCST_PG , 0 );
158156 gpio_set_level (GPIO_VR_ON , 0 );
157+ gpio_set_level (GPIO_EC_VCCST_PG , 0 );
158+ gpio_set_level (GPIO_SUSP_L , 0 );
159159 gpio_set_level (GPIO_PCH_PWROK , 0 );
160160 gpio_set_level (GPIO_SYS_PWROK , 0 );
161161 gpio_set_level (GPIO_SYSON , 0 );
162162 /* keep pch power for wake source or vpro type */
163163 if (!keep_pch_power () || me_change ) {
164164
165-
166165 gpio_set_level (GPIO_PCH_RSMRST_L , 0 );
167-
168166 gpio_set_level (GPIO_PCH_PWR_EN , 0 );
169167 gpio_set_level (GPIO_PCH_DPWROK , 0 );
170168 gpio_set_level (GPIO_PCH_PWRBTN_L , 0 );
@@ -230,7 +228,8 @@ int board_chipset_power_on(void)
230228 /* Deassert RSMRST# */
231229 gpio_set_level (GPIO_PCH_RSMRST_L , 1 );
232230
233- gpio_set_level (GPIO_AC_PRESENT_OUT , 1 );
231+ if (extpower_is_present ())
232+ gpio_set_level (GPIO_AC_PRESENT_OUT , 1 );
234233
235234 if (want_boot_ap_at_g3 || rtc_reset_tries ) {
236235 CPRINTS ("Assert the power button signal to power on system!" );
0 commit comments