]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: mx6quq7: specify max_bus_witdh directly in usdhc_cfg
authorJulien CORJON <corjon.j@ecagroup.com>
Fri, 5 Feb 2016 15:19:32 +0000 (16:19 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 21 Feb 2016 10:37:04 +0000 (11:37 +0100)
Specify max_bus_width directly in usdhc_cfg static definition instead
of tweaking it in the board_mmc_init() function.

Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
board/seco/mx6quq7/mx6quq7.c

index 3743a9e3daa346b75cd5073b381a804382b2fdc7..89ae70d497589dbf1b5fe0ca606e6df68ea656c1 100644 (file)
@@ -92,8 +92,8 @@ int board_eth_init(bd_t *bis)
 }
 
 static struct fsl_esdhc_cfg usdhc_cfg[2] = {
-       {USDHC3_BASE_ADDR},
-       {USDHC4_BASE_ADDR},
+       {USDHC3_BASE_ADDR, 0, 4},
+       {USDHC4_BASE_ADDR, 0, 4},
 };
 
 int board_mmc_init(bd_t *bis)
@@ -112,12 +112,10 @@ int board_mmc_init(bd_t *bis)
                case 0:
                        seco_mx6_setup_usdhc_iomux(3);
                        usdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC3_CLK);
-                       usdhc_cfg[0].max_bus_width = 4;
                        break;
                case 1:
                        seco_mx6_setup_usdhc_iomux(4);
                        usdhc_cfg[1].sdhc_clk = mxc_get_clock(MXC_ESDHC4_CLK);
-                       usdhc_cfg[1].max_bus_width = 4;
                        break;
 
                default: