gpio: aspeed: Set output latch before changing direction