Skip to contentSkip to conversation

Is anyone working on SD/MMC driver for i.MX35 ?

DISCUSSION Hans J. Koch 4 participants 10 messages Apr 1, 2010 – Aug 5, 2010 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

I need to get the MMC interface of an i.MX35 to work in the near future. To avoid duplicate work, I'd like to know if anybody already started work on this.

Any hints?

Thanks,
Hans

#1 lore raw
Quoted 3 lines · Hans J. Koch

I need to get the MMC interface of an i.MX35 to work in the near future. To avoid duplicate work, I'd like to know if anybody already started work on this.

Is the controller very different from the one which is already supported for MX31?

Daniel

#2 lore raw
Quoted 7 lines · Daniel Mack
Quoted 3 lines · Hans J. Koch

I need to get the MMC interface of an i.MX35 to work in the near future. To avoid duplicate work, I'd like to know if anybody already started work on this.

Is the controller very different from the one which is already supported for MX31?

Yep. Completely different beast. Unfortunately.

Thanks,
Hans

Quoted 2 lines

Daniel

#3 lore raw
Quoted 10 lines · Hans J. Koch
Quoted 7 lines · Daniel Mack
Quoted 3 lines · Hans J. Koch

I need to get the MMC interface of an i.MX35 to work in the near future. To avoid duplicate work, I'd like to know if anybody already started work on this.

Is the controller very different from the one which is already supported for MX31?

Yep. Completely different beast. Unfortunately.

(CCing linux-mmc)

And it is a mess, really :(

The kernel already has an esdhc-driver (and Anton already worked around a number of hardware-bugs), but is tied into an of-driver because the core was also used on PowerPC. There, it utilizes a 32-bit-byte-swaper which is not needed on ARM. So, one has to rip all that out, generalize the sdhc-platform support (possibly also abstract the quirk support) and make sure nothing breaks.

I started and got MMC working, but it is by far not mainline quality (and maybe bitrotten by now). Check the sdhci-pltfm branch at

http://git.pengutronix.de/?p=wsa/linux-2.6.git;a=summary

You see, there is still some of_* left in the platform-part.

Maybe you can push this a bit further,

Wolfram

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100402/af49aabd/attachment.sig>
#4 lore raw
Quoted 14 lines · Wolfram Sang
Quoted 10 lines · Hans J. Koch
Quoted 7 lines · Daniel Mack
Quoted 3 lines · Hans J. Koch

I need to get the MMC interface of an i.MX35 to work in the near future. To avoid duplicate work, I'd like to know if anybody already started work on this.

Is the controller very different from the one which is already supported for MX31?

Yep. Completely different beast. Unfortunately.

(CCing linux-mmc)

Quoted 8 lines

And it is a mess, really :(

The kernel already has an esdhc-driver (and Anton already worked around a number of hardware-bugs), but is tied into an of-driver because the core was also used on PowerPC. There, it utilizes a 32-bit-byte-swaper which is not needed on ARM. So, one has to rip all that out, generalize the sdhc-platform support (possibly also abstract the quirk support) and make sure nothing breaks.

FYI, there is sdhci-pltfm driver, + some patches to add quirks support:

http://lkml.org/lkml/2010/3/16/337

These patches are already in the -mm tree.

Thanks,

Signature · 3 lines
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2
#5 lore raw
Quoted 24 lines · Anton Vorontsov
Quoted 14 lines · Wolfram Sang
Quoted 10 lines · Hans J. Koch
Quoted 7 lines · Daniel Mack
Quoted 3 lines · Hans J. Koch

I need to get the MMC interface of an i.MX35 to work in the near future. To avoid duplicate work, I'd like to know if anybody already started work on this.

Is the controller very different from the one which is already supported for MX31?

Yep. Completely different beast. Unfortunately.

(CCing linux-mmc)

Quoted 8 lines

And it is a mess, really :(

The kernel already has an esdhc-driver (and Anton already worked around a number of hardware-bugs), but is tied into an of-driver because the core was also used on PowerPC. There, it utilizes a 32-bit-byte-swaper which is not needed on ARM. So, one has to rip all that out, generalize the sdhc-platform support (possibly also abstract the quirk support) and make sure nothing breaks.

Quoted 6 lines

FYI, there is sdhci-pltfm driver, + some patches to add quirks support:

http://lkml.org/lkml/2010/3/16/337

These patches are already in the -mm tree.

Thanks a lot for all your hints! Will have a deeper look at that.

Thanks,
Hans

#6 lore raw
Quoted 1 line

Thanks a lot for all your hints! Will have a deeper look at that.

Any success?

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100427/c6539877/attachment.sig>
#7 lore raw
Quoted 3 lines · Wolfram Sang
Quoted 1 line

Thanks a lot for all your hints! Will have a deeper look at that.

Any success?

I was delayed by some other project, don't know when I'll have something.

Hans

#8 lore raw
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Thanks a lot for all your hints! Will have a deeper look at that.

Any success?

I was delayed by some other project, don't know when I'll have something.

Meanwhile? I might need to touch it in the future again...

Signature · 9 lines
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100803/23e49afd/attachment.sig>
#9 lore raw
Quoted 7 lines · Wolfram Sang
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Thanks a lot for all your hints! Will have a deeper look at that.

Any success?

I was delayed by some other project, don't know when I'll have something.

Meanwhile? I might need to touch it in the future again...

No, sorry. I probably won't work on that anymore.

Thanks,
Hans