storage/mmc: support early init in coreboot

If the eMMC has been already initialized in coreboot
(lib_sysinfo.mmc_early_wake_status), we should skip
sending CMD0 or CMD1 (or both).

BUG=b:177389446
TEST=none
BRANCH=asurada

Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com>
Change-Id: I63a8366bba30e8e08892f29c60a3e472166808b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/depthcharge/+/2785738
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2 files changed