From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 16 Dec 2010 18:40:23 +0100 Subject: [U-Boot] [PATCH 1/3] fsl_esdhc: Use mmc_set_clock to set initial speed In-Reply-To: <1292401217-21154-2-git-send-email-galak@kernel.crashing.org> References: <1292401217-21154-1-git-send-email-galak@kernel.crashing.org> <1292401217-21154-2-git-send-email-galak@kernel.crashing.org> Message-ID: <4D0A4F07.5050206@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/15/2010 09:20 AM, Kumar Gala wrote: > From: Jerry Huang > > After booting the u-boot, and first using some SD card (such as Sandisk 2G SD > card), because the field 'clock' of struct mmc is zero, this will cause > the read transfer is always active and SDHC DATA line is always active, > therefore, driver can't handle the next command. > > Therefore, we use mmc_set_clock to setup both the data structure and HW > to the initial clock speed of 400000Hz. > > Signed-off-by: Jerry Huang > Signed-off-by: Kumar Gala > --- Tested on i.MX51, too. Tested-by: Stefano Babic Regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================