]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/mx53smd/mx53smd.c
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging
[karo-tx-uboot.git] / board / freescale / mx53smd / mx53smd.c
index 87fa7fa72e5156d2e62ac7bc3e8b1e6e9a829c96..7f35dddb8488d59a79ed87b5c43fcc663edc9d8c 100644 (file)
@@ -129,14 +129,14 @@ static void setup_iomux_fec(void)
 
 #ifdef CONFIG_FSL_ESDHC
 struct fsl_esdhc_cfg esdhc_cfg[1] = {
-       {MMC_SDHC1_BASE_ADDR, 1},
+       {MMC_SDHC1_BASE_ADDR},
 };
 
-int board_mmc_getcd(u8 *cd, struct mmc *mmc)
+int board_mmc_getcd(struct mmc *mmc)
 {
-       *cd = gpio_get_value(77); /*GPIO3_13*/
-
-       return 0;
+       mxc_request_iomux(MX53_PIN_EIM_DA13, IOMUX_CONFIG_ALT1);
+       gpio_direction_input(IMX_GPIO_NR(3, 13));
+       return !gpio_get_value(IMX_GPIO_NR(3, 13));
 }
 
 int board_mmc_init(bd_t *bis)