diff mbox

[U-Boot,13/14] MX5: mx53loco: make use of GPIO framework

Message ID 1313922509-10083-13-git-send-email-sbabic@denx.de
State Accepted
Commit 50410078cd587f6b9ee915bd178854c0ee6d9bfe
Headers show

Commit Message

Stefano Babic Aug. 21, 2011, 10:28 a.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Jason Liu <r64343@freescale.com>
---
 board/freescale/mx53loco/mx53loco.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Comments

Jason Liu Aug. 22, 2011, 2:54 a.m. UTC | #1
2011/8/21 Stefano Babic <sbabic@denx.de>:
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> CC: Jason Liu <r64343@freescale.com>
> ---
>  board/freescale/mx53loco/mx53loco.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
> index 18b388e..ade1006 100644
> --- a/board/freescale/mx53loco/mx53loco.c
> +++ b/board/freescale/mx53loco/mx53loco.c
> @@ -34,7 +34,7 @@
>  #include <i2c.h>
>  #include <mmc.h>
>  #include <fsl_esdhc.h>
> -#include <mxc_gpio.h>
> +#include <asm/gpio.h>
>
>  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;
>  }

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

> --
> 1.7.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
Stefano Babic Aug. 22, 2011, 7:57 a.m. UTC | #2
On 08/22/2011 04:54 AM, Jason Liu wrote:
> 2011/8/21 Stefano Babic <sbabic@denx.de>:
>> Signed-off-by: Stefano Babic <sbabic@denx.de>
>> CC: Jason Liu <r64343@freescale.com>
>> ---

Hi Jason,

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

Thanks for testing !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/board/freescale/mx53loco/mx53loco.c b/board/freescale/mx53loco/mx53loco.c
index 18b388e..ade1006 100644
--- a/board/freescale/mx53loco/mx53loco.c
+++ b/board/freescale/mx53loco/mx53loco.c
@@ -34,7 +34,7 @@ 
 #include <i2c.h>
 #include <mmc.h>
 #include <fsl_esdhc.h>
-#include <mxc_gpio.h>
+#include <asm/gpio.h>
 
 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;
 }