mx31pdk: Place machine ID into board config
[oweals/u-boot.git] / board / freescale / mx53loco / mx53loco.c
index 18b388eeda00974462e72440206dda769e75409a..ade100608d1cb69f3ad2238e6cb094c3051bf02c 100644 (file)
@@ -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;
 }