]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00178106 SabreSD: scan emmc slot sd4 firstly for mfgtools
authorFrank Li <Frank.Li@freescale.com>
Tue, 27 Mar 2012 10:04:54 +0000 (18:04 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:21 +0000 (14:11 +0200)
Mfgtools want to emmc block device node is fixed mmcblk0.
Card in other slot is mmcblk1 or mmcblk2

Signed-off-by: Frank Li <Frank.Li@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabresd.c

index a0cd1bb7ec96dd52d3bf815b003c30aebc161716..90b222c044a46fa73b2b978917ff5b66ee3fdd45 100644 (file)
@@ -1485,9 +1485,13 @@ static void __init mx6_sabresd_board_init(void)
        imx6q_add_anatop_thermal_imx(1, &mx6q_sabresd_anatop_thermal_data);
        imx6_init_fec(fec_data);
        imx6q_add_pm_imx(0, &mx6q_sabresd_pm_data);
+
+       /* Move sd4 to first because sd4 connect to emmc.
+          Mfgtools want emmc is mmcblk0 and other sd card is mmcblk1.
+       */
+       imx6q_add_sdhci_usdhc_imx(3, &mx6q_sabresd_sd4_data);
        imx6q_add_sdhci_usdhc_imx(1, &mx6q_sabresd_sd2_data);
        imx6q_add_sdhci_usdhc_imx(2, &mx6q_sabresd_sd3_data);
-       imx6q_add_sdhci_usdhc_imx(3, &mx6q_sabresd_sd4_data);
        imx_add_viv_gpu(&imx6_gpu_data, &imx6q_gpu_pdata);
        imx6q_sabresd_init_usb();
        /* SATA is not supported by MX6DL/Solo */