hw/arm/bcm2835_peripherals: implement SDHCI Spec v3
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com> Message-Id: <20180208164818.7961-24-f4bug@amsat.org>
This commit is contained in:
parent
da34692234
commit
ed6c5e93bb
@ -254,14 +254,19 @@ static void bcm2835_peripherals_realize(DeviceState *dev, Error **errp)
|
|||||||
memory_region_add_subregion(&s->peri_mr, RNG_OFFSET,
|
memory_region_add_subregion(&s->peri_mr, RNG_OFFSET,
|
||||||
sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->rng), 0));
|
sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->rng), 0));
|
||||||
|
|
||||||
/* Extended Mass Media Controller */
|
/* Extended Mass Media Controller
|
||||||
object_property_set_int(OBJECT(&s->sdhci), BCM2835_SDHC_CAPAREG, "capareg",
|
*
|
||||||
&err);
|
* Compatible with:
|
||||||
if (err) {
|
* - SD Host Controller Specification Version 3.0 Draft 1.0
|
||||||
error_propagate(errp, err);
|
* - SDIO Specification Version 3.0
|
||||||
return;
|
* - MMC Specification Version 4.4
|
||||||
}
|
*
|
||||||
|
* For the exact details please refer to the Arasan documentation:
|
||||||
|
* SD3.0_Host_AHB_eMMC4.4_Usersguide_ver5.9_jan11_10.pdf
|
||||||
|
*/
|
||||||
|
object_property_set_uint(OBJECT(&s->sdhci), 3, "sd-spec-version", &err);
|
||||||
|
object_property_set_uint(OBJECT(&s->sdhci), BCM2835_SDHC_CAPAREG, "capareg",
|
||||||
|
&err);
|
||||||
object_property_set_bool(OBJECT(&s->sdhci), true, "pending-insert-quirk",
|
object_property_set_bool(OBJECT(&s->sdhci), true, "pending-insert-quirk",
|
||||||
&err);
|
&err);
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user