mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-16 18:11:22 +00:00
Merge "Increase simulated power button duration in x86power s0 command"
This commit is contained in:
@@ -239,10 +239,14 @@ void x86_power_task(void)
|
||||
/* TODO: this should be in response to a power button
|
||||
* event, not causing one. For initial bringup,
|
||||
* simulate the event. */
|
||||
|
||||
/* Assert power button */
|
||||
gpio_set_level(GPIO_PCH_PWRBTNn, 0);
|
||||
/* Wait 16ms after asserting PWRBTN# */
|
||||
usleep(16000);
|
||||
|
||||
/* Wait at least 16ms after asserting PWRBTN#. More
|
||||
* is better for now, apparently. */
|
||||
usleep(100000);
|
||||
|
||||
/* Release power button */
|
||||
gpio_set_level(GPIO_PCH_PWRBTNn, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user