Configure the pins as GPIO prior to using gpio_get_value. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>