imx233: simplify sd/mmc driver
commit41bf9ebc89415380751f2d457db5afac0c824369
authorAmaury Pouly <amaury.pouly@gmail.com>
Tue, 21 Aug 2012 14:25:11 +0000 (21 16:25 +0200)
committerAmaury Pouly <amaury.pouly@gmail.com>
Tue, 21 Aug 2012 14:28:36 +0000 (21 16:28 +0200)
tree5c6b4a57532fefd853e01fd721fccec1d87857d1
parent39396cc70752748c3fbafa6a0afc26835719b9e4
imx233: simplify sd/mmc driver

Further merge drivers by using the same command and data functions.
No use one mutex per drive instead of a global sd lock. Fix the
RCA handling which was different between SD and MMC (shifted 16)
and thus confusing. Add MMC commands definition to the mmc.h
header similarly to the SD one. Change MMC handling a bit by
selecting/deselecting on each transfer like SD, which allows
for several MMC devices in theory and is more uniform.

Change-Id: I7024cb19c079553806138ead75b00640f1d2d95c
firmware/export/mmc.h
firmware/target/arm/imx233/sdmmc-imx233.c