[#5634] fail to detect SD card in latest BF537-stamp u-boot

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#5634] fail to detect SD card in latest BF537-stamp u-boot

Submitted By: Vivi Li

Open Date

2009-10-22 02:54:36     Close Date

2009-11-17 23:41:25

Priority:

Medium     Assignee:

Cliff Cai

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: fail to detect SD card in latest BF537-stamp u-boot

Details:

 

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

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

Hit any key to stop autoboot:  0

bfin>

bfin>

bfin> mmc init

No MMC card found

bfin>

--

 

Follow-ups

 

--- 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.

 

Vivi,

 

Please set CONFIG_SPI_MMC_DEFAULT_CS to 4

and CONFIG_SPI_MMC_DEFAULT_SPEED to 20000000

and run the test again.

 

Cliff

 

--- 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.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes