From: Harm Berntsen Date: Fri, 30 Oct 2020 08:45:11 +0000 Subject: [PATCH 0/3] mmc support for QEMU Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, This patch series allows you to use a mmc drive from within QEMU: 1. make qemu_arm_defconfig 2. Enable the CONFIG_DM_MMC, CONFIG_MMC_PCI, CONFIG_MMC_SDHCI options 3. Run quemu as follows: ?? qemu-system-arm ?? -machine virt,highmem=off \ ?? -device sdhci-pci \ ?? -device sd-card,drive=mydrive \ ?? -drive id=mydrive,if=none,format=raw,file=mmcblk0.bin \ ?? -bios u-boot.bin The MMC image can now be used to boot :) Regards, Harm Harm Berntsen (3): ? gpio: do not include on ARCH_QEMU ? acpi: Only include asm table when available ? mmc: Only retrieve cd pin when GPIO is enabled ?arch/arm/include/asm/gpio.h | 3 ++- ?drivers/mmc/pci_mmc.c?????? | 2 ++ ?include/acpi/acpi_table.h?? | 2 ++ ?3 files changed, 6 insertions(+), 1 deletion(-)