From 8440992b1f4f694a22d9ca7db3410b60044c0f2d Mon Sep 17 00:00:00 2001 From: Mikael Larsson Date: Wed, 10 Nov 2010 10:55:40 +0100 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/8231 Reviewed-by: Michael BRANDT Reviewed-by: Robert ROSENGREN Tested-by: Robert ROSENGREN --- board/st/u8500/mmc_host.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board') 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: -- cgit v1.2.3