hw/sd/pxa2xx_mmci: Do not create SD card within the SD host controller
commitd7ebca748e33176ede1a8675cea82271d2c0dac4
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 5 Jul 2020 21:22:10 +0000 (5 23:22 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 21 Aug 2020 14:22:43 +0000 (21 16:22 +0200)
tree726f0b14d96d139866a23a49ec0864cdc68173e0
parentd6f83a72a7db94a3ede9f5cc4fb39f9c8e89f954
hw/sd/pxa2xx_mmci: Do not create SD card within the SD host controller

SD/MMC host controllers provide a SD Bus to plug SD cards,
but don't come with SD card plugged in :)

The machine/board object is where the SD cards are created.
Since the PXA2xx is not qdevified, for now create the cards
in pxa270_init() which is the SoC model.
In the future we will move this to the board model.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200705213350.24725-2-f4bug@amsat.org>
hw/arm/pxa2xx.c
hw/sd/pxa2xx_mmci.c
include/hw/arm/pxa.h