summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMikael Larsson <mikael.xt.larsson@stericsson.com>2010-11-10 10:55:40 +0100
committerMichael BRANDT <michael.brandt@stericsson.com>2010-11-10 13:01:04 +0100
commit8440992b1f4f694a22d9ca7db3410b60044c0f2d (patch)
treebd09e702662de1dbdcba554674155f923b2a2887 /board
parent53e87e714b2895f670d72b3d47cb5d5b2b176cfb (diff)
U8500: Fix sd card init
Fixes sd card init that did not initialize ddr_en. This made sd fail init when previous contents in ddr_en was not 0. Change-Id: I5f2f33efdeb2e6af9e984805442ee0aa4285abdd Signed-off-by: Mikael Larsson <mikael.xt.larsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8231 Reviewed-by: Michael BRANDT <michael.brandt@stericsson.com> Reviewed-by: Robert ROSENGREN <robert.rosengren@stericsson.com> Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
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: