[U-Boot] [PATCH 12/14] MX5: mx53evk: make use of GPIO framework

Jason Liu liu.h.jason at gmail.com
Sun Aug 21 14:24:39 CEST 2011


2011/8/21 Stefano Babic <sbabic at denx.de>:
> Signed-off-by: Stefano Babic <sbabic at denx.de>
> CC: Jason Liu <r64343 at freescale.com>
> ---
>  board/freescale/mx53evk/mx53evk.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/freescale/mx53evk/mx53evk.c b/board/freescale/mx53evk/mx53evk.c
> index 88095dc..81857ff 100644
> --- a/board/freescale/mx53evk/mx53evk.c
> +++ b/board/freescale/mx53evk/mx53evk.c
> @@ -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;
>  }

Acked-by: Jason Liu <jason.hui at linaro.org>
Tested-by: Jason Liu <jason.hui at linaro.org>

> --
> 1.7.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>


More information about the U-Boot mailing list