mirror of
https://github.com/qemu/qemu.git
synced 2025-10-28 06:54:53 +00:00
hw/arm/raspi: Correct the board descriptions
We hardcode the board revision as 0xa21041 for the raspi2, and
0xa02082 for the raspi3:
166 static void raspi_init(MachineState *machine, int version)
167 {
...
194 int board_rev = version == 3 ? 0xa02082 : 0xa21041;
These revision codes are for the 2B and 3B models, see:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
Correct the board description.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20200208165645.15657-3-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
918c81a53e
commit
fc78a990ec
@ -221,7 +221,7 @@ static void raspi2_init(MachineState *machine)
|
||||
|
||||
static void raspi2_machine_init(MachineClass *mc)
|
||||
{
|
||||
mc->desc = "Raspberry Pi 2";
|
||||
mc->desc = "Raspberry Pi 2B";
|
||||
mc->init = raspi2_init;
|
||||
mc->block_default_type = IF_SD;
|
||||
mc->no_parallel = 1;
|
||||
@ -243,7 +243,7 @@ static void raspi3_init(MachineState *machine)
|
||||
|
||||
static void raspi3_machine_init(MachineClass *mc)
|
||||
{
|
||||
mc->desc = "Raspberry Pi 3";
|
||||
mc->desc = "Raspberry Pi 3B";
|
||||
mc->init = raspi3_init;
|
||||
mc->block_default_type = IF_SD;
|
||||
mc->no_parallel = 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user