On Wed, 25 Sep 2019 at 14:33, Cédric Le Goater <c...@kaod.org> wrote: > > From: Eddie James <eaja...@linux.ibm.com> > > The Aspeed SOCs have two SD/MMC controllers. Add a device that > encapsulates both of these controllers and models the Aspeed-specific > registers and behavior. > > Tested by reading from mmcblk0 in Linux: > qemu-system-arm -machine romulus-bmc -nographic \ > -drive file=flash-romulus,format=raw,if=mtd \ > -device sd-card,drive=sd0 -drive file=_tmp/kernel,format=raw,if=sd,id=sd0 > > Signed-off-by: Eddie James <eaja...@linux.ibm.com> > Reviewed-by: Cédric Le Goater <c...@kaod.org> > [clg: - changed the controller MMIO window size to 0x1000 > - moved the MMIO mapping of the SDHCI slots at the SoC level > - merged code to add SD drives on the SD buses at the machine level ] > Signed-off-by: Cédric Le Goater <c...@kaod.org>
Reviewed-by: Joel Stanley <j...@jms.id.au>