mmc: dw_mmc: shift with slot-id for CLKENA register
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 14 Feb 2012 08:33:03 +0000 (17:33 +0900)
committerChris Ball <cjb@laptop.org>
Sun, 25 Mar 2012 23:33:45 +0000 (19:33 -0400)
In CLKENA register, can support 16-SD card clocks.
If support correctly, must shift with slot-id.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c

index 7d6ad6cd4a509bdee52670bbb5659b6a46a1542e..f9457e5ed9b71242fa8e0c1cb27a241e244cd17a 100644 (file)
@@ -652,8 +652,8 @@ static void dw_mci_setup_bus(struct dw_mci_slot *slot)
                             SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0);
 
                /* enable clock */
-               mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE |
-                          SDMMC_CLKEN_LOW_PWR);
+               mci_writel(host, CLKENA, ((SDMMC_CLKEN_ENABLE |
+                          SDMMC_CLKEN_LOW_PWR) << slot->id));
 
                /* inform CIU */
                mci_send_cmd(slot,