OMAP: Add function to get state of a GPIO output