]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx51: set 'max_bus_width' for ESDHC
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:24:24 +0000 (15:24 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:24:24 +0000 (15:24 +0200)
board/karo/tx51/tx51.c

index e99dbf3d888b06e5b93185f63913020c1d04a7cb..4bd44fea04685a867d16408d5d5147613698e085 100644 (file)
@@ -340,6 +340,7 @@ static struct tx51_esdhc_cfg {
                .num_pads = ARRAY_SIZE(mmc0_pads),
                .cfg = {
                        .esdhc_base = (void __iomem *)MMC_SDHC1_BASE_ADDR,
+                       .max_bus_width = 4,
                },
                .cd_gpio = IMX_GPIO_NR(3, 8),
        },
@@ -348,15 +349,13 @@ static struct tx51_esdhc_cfg {
                .num_pads = ARRAY_SIZE(mmc1_pads),
                .cfg = {
                        .esdhc_base = (void __iomem *)MMC_SDHC2_BASE_ADDR,
+                       .max_bus_width = 4,
                },
                .cd_gpio = IMX_GPIO_NR(3, 6),
        },
 };
 
-static struct tx51_esdhc_cfg *to_tx51_esdhc_cfg(struct fsl_esdhc_cfg *cfg)
-{
-       return container_of(cfg, struct tx51_esdhc_cfg, cfg);
-}
+#define to_tx51_esdhc_cfg(p) container_of(p, struct tx51_esdhc_cfg, cfg)
 
 int board_mmc_getcd(struct mmc *mmc)
 {