GPIO 48: Set direction first to avoid glitch

GPIO 48 controls power for the 11AC power applifier. Previously, we set
the direction of the GPIO pin to output and only subsequently set it to
high (the default is low). This could result in a glitch where the GPIO
pin goes from tri-state to low for a short period of time before it goes
to high and stays high. Avoid this glitch and make it go from tri-state
straight to high.

Change-Id: Idc1b06b307091adbcc82a799c22ff6b700f25905
diff --git a/arch/arm/boards/optimus/optimus.c b/arch/arm/boards/optimus/optimus.c
index e205ad5..e3dee77 100644
--- a/arch/arm/boards/optimus/optimus.c
+++ b/arch/arm/boards/optimus/optimus.c
@@ -497,10 +497,10 @@
 	writel(readl(COMCERTO_GPIO_63_32_OE_REG) | 0xFFFF << (44-32), COMCERTO_GPIO_63_32_OE_REG);
 	writel(readl(COMCERTO_GPIO_63_32_PIN_SELECT_REG) | 0xFFFF << (44-32), COMCERTO_GPIO_63_32_PIN_SELECT_REG);
 
-	/* Set GPIO[48] direction to output */
-	writel(readl(COMCERTO_GPIO_63_32_OE_REG) & ~(1 << (48-32)), COMCERTO_GPIO_63_32_OE_REG);
 	/* Set GPIO[48] to high */
 	writel(readl(COMCERTO_GPIO_63_32_OUTPUT_REG) | 1<<(48-32), COMCERTO_GPIO_63_32_OUTPUT_REG);
+	/* Set GPIO[48] direction to output */
+	writel(readl(COMCERTO_GPIO_63_32_OE_REG) & ~(1 << (48-32)), COMCERTO_GPIO_63_32_OE_REG);
 #endif
 #ifdef	CONFIG_COMCERTO_BOOTLOADER
 	/* Turn blue LED off, red LED on, to indicate the bootloader is running. */