]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/sd/sdhci.c
sdhci: add quirk property for card insert interrupt status on Raspberry Pi
authorAndrew Baumann <Andrew.Baumann@microsoft.com>
Thu, 25 Feb 2016 21:35:30 +0000 (13:35 -0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Feb 2016 15:09:42 +0000 (15:09 +0000)
commit0a7ac9f9e72246ce41dfb101c77a58de607aef7c
tree5abfc1da84875c139963df6a3e5d8ed4eec5df52
parent5c1bc9a234704c3d2001e7751b2d33145202a35f
sdhci: add quirk property for card insert interrupt status on Raspberry Pi

This quirk is a workaround for the following hardware behaviour, on
which UEFI (specifically, the bootloader for Windows on Pi2) depends:

1. at boot with an SD card present, the interrupt status/enable
   registers are initially zero
2. upon enabling it in the interrupt enable register, the card insert
   bit in the interrupt status register is immediately set
3. after a subsequent controller reset, the card insert interrupt does
   not fire, even if enabled in the interrupt enable register

Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Message-id: 1456436130-7048-3-git-send-email-Andrew.Baumann@microsoft.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/sdhci.c
include/hw/sd/sdhci.h