]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mx53ard/mx53ard.c
snowball: Add support for ux500 based snowball board
[u-boot] / board / freescale / mx53ard / mx53ard.c
index 40b5c1967ff6b344ad0a83bb55ee90f404ff20d5..2d21584b3376a528d8ae2b323a3f724bb43ed3fb 100644 (file)
@@ -89,7 +89,9 @@ int board_mmc_getcd(struct mmc *mmc)
        int ret;
 
        mxc_request_iomux(MX53_PIN_GPIO_1, IOMUX_CONFIG_ALT1);
+       gpio_direction_input(1);
        mxc_request_iomux(MX53_PIN_GPIO_4, IOMUX_CONFIG_ALT1);
+       gpio_direction_input(4);
 
        if (cfg->esdhc_base == MMC_SDHC1_BASE_ADDR)
                ret = !gpio_get_value(1); /* GPIO1_1 */
@@ -285,7 +287,7 @@ int board_init(void)
 
 int board_eth_init(bd_t *bis)
 {
-       int rc = 0;
+       int rc = -ENODEV;
 
        weim_smc911x_iomux();
        weim_cs1_settings();