Skip to contentSkip to conversation

mmc-spi on pxa2xx, flipping sph bit

DISCUSSION Mike Borsuk 1 participant 1 message Nov 9, 2009 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

Hello,

I am working on getting mmc_spi to work with a an ARM PXA270 on 2.6.31 I am able to successfully mount the fs on a Transcend mini-sd card (though some i/o errors are reported during init sequence), but some cards such as SanDisk Ultra II MiniSD 2GB fail to initialize. The card is identified but then every command sent to it appears to return an error. The block driver reports errors such as:

mmcblk0: error -38 sending status command
mmcblk0: error -84 sending stop command, response 0x8, card status 0xff04
mmcblk0: error -38 sending status command
mmcblk0: error -38 sending read/write command, response 0x4, card \
status 0xff04 end_request: I/O error, dev mmcblk0, sector 3969984

Interestingly, if I toggle the value for the SPH bit in the SSCR1 register, which should control the SSP port's clock phase, the SanDisk card starts working but the Transcend card then fails to even be detected.

Does anyone know if this indicates timing issues on the board, chip configuration problems or anything else in particular?

Signature · 3 lines
Michael Borsuk
[email protected]
http://www.borsuk.org