summaryrefslogtreecommitdiffstats
path: root/include/hw/misc/bcm2835_property.h
diff options
context:
space:
mode:
authorStephen Warren2016-02-11 12:17:32 +0100
committerPeter Maydell2016-02-11 12:17:32 +0100
commitf0afa73164778570083504a185d7498884c68d65 (patch)
treee759b3873d39ed5ad47605d41fe4934d1fe477be /include/hw/misc/bcm2835_property.h
parenthw/arm/virt: fix max-cpus check (diff)
downloadqemu-f0afa73164778570083504a185d7498884c68d65.tar.gz
qemu-f0afa73164778570083504a185d7498884c68d65.tar.xz
qemu-f0afa73164778570083504a185d7498884c68d65.zip
bcm2835_property: implement "get board revision" query
Return a valid value from the BCM2835 property mailbox query "get board revision". This query is used by U-Boot. Implementing it fixes the first obvious difference between qemu and real HW. The value returned is currently hard-coded to match the RPi2 I own. Other values are legal, e.g. different board manufacturer field values are likely to exist in the wild. Cc: Andrew Baumann <Andrew.Baumann@microsoft.com> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Reviewed-by: Andrew Baumann <Andrew.Baumann@microsoft.com> Message-id: 1454993910-24077-1-git-send-email-swarren@wwwdotorg.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/misc/bcm2835_property.h')
-rw-r--r--include/hw/misc/bcm2835_property.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/misc/bcm2835_property.h b/include/hw/misc/bcm2835_property.h
index fcf5f3deca..df889eaa08 100644
--- a/include/hw/misc/bcm2835_property.h
+++ b/include/hw/misc/bcm2835_property.h
@@ -23,6 +23,7 @@ typedef struct {
MemoryRegion iomem;
qemu_irq mbox_irq;
MACAddr macaddr;
+ uint32_t board_rev;
uint32_t ram_size;
uint32_t addr;
bool pending;