@@ -64,6 +64,20 @@ const struct power_signal_info power_signal_list[] = {
64
64
};
65
65
BUILD_ASSERT (ARRAY_SIZE (power_signal_list ) == POWER_SIGNAL_COUNT );
66
66
67
+
68
+ static void inputdeck_resume (void )
69
+ {
70
+ gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_sleep_l ), 1 );
71
+ }
72
+ DECLARE_HOOK (HOOK_CHIPSET_RESUME , inputdeck_resume , HOOK_PRIO_DEFAULT );
73
+
74
+
75
+ static void inputdeck_suspend (void )
76
+ {
77
+ gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_sleep_l ), 0 );
78
+ }
79
+ DECLARE_HOOK (HOOK_CHIPSET_SUSPEND , inputdeck_suspend , HOOK_PRIO_DEFAULT );
80
+
67
81
static void peripheral_power_startup (void )
68
82
{
69
83
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_wlan_en ), 1 );
@@ -79,7 +93,6 @@ static void peripheral_power_resume(void)
79
93
{
80
94
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_ec_mute_l ), 1 );
81
95
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_en_invpwr ), 1 );
82
- gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_sleep_l ), 1 );
83
96
}
84
97
85
98
static void peripheral_power_shutdown (void )
@@ -97,7 +110,6 @@ static void peripheral_power_suspend(void)
97
110
{
98
111
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_ec_mute_l ), 0 );
99
112
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_en_invpwr ), 0 );
100
- gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_sleep_l ), 0 );
101
113
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_ssd2_pwr_en ), 0 );
102
114
set_gpu_gpio (GPIO_FUNC_SSD1_POWER , 0 );
103
115
set_gpu_gpio (GPIO_FUNC_SSD2_POWER , 0 );
@@ -271,6 +283,7 @@ void chipset_reset(enum chipset_shutdown_reason reason)
271
283
272
284
static void chipset_force_g3 (void )
273
285
{
286
+ gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_sleep_l ), 0 );
274
287
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_hub_b_pwr_en ), 0 );
275
288
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_sys_pwrgd_ec ), 0 );
276
289
gpio_pin_set_dt (GPIO_DT_FROM_NODELABEL (gpio_vr_on ), 0 );
0 commit comments