HomeFreeBSD

[ar71xx_gpio] handle AR934x and QCA953x GPIO OE polarity.

Description

[ar71xx_gpio] handle AR934x and QCA953x GPIO OE polarity.

For reasons I won't comment on, the AR934x and QCA953x GPIO_OE register
value is inverted - bit set == input, bit clear == output.

So, fix this in the output setting, in reading the initial state from
the boot loader, and also setting any gpiofunc pins that are necessary.

Details

Provenance
adrianAuthored on
Parents
rS303576: Conditionalize code which defines sysctls per _KERNEL #ifdef guard
Branches
Unknown
Tags
Unknown