Enable SD card on creation.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4640 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
130b0c9868
commit
4872aa135d
1
hw/sd.c
1
hw/sd.c
@ -421,6 +421,7 @@ SDState *sd_init(BlockDriverState *bs, int is_spi)
|
|||||||
sd = (SDState *) qemu_mallocz(sizeof(SDState));
|
sd = (SDState *) qemu_mallocz(sizeof(SDState));
|
||||||
sd->buf = qemu_memalign(512, 512);
|
sd->buf = qemu_memalign(512, 512);
|
||||||
sd->spi = is_spi;
|
sd->spi = is_spi;
|
||||||
|
sd->enable = 1;
|
||||||
sd_reset(sd, bs);
|
sd_reset(sd, bs);
|
||||||
bdrv_set_change_cb(sd->bdrv, sd_cardchange, sd);
|
bdrv_set_change_cb(sd->bdrv, sd_cardchange, sd);
|
||||||
return sd;
|
return sd;
|
||||||
|
Loading…
Reference in New Issue
Block a user