]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00173615-2 [mx6q mmc]remove software workaround for TO1.1 and later
authorTony Lin <tony.lin@freescale.com>
Thu, 2 Feb 2012 05:59:05 +0000 (13:59 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:54 +0000 (08:33 +0200)
the card interrupt status bit workaround and TC interrupt comes earlier than
DMA interrupt workaround are not necessary for i.MX6Q TO1.1 and later

Signed-off-by: Tony Lin <tony.lin@freescale.com>
drivers/mmc/host/sdhci-esdhc-imx.c

index d5dd1ff34194e1cc57e7a4ba6f171e41c69fa69c..496de7862cede06fe0a5209fa9bbd454c3de22a6 100644 (file)
@@ -102,9 +102,10 @@ static u32 esdhc_readl_le(struct sdhci_host *host, int reg)
                        val |= SDHCI_CARD_PRESENT;
        }
 
-       if (reg == SDHCI_INT_STATUS && cpu_is_mx6q()) {
+       if (reg == SDHCI_INT_STATUS && cpu_is_mx6q()
+               && mx6q_revision() == IMX_CHIP_REVISION_1_0) {
                /*
-                * on mx6q, there is low possibility that
+                * on mx6q TO1.0, there is low possibility that
                 * DATA END interrupt comes ealier than DMA
                 * END interrupt which is conflict with standard
                 * host controller spec. In this case, read the
@@ -157,10 +158,11 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg)
                        val &= ~(SDHCI_INT_CARD_REMOVE | \
                                SDHCI_INT_CARD_INSERT);
 
-               if (!(val & SDHCI_INT_CARD_INT) && cpu_is_mx6q())
+               if (!(val & SDHCI_INT_CARD_INT) && cpu_is_mx6q()
+                       && mx6q_revision() == IMX_CHIP_REVISION_1_0)
                        /*
                         * write 1 to clear card interrupt status bit
-                        * (only applied to mx6q)
+                        * (only applied to mx6q TO1.0)
                         * uSDHC used for mx6q has such problem which is
                         * not consistant with standard host controller
                         * definition.