Skip to content
Snippets Groups Projects
Commit f7a36474 authored by Stefano Babic's avatar Stefano Babic Committed by Albert ARIBAUD
Browse files

MX5: mx53evk: make use of GPIO framework


Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
CC: Jason Liu <r64343@freescale.com>
parent 4c0443c4
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@
#include <mmc.h>
#include <fsl_esdhc.h>
#include <fsl_pmic.h>
#include <mxc_gpio.h>
#include <asm/gpio.h>
#include <mc13892.h>
DECLARE_GLOBAL_DATA_PTR;
......@@ -213,9 +213,9 @@ int board_mmc_getcd(u8 *cd, struct mmc *mmc)
struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv;
if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
*cd = mxc_gpio_get(77); /*GPIO3_13*/
*cd = gpio_get_value(77); /*GPIO3_13*/
else
*cd = mxc_gpio_get(75); /*GPIO3_11*/
*cd = gpio_get_value(75); /*GPIO3_11*/
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment