mmc: sd: extracting erase related information from sd status
authorPeng Fan <van.freenix@gmail.com>
Thu, 1 Sep 2016 03:13:38 +0000 (11:13 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Sep 2016 21:46:01 +0000 (06:46 +0900)
commit3697e5992f89c923aca17d7d9174739da28cb3cd
tree313951270679bb594c1c8e1d5b3648500d341654
parent65a25b2086a77cfdd9c727d749c18341b1161f71
mmc: sd: extracting erase related information from sd status

Add function to read SD_STATUS information.
According to the information, get erase_timeout/erase_size/erase_offset.
Add a structure sd_ssr to include the erase related information.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Stefan Wahren <stefan.wahren@i2se.com>
Cc: Clemens Gruber <clemens.gruber@pqgruber.com>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Eric Nelson <eric@nelint.com>
Cc: Stephen Warren <swarren@nvidia.com>
drivers/mmc/mmc.c
include/mmc.h