diff options
author | Rajeshwari Shinde <rajeshwari.s@samsung.com> | 2013-10-29 12:53:13 +0530 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2013-10-31 09:55:33 +0200 |
commit | 6f0b7caa671f92c2d4676c84381d17fb90f7d2cd (patch) | |
tree | aec09b71cbf286a48d7dd831b8f10274307e2475 /drivers/mmc/dw_mmc.c | |
parent | 56b34bc617f64ce34b34cebc7cbde7a8e4c1002f (diff) | |
download | u-boot-imx-6f0b7caa671f92c2d4676c84381d17fb90f7d2cd.zip u-boot-imx-6f0b7caa671f92c2d4676c84381d17fb90f7d2cd.tar.gz u-boot-imx-6f0b7caa671f92c2d4676c84381d17fb90f7d2cd.tar.bz2 |
DWMMC: SMDK5420: Disable SMU for eMMC
SMDK5420 has a new Security Management Unit added
for dwmmc driver, hence, configuring the control
registers to support booting via eMMC.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers/mmc/dw_mmc.c')
-rw-r--r-- | drivers/mmc/dw_mmc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index 174e3b5..1e0f72b 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -11,6 +11,7 @@ #include <mmc.h> #include <dwmmc.h> #include <asm-generic/errno.h> +#include <asm/arch/dwmmc.h> #define PAGE_SIZE 4096 @@ -301,6 +302,16 @@ static int dwmci_init(struct mmc *mmc) struct dwmci_host *host = (struct dwmci_host *)mmc->priv; u32 fifo_size; + if (host->quirks & DWMCI_QUIRK_DISABLE_SMU) { + dwmci_writel(host, EMMCP_MPSBEGIN0, 0); + dwmci_writel(host, EMMCP_SEND0, 0); + dwmci_writel(host, EMMCP_CTRL0, + MPSCTRL_SECURE_READ_BIT | + MPSCTRL_SECURE_WRITE_BIT | + MPSCTRL_NON_SECURE_READ_BIT | + MPSCTRL_NON_SECURE_WRITE_BIT | MPSCTRL_VALID); + } + dwmci_writel(host, DWMCI_PWREN, 1); if (!dwmci_wait_reset(host, DWMCI_RESET_ALL)) { |