diff options
author | Sergey Kambalin <serg.oker@gmail.com> | 2024-02-25 18:02:26 -0600 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2024-02-27 13:01:42 +0000 |
commit | b54a9a56796b1c6e27c740d52a88bb7023abb621 (patch) | |
tree | 6c997b36dd68cc8799c70b58620aa0a8c9f79803 /include/hw/gpio/bcm2838_gpio.h | |
parent | 0c8b40db671e2a1336d8effa85e88442af2e0d40 (diff) | |
download | qemu-b54a9a56796b1c6e27c740d52a88bb7023abb621.zip qemu-b54a9a56796b1c6e27c740d52a88bb7023abb621.tar.gz qemu-b54a9a56796b1c6e27c740d52a88bb7023abb621.tar.bz2 |
hw/gpio: Connect SD controller to BCM2838 GPIO
Signed-off-by: Sergey Kambalin <sergey.kambalin@auriga.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20240226000259.2752893-9-sergey.kambalin@auriga.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/gpio/bcm2838_gpio.h')
-rw-r--r-- | include/hw/gpio/bcm2838_gpio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/gpio/bcm2838_gpio.h b/include/hw/gpio/bcm2838_gpio.h index 06d48e0..f2a57a6 100644 --- a/include/hw/gpio/bcm2838_gpio.h +++ b/include/hw/gpio/bcm2838_gpio.h @@ -14,6 +14,7 @@ #ifndef BCM2838_GPIO_H #define BCM2838_GPIO_H +#include "hw/sd/sd.h" #include "hw/sysbus.h" #include "qom/object.h" @@ -29,6 +30,10 @@ struct BCM2838GpioState { MemoryRegion iomem; + /* SDBus selector */ + SDBus sdbus; + SDBus *sdbus_sdhci; + SDBus *sdbus_sdhost; uint8_t fsel[BCM2838_GPIO_NUM]; uint32_t lev0, lev1; |