From: Stefano Babic Date: Sun, 21 Aug 2011 08:59:33 +0000 (+0200) Subject: MX5: mx53loco: make use of GPIO framework X-Git-Tag: v2011.09-rc1~68^2~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=50410078cd587f6b9ee915bd178854c0ee6d9bfe;p=u-boot MX5: mx53loco: make use of GPIO framework Signed-off-by: Stefano Babic CC: Jason Liu --- diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c index 18b388eeda..ade100608d 100644 --- a/board/freescale/mx53loco/mx53loco.c +++ b/board/freescale/mx53loco/mx53loco.c @@ -34,7 +34,7 @@ #include #include #include -#include +#include DECLARE_GLOBAL_DATA_PTR; @@ -146,9 +146,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; }