bcm2835_property: implement "get board revision" query
commitf0afa73164778570083504a185d7498884c68d65
authorStephen Warren <swarren@wwwdotorg.org>
Thu, 11 Feb 2016 11:17:32 +0000 (11 11:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Feb 2016 11:17:32 +0000 (11 11:17 +0000)
treee759b3873d39ed5ad47605d41fe4934d1fe477be
parent7ea686f5dda7cb9a5425fab716ce41260eeecf15
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>
hw/arm/bcm2835_peripherals.c
hw/arm/bcm2836.c
hw/arm/raspi.c
hw/misc/bcm2835_property.c
include/hw/misc/bcm2835_property.h