mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
mmc: dw_mmc: shift with slot-id for CLKENA register
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>
This commit is contained in:
parent
f060bc9c12
commit
e3891dc5c5
@ -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);
|
SDMMC_CMD_UPD_CLK | SDMMC_CMD_PRV_DAT_WAIT, 0);
|
||||||
|
|
||||||
/* enable clock */
|
/* enable clock */
|
||||||
mci_writel(host, CLKENA, SDMMC_CLKEN_ENABLE |
|
mci_writel(host, CLKENA, ((SDMMC_CLKEN_ENABLE |
|
||||||
SDMMC_CLKEN_LOW_PWR);
|
SDMMC_CLKEN_LOW_PWR) << slot->id));
|
||||||
|
|
||||||
/* inform CIU */
|
/* inform CIU */
|
||||||
mci_send_cmd(slot,
|
mci_send_cmd(slot,
|
||||||
|
Loading…
Reference in New Issue
Block a user