summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/st/u8500/mmc_host.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/st/u8500/mmc_host.c b/board/st/u8500/mmc_host.c
index d17fc6914..aa3c7ba98 100644
--- a/board/st/u8500/mmc_host.c
+++ b/board/st/u8500/mmc_host.c
@@ -439,6 +439,8 @@ struct mmc *alloc_mmc_struct(void)
if (!mmc_device)
goto err;
+ memset(mmc_device, 0x00, sizeof(struct mmc));
+
mmc_device->priv = host;
return mmc_device;
err:
@@ -578,6 +580,7 @@ static int mmc_host_init(struct mmc *dev)
dev->voltages = VOLTAGE_WINDOW_SD;
dev->f_min = dev->clock;
dev->f_max = MCLK / 2;
+ dev->ddr_en = 0;
return 0;
end: