hw/sd/pl181: Expose a SDBus and connect the SDCard to it
commit2762eed1f5534074fcce703bdda8702905dc4c61
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 23 Jan 2018 03:58:35 +0000 (23 04:58 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 21 Aug 2020 14:22:43 +0000 (21 16:22 +0200)
treef2dca51900783c8fd44be43aacbb5f571bba70fd
parent26c5b0f4cbe19ad87d3aaba22cd1a8edc25f7ceb
hw/sd/pl181: Expose a SDBus and connect the SDCard to it

Convert the controller to the SDBus API:
- add the a TYPE_PL181_BUS object of type TYPE_SD_BUS,
- adapt the SDBusClass set_inserted/set_readonly handlers
- create the bus in the PL181 controller
- switch legacy sd_*() API to the sdbus_*() API.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200705204630.4133-7-f4bug@amsat.org>
hw/sd/pl181.c