mmc: check if mmc cards < 2GB do sector addressing
authorPhilip Rakity <prakity@marvell.com>
Mon, 14 Feb 2011 07:13:09 +0000 (23:13 -0800)
committerChris Ball <cjb@laptop.org>
Wed, 16 Mar 2011 16:30:25 +0000 (12:30 -0400)
commitb676f0391a5f6816c047cbd1e2ad2a897f3c161a
treee054461c7796123904f57fe4969134e94c2eb8ec
parent2f94e55ae5ddad83e661002985d2ea11b6d51d3d
mmc: check if mmc cards < 2GB do sector addressing

Some TOSHIBA MMC cards only support sector addressing even though the
size is < 2GB.  According to JEDEC Spec JESD84-A441-1 the ocr register
(bits 30, 29) determine byte/sector mode.  Use them.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c