MMC: Fix for capacity calculation on eMMC
authorSukumar Ghorai <s-ghorai@ti.com>
Mon, 20 Sep 2010 12:59:29 +0000 (18:29 +0530)
committerWolfgang Denk <wd@denx.de>
Sun, 17 Oct 2010 18:14:06 +0000 (20:14 +0200)
commitd23e2c09a7900ec4c208e602b608ae2399e6d536
treeeebe5846ec1bcd07094e7ab332aab75f7a6d7730
parent7b7903ec6a1c693c98e9dea512b91eb59cfd0cf6
MMC: Fix for capacity calculation on eMMC

  The current mmc driver returns erroneous capacity information for
  eMMC.  The capacity of eMMC devices is available only in the ext-CSD
  register.  This patch add code to read the ext-CDSD register and
  correctly calculate eMMC capacity.

Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
Acked-by: Steve Sakoman <steve@sakoman.com>
drivers/mmc/mmc.c