Commit d962db28 authored by Inochi Amaoto's avatar Inochi Amaoto Committed by Anup Patel
Browse files

lib: utils/gpio: respect flag GPIO_FLAG_ACTIVE_LOW



"gpio-poweroff" and "gpio-restart" always set gpio to high to
active the function, but some chips need a low signal to active.
Fortunately, it can be achieved by setting GPIO_FLAG_ACTIVE_LOW
for the gpio. Implement this flag support for the gpio library
so the gpio reset can function well.

Signed-off-by: default avatarInochi Amaoto <inochiama@outlook.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent ae5ef184
Pipeline #2580 failed with stages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment