mmc: sd: query function modes for uhs cards
authorArindam Nath <arindam.nath@amd.com>
Thu, 5 May 2011 06:48:58 +0000 (11:48 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 01:04:40 +0000 (21:04 -0400)
commit013909c4ffd16ded4895528b856fd8782df04dc6
treeb74fe0c34dfd3c2348497b1aa3a34f5132ca4822
parentf2119df6b764609af4baceb68caf1e848c1c8aa7
mmc: sd: query function modes for uhs cards

SD cards which conform to Physical Layer Spec v3.01 can support
additional Bus Speed Modes, Driver Strength, and Current Limit
other than the default values. We use CMD6 mode 0 to read these
additional card functions. The values read here will be used
during UHS-I initialization steps.

Tested by Zhangfei Gao with a Toshiba uhs card and general hs card,
on mmp2 in SDMA mode.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Tested-by: Philip Rakity <prakity@marvell.com>
Acked-by: Zhangfei Gao <zhangfei.gao@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd.c
include/linux/mmc/card.h