mmc: SEND_OP_COND considers card capabilities (voltage)
authorRaffaele Recalcati <raffaele.recalcati@bticino.it>
Fri, 11 Mar 2011 02:01:13 +0000 (02:01 +0000)
committerAndy Fleming <afleming@freescale.com>
Wed, 13 Apr 2011 12:09:04 +0000 (07:09 -0500)
commit31cacbabf07ce00f5250b9826d5e48d4bbee1f94
tree6a74675a8854534415fda66327ffd944299a6972
parent5d4fc8d907ed12844b9c9190601fef2919f3ec25
mmc: SEND_OP_COND considers card capabilities (voltage)

The first SEND_OP_COND (CMD1) command added is used to ask card capabilities.
After it an AND operation is done between card capabilities and host
capabilities (at the moment only for the voltage field).
Finally the correct value is sent to the MMC, waiting that the card
exits from busy state.

Signed-off-by: Raffaele Recalcati <raffaele.recalcati@bticino.it>
Signed-off-by: Andy Fleming <afleming@freescale.com>
drivers/mmc/mmc.c
include/mmc.h