mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/ppc: SPI controller wiring to P10 chip
In this commit, create SPI controller on p10 chip and connect cs irq. The QOM tree of pnv-spi and seeprom are. /machine (powernv10-machine) /chip[0] (power10_v2.0-pnv-chip) /pib_spic[2] (pnv-spi) /pnv-spi-bus.2 (SSI) /xscom-spi[0] (memory-region) /machine (powernv10-machine) /peripheral-anon (container) /device[0] (25csm04) /WP#[0] (irq) /ssi-gpio-cs[0] (irq) (qemu) qom-get /machine/peripheral-anon /device[76] "parent_bus" "/machine/chip[0]/pib_spic[2]/pnv-spi-bus.2" Signed-off-by: Chalapathi V <chalapathi.v@linux.ibm.com> Reviewed-by: Glenn Miles <milesg@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
This commit is contained in:
parent
8d970f4162
commit
bb44dc4862
3 changed files with 31 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "hw/ppc/pnv_core.h"
|
||||
#include "hw/ppc/pnv_homer.h"
|
||||
#include "hw/ppc/pnv_n1_chiplet.h"
|
||||
#include "hw/ssi/pnv_spi.h"
|
||||
#include "hw/ppc/pnv_lpc.h"
|
||||
#include "hw/ppc/pnv_occ.h"
|
||||
#include "hw/ppc/pnv_psi.h"
|
||||
|
@ -123,6 +124,8 @@ struct Pnv10Chip {
|
|||
PnvSBE sbe;
|
||||
PnvHomer homer;
|
||||
PnvN1Chiplet n1_chiplet;
|
||||
#define PNV10_CHIP_MAX_PIB_SPIC 6
|
||||
PnvSpi pib_spic[PNV10_CHIP_MAX_PIB_SPIC];
|
||||
|
||||
uint32_t nr_quads;
|
||||
PnvQuad *quads;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue