mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/arm: Add two NPCM7xx-based machines
This adds two new machines, both supported by OpenBMC: - npcm750-evb: Nuvoton NPCM750 Evaluation Board. - quanta-gsj: A board with a NPCM730 chip. They rely on the NPCM7xx SoC device to do the heavy lifting. They are almost completely identical at the moment, apart from the SoC type, which currently only changes the reset contents of one register (GCR.MDLR), but they might grow apart a bit more as more functionality is added. Both machines can boot the Linux kernel into /bin/sh. Reviewed-by: Tyrone Ting <kfting@nuvoton.com> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Alexander Bulekov <alxndr@bu.edu> Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com> Message-id: 20200911052101.2602693-6-hskinnemoen@google.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
2d8f048c25
commit
b773acf4a6
4 changed files with 166 additions and 1 deletions
|
@ -35,6 +35,25 @@
|
|||
#define NPCM7XX_SMP_BOOTREG_ADDR (0xf080013c) /* GCR.SCRPAD */
|
||||
#define NPCM7XX_GIC_CPU_IF_ADDR (0xf03fe100) /* GIC within A9 */
|
||||
|
||||
typedef struct NPCM7xxMachine {
|
||||
MachineState parent;
|
||||
} NPCM7xxMachine;
|
||||
|
||||
#define TYPE_NPCM7XX_MACHINE MACHINE_TYPE_NAME("npcm7xx")
|
||||
#define NPCM7XX_MACHINE(obj) \
|
||||
OBJECT_CHECK(NPCM7xxMachine, (obj), TYPE_NPCM7XX_MACHINE)
|
||||
|
||||
typedef struct NPCM7xxMachineClass {
|
||||
MachineClass parent;
|
||||
|
||||
const char *soc_type;
|
||||
} NPCM7xxMachineClass;
|
||||
|
||||
#define NPCM7XX_MACHINE_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(NPCM7xxMachineClass, (klass), TYPE_NPCM7XX_MACHINE)
|
||||
#define NPCM7XX_MACHINE_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(NPCM7xxMachineClass, (obj), TYPE_NPCM7XX_MACHINE)
|
||||
|
||||
typedef struct NPCM7xxState {
|
||||
DeviceState parent;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue