On 6/27/24 7:10 PM, Philippe Mathieu-Daudé wrote:
Trying to land what Vincent Palatin started 13 years ago!
https://lore.kernel.org/qemu-devel/1311635951-11047-5-git-send-email-vpala...@chromium.org/
with fixes from Sai, Joel and Cédric.
I reviewed Cédric patches but still plan to review the EXT_CSD
layout and Joel "boot config" patches.
In order to avoid deviation with the spec, the experimental
'x-aspeed-emmc-kludge' property is used.
Adding Aspeed people for feedback.
Thanks,
C.
Based-on: <20240627164815.82606-1-phi...@linaro.org>
Full series for testing:
https://gitlab.com/philmd/qemu/-/tags/emmc-v4
Including Aspeed branch from Cédric on top (aspeed-9.1):
https://gitlab.com/philmd/qemu/-/tags/aspeed_emmc-v4
Cédric Le Goater (5):
hw/sd/sdcard: Basis for eMMC support
hw/sd/sdcard: Add emmc_cmd_SET_RELATIVE_ADDR() handler
hw/sd/sdcard: Fix SET_BLOCK_COUNT command argument on eMMC (CMD23)
hw/sd/sdcard: Adapt sd_cmd_ALL_SEND_CID handler for eMMC (CMD2)
hw/sd/sdcard: Adapt sd_cmd_APP_CMD handler for eMMC (CMD55)
Joel Stanley (3):
hw/sd/sdcard: Support boot area in emmc image
hw/sd/sdcard: Subtract bootarea size from blk
hw/sd/sdcard: Add boot config support
Luc Michel (1):
hw/sd/sdcard: Implement eMMC sleep state (CMD5)
Philippe Mathieu-Daudé (6):
hw/sd/sdcard: Introduce set_csd/set_cid handlers
hw/sd/sdcard: Cover more SDCardStates
hw/sd/sdcard: Register generic command handlers
hw/sd/sdcard: Register unimplemented command handlers
hw/sd/sdcard: Add mmc_cmd_PROGRAM_CID handler (CMD26)
hw/sd/sdcard: Add experimental 'x-aspeed-emmc-kludge' property
Sai Pavan Boddu (3):
hw/sd/sdcard: Add emmc_cmd_SEND_OP_COND handler (CMD1)
hw/sd/sdcard: add emmc_cmd_SEND_TUNING_BLOCK handler (CMD21)
hw/sd/sdcard: Add mmc SWITCH function support (CMD6)
Vincent Palatin (1):
hw/sd/sdcard: Add emmc_cmd_SEND_EXT_CSD handler (CMD8)
hw/sd/sdmmc-internal.h | 3 +
include/hw/sd/sd.h | 6 +
hw/sd/sd.c | 419 ++++++++++++++++++++++++++++++++++++++++-
3 files changed, 420 insertions(+), 8 deletions(-)