commit | 03e510d68bb684e18dca43ac09e3e3e0efbbaa09 | [log] [tgz] |
---|---|---|
author | Scott Worley <scott.worley@microchip.com> | Wed Oct 14 16:10:16 2020 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Oct 15 22:07:34 2020 -0400 |
tree | 26939bbba9315cb9b558e783d9c3398326ddfc87 | |
parent | fef7879583781a9f5416cb7c06121448a687d614 [diff] |
gpio: mchp_xec: fix glitch setting pin to output A GPIO's parallel output bit in the parallel output registers is read-only until the AOD bit is set to 1 in the pin's control registers. The proper sequence to preset the state of an output pin is: Configure pin as input with AOD=1 in the control register Set pin state in the parallel output register Set direction to output in the pin's control register. Signed-off-by: Scott Worley <scott.worley@microchip.com>