mx51evk: Use gpio_direction_input prior to gpio_get_value