HomeFreeBSD

Properly support the GPIO_PIN_PRESET_{LOW,HIGH} options when configuring

Description

Properly support the GPIO_PIN_PRESET_{LOW,HIGH} options when configuring
a gpio pin. If neither of the options is specified, pre-set the pin's
output value to the pin's current input value, to achieve glitch-free
transitions to output mode on pins that are pulled up or down at reset
or via fdt pinctrl data.

Details

Provenance
ianAuthored on
Parents
rS333259: fix case where pidx_last might be used uninitialized
Branches
Unknown
Tags
Unknown