hw/arm/raspi: Extract the version from the board revision
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 8 Feb 2020 16:56:35 +0000 (17:56 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Feb 2020 14:30:51 +0000 (14:30 +0000)
commitcd6c9977d3b34d3c5569bec8c5316735b7df5239
treeec479836e2a1bb0b0a70c01863c165aa220d32b8
parentfc78a990ec1032d8272db49988376f197efac817
hw/arm/raspi: Extract the version from the board revision

The board revision encode the board version. Add a helper
to extract the version, and use it.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200208165645.15657-4-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/raspi.c