AnsweredAssumed Answered

imx28 sd card reader

Question asked by gennaro on Oct 28, 2013

Hi,

 

Thanks in advice for your help.

I have a custom board based on imx28. The custom board has 3 ssp enabled. On ssp2 I have a sd card reader, the sd is connected on spi with Texas Instruments mode 4pins(miso,mosi,sck and ss0). The configuration pins is here:

{

.name = "SSP2 MOSI",

.id = PINID_SSP2_MOSI,

.fun = PIN_FUN1,

.strength = PAD_4MA,

.voltage = PAD_3_3V,

.drive  = 1,

},

{

.name = "SSP2 MISO",

.id = PINID_SSP2_MISO,

.fun = PIN_FUN1,

.strength = PAD_4MA,

.voltage = PAD_3_3V,

.drive  = 1,

},

{

.name = "SSP2 SCK",

.id = PINID_SSP2_SCK,

.fun = PIN_FUN1,

.strength = PAD_4MA,

.voltage = PAD_3_3V,

.drive  = 1,

},

{

.name = "SSP2 SS0",

.id = PINID_SSP2_CS,

.fun = PIN_FUN1,

.strength = PAD_8MA,

.voltage = PAD_3_3V,

.drive  = 1,

},

 

also I have a gpio pins for sd detect. I need to developer a driver for sd card reader.

What would be your workflow in this case? try to work with mxs-mmc driver? or simple enable spi-mxs driver and develop a reader ? or try mmc-spi driver?
I'm new with this board and I'd like to know the best practices.

 

Thanks

Outcomes