From c9f0f0e1747cc825da995f3d5780b374fe189cdd Mon Sep 17 00:00:00 2001 From: Eric Lee Date: Wed, 30 Mar 2016 13:26:16 +0800 Subject: [PATCH] Fix Saveenv fails bug --- board/embedian/smarcfimx6/smarcfimx6.c | 1 - include/configs/smarcfimx6.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/board/embedian/smarcfimx6/smarcfimx6.c b/board/embedian/smarcfimx6/smarcfimx6.c index 1370f6e..ec4bd56 100644 --- a/board/embedian/smarcfimx6/smarcfimx6.c +++ b/board/embedian/smarcfimx6/smarcfimx6.c @@ -543,7 +543,6 @@ int board_mmc_init(bd_t *bis) case 0: imx_iomux_v3_setup_multiple_pads( usdhc2_pads, ARRAY_SIZE(usdhc2_pads)); - gpio_direction_output(IMX_GPIO_NR(1, 18), 1); gpio_direction_input(USDHC2_CD_GPIO); usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK); break; diff --git a/include/configs/smarcfimx6.h b/include/configs/smarcfimx6.h index 0a0458a..108819f 100644 --- a/include/configs/smarcfimx6.h +++ b/include/configs/smarcfimx6.h @@ -57,8 +57,8 @@ #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 /* Enabled USB controller number */ #define CONFIG_SYS_FSL_USDHC_NUM 3 -#define CONFIG_SYS_MMC_ENV_DEV 0 /* 0 SDHC, 1 SDMMC, 2 eMMC */ -#define CONFIG_SYS_MMC_ENV_PART 2 /* user partition */ +#define CONFIG_SYS_MMC_ENV_DEV 2 /* 0 SDHC, 1 SDMMC, 2 eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 1 /* user partition */ #ifdef CONFIG_SYS_USE_SPINOR #define CONFIG_SF_DEFAULT_CS (1|(IMX_GPIO_NR(5, 29)<<8)) /* Use SPI2 SS0 as chip select */ -- 1.9.1