]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/bcm2835_peripherals.c
bcm2835: add sdhost and gpio controllers
authorClement Deschamps <clement.deschamps@antfield.fr>
Tue, 28 Feb 2017 14:55:11 +0000 (14:55 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 17:10:00 +0000 (17:10 +0000)
commit1eeb5c7deacbfb4d4cad17590a16a99f3d85eabb
treed83cda415fa8735fa24018ed2de6d14b254415f1
parentd72fc9dcb10273f7cd55b88fa827af0692a2a232
bcm2835: add sdhost and gpio controllers

This adds the bcm2835_sdhost and bcm2835_gpio to the BCM2835 platform.

For supporting the SD controller selection (alternate function of GPIOs
48-53), the bcm2835_gpio now exposes an sdbus.
It also has a link to both the sdbus of sdhci and sdhost controllers,
and the card is reparented from one bus to another when the alternate
function of GPIOs 48-53 is modified.

Signed-off-by: Clement Deschamps <clement.deschamps@antfield.fr>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1488293711-14195-5-git-send-email-peter.maydell@linaro.org
Message-id: 20170224164021.9066-5-clement.deschamps@antfield.fr
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/bcm2835_peripherals.c
include/hw/arm/bcm2835_peripherals.h