]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
embest/mx6boards: only toggle eMMC usdhc3 RST line on MarSboard
authorIain Paton <ipaton0@gmail.com>
Mon, 9 Jun 2014 22:08:35 +0000 (23:08 +0100)
committerStefano Babic <sbabic@denx.de>
Wed, 13 Aug 2014 07:32:53 +0000 (09:32 +0200)
On MarS usdhc3 is eMMC, on RIoT usdhc3 is uSD and eMMC is usdhc4.

Don't run the MarS specific eMMC reset code on usdhc3 when
board_type == BOARD_IS_RIOTBOARD

Signed-off-by: Iain Paton <ipaton0@gmail.com>
board/embest/mx6boards/mx6boards.c

index d06b57d1e3dda6d9b28bc7e810fd31fec2278ea3..530ea4f3c48d6205916977856d5f7f95f1be77f6 100644 (file)
@@ -246,6 +246,7 @@ int board_mmc_init(bd_t *bis)
                                        riotboard_usdhc3_pads,
                                        ARRAY_SIZE(riotboard_usdhc3_pads));
                                gpio_direction_input(USDHC3_CD_GPIO);
+                       } else {
                                gpio_direction_output(IMX_GPIO_NR(7, 8) , 0);
                                udelay(250);
                                gpio_set_value(IMX_GPIO_NR(7, 8), 1);