[#4316] spi_mmc cannot detect card when using "Blackfin SPI bus directly"

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

[#4316] spi_mmc cannot detect card when using "Blackfin SPI bus directly"

Submitted By: Yi Li

Open Date

2008-08-07 04:12:19     Close Date

2008-12-01 23:18:39

Priority:

Medium     Assignee:

Yi Li

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

svn 2008r1 branch

Category:

N/A     Board:

STAMP

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Out of Date

Uboot version or rev.:

    Toolchain version or rev.:

App binary format:

N/A     

Summary: spi_mmc cannot detect card when using "Blackfin SPI bus directly"

Details:

 

root:/> version                                                                

kernel:    Linux release 2.6.22.19-ADI-2008R1.5-svn5102, build #46 Thu Aug 7 158

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)           

user-dist: release svn-6972, build #15 Thu Aug 7 15:36:26 CST 2008             

 

I configure spi_mmc driver, using spi framework and using SPI bus directly. For the same HW, in the case of SPI framework, the SD card can be detected. However, if using SPI bus directly, the driver cannot detect SD card.

 

The spi mmc driver is configured as:

 

CONFIG_SPI_MMC=y

# CONFIG_SPI_MMC_FRAMEWORK_DRIVER is not set

CONFIG_SPI_MMC_BFIN_PIO_SPI=y

CONFIG_SPI_MMC_CS_CHAN=4

CONFIG_SPI_MMC_MAX_HZ=20000000

CONFIG_SPI_MMC_CARD_DETECT=y

CONFIG_SPI_MMC_CARD_DETECT_INT=55

 

Follow-ups

 

--- Frederik Schmid                                          2008-10-21 02:08:04

I think CONFIG_SPI_MMC_CS_CHAN should be a GPIO number in PIO mode, if I

remember correctly.

 

--- Yi Li                                                    2008-12-01 23:18:39

Since we replace the old spi_mmc driver with mmc_spi driver in mainline kernel.

This bug is out of date now. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes