[#5634] fail to detect SD card in latest BF537-stamp u-boot
Submitted By: Vivi Li
2009-10-22 02:54:36 Close Date
N/A Fixed In Release:
Found In Release:
Is the bug repeatable?:
Summary: fail to detect SD card in latest BF537-stamp u-boot
On BF537-stamp with spimmc add-on card, it fails to detect SD card in latest u-boot trunk.
Last passed version is 2009.08-svn2048.
U-Boot 2009.08-svn2056 (ADI-2009R2-pre) (Oct 22 2009 - 15:21:01)
CPU: ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)
Board: ADI BF537 stamp board
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MB
Flash: 4 MB
Net: Blackfin EMAC
Hit any key to stop autoboot: 0
bfin> mmc init
No MMC card found
--- Mike Frysinger 2009-10-22 03:16:48
you need to define CONFIG_SPI_MMC_DEFAULT_CS to the CS you're using
--- Vivi Li 2009-10-22 23:24:58
The value of CONFIG_SPI_MMC_DEFAULT_CS should be 4, just as the default spimmc
CS in kernel.
CONFIG_SPI_MMC_DEFAULT_CS is defined to 4 in include/configs/bf537-stamp.h or
drivers/mmc/spi_mmc.c, and it doesn't work.
--- Cliff Cai 2009-11-17 04:36:40
fixed by sending out 0xff first for spi read.
Please set CONFIG_SPI_MMC_DEFAULT_CS to 4
and CONFIG_SPI_MMC_DEFAULT_SPEED to 20000000
and run the test again.
--- Mike Frysinger 2009-11-17 10:33:58
i did tweak the driver so you can control things dynamically at runtime by
setting mmc_cs and mmc_hz
--- Vivi Li 2009-11-17 23:41:25
This bug is OK now.
I also add "set mmc_cs 4; set mmc_hz 20000000" in u-boot mmc test.
Close this bug.
File Name File Type File Size Posted By
No Files Were Found