Received: from eggs.gnu.org ([140.186.70.92]:53437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUQh-0004PW-BN for qemu-devel@nongnu.org; Mon, 25 Jul 2011 19:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlUQg-0000nt-1F for qemu-devel@nongnu.org; Mon, 25 Jul 2011 19:19:19 -0400 Received: from smtp-out.google.com ([216.239.44.51]:20581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlUQf-0000nn-TI for qemu-devel@nongnu.org; Mon, 25 Jul 2011 19:19:18 -0400 Received: from wpaz1.hot.corp.google.com (wpaz1.hot.corp.google.com [172.24.198.65]) by smtp-out.google.com with ESMTP id p6PNJGRD023591 for ; Mon, 25 Jul 2011 16:19:16 -0700 Received: from vpa.mtv.corp.google.com (vpa.mtv.corp.google.com [172.22.72.27]) by wpaz1.hot.corp.google.com with ESMTP id p6PNJFT2018462 for ; Mon, 25 Jul 2011 16:19:15 -0700 From: Vincent Palatin Date: Mon, 25 Jul 2011 16:19:04 -0700 Message-Id: <1311635951-11047-1-git-send-email-vpalatin@chromium.org> Subject: [Qemu-devel] sd: add SDHCI and eMMC support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu devel Dear Qemu developers, This patchset adds the support for eMMC as found soldered on many embedded board in addition to current support for SD/SDHC cards. It also adds a standard SDHCI controller emulation. The first patches are a couple of fixes to the current SD code found while implementing these features. The SDHCI emulation has both a MMIO interface as found in several ARM SoC and a PCI interface. The PCI interface allows to test it with the current code base. I hope to send for review soon the patches for an ARM SoC using the MMIO interface. The PCI version of the SDHCI controller can be tested with such a command line : ./i386-softmmu/qemu -hda rootfs.qcow2 -device sdhci_pci -sd sd_image.raw An eMMC connected to the SDHCI controller can be instantied like this : ./x86_64-softmmu/qemu-system-x86_64 -hda rootfs.qcow2 -device sdhci_pci,block=internal_card -drive id=internal_card,if=emmc,file=emmc4G.raw The patch series has also been tested with MMC_TEST linux kernel module and a chromium image booted from eMMC. -- Vincent