Commit ed9d21696df61df113ede200f36b4183d86313b2

Authored by Fabio Estevam
Committed by Albert ARIBAUD
1 parent c9d5fd1602

mx51evk: Use gpio_direction_input prior to gpio_get_value

Use gpio_direction_input prior to gpio_get_value.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

board/freescale/mx51evk/mx51evk.c
... ... @@ -327,7 +327,9 @@
327 327 int ret;
328 328  
329 329 mxc_request_iomux(MX51_PIN_GPIO1_0, IOMUX_CONFIG_ALT1);
  330 + gpio_direction_input(0);
330 331 mxc_request_iomux(MX51_PIN_GPIO1_6, IOMUX_CONFIG_ALT0);
  332 + gpio_direction_input(6);
331 333  
332 334 if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
333 335 ret = !gpio_get_value(0);