[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 02/10] hw/arm: Add PCI mailbox module to Nuvoton SoC
From: |
Nabih Estefan |
Subject: |
[PATCH v9 02/10] hw/arm: Add PCI mailbox module to Nuvoton SoC |
Date: |
Tue, 19 Dec 2023 21:32:47 +0000 |
From: Hao Wu <wuhaotsh@google.com>
This patch wires the PCI mailbox module to Nuvoton SoC.
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Nabih Estefan <nabihestefan@google.com>
Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
---
docs/system/arm/nuvoton.rst | 2 ++
hw/arm/npcm7xx.c | 2 ++
include/hw/arm/npcm7xx.h | 1 +
3 files changed, 5 insertions(+)
diff --git a/docs/system/arm/nuvoton.rst b/docs/system/arm/nuvoton.rst
index 0424cae4b0..e611099545 100644
--- a/docs/system/arm/nuvoton.rst
+++ b/docs/system/arm/nuvoton.rst
@@ -50,6 +50,8 @@ Supported devices
* Ethernet controller (EMC)
* Tachometer
* Peripheral SPI controller (PSPI)
+ * BIOS POST code FIFO
+ * PCI Mailbox
Missing devices
---------------
diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c
index 1c3634ff45..c9e87162cb 100644
--- a/hw/arm/npcm7xx.c
+++ b/hw/arm/npcm7xx.c
@@ -462,6 +462,8 @@ static void npcm7xx_init(Object *obj)
object_initialize_child(obj, "pspi[*]", &s->pspi[i], TYPE_NPCM_PSPI);
}
+ object_initialize_child(obj, "pci-mbox", &s->pci_mbox,
+ TYPE_NPCM7XX_PCI_MBOX);
object_initialize_child(obj, "mmc", &s->mmc, TYPE_NPCM7XX_SDHCI);
}
diff --git a/include/hw/arm/npcm7xx.h b/include/hw/arm/npcm7xx.h
index 273090ac60..cec3792a2e 100644
--- a/include/hw/arm/npcm7xx.h
+++ b/include/hw/arm/npcm7xx.h
@@ -105,6 +105,7 @@ struct NPCM7xxState {
OHCISysBusState ohci;
NPCM7xxFIUState fiu[2];
NPCM7xxEMCState emc[2];
+ NPCM7xxPCIMBoxState pci_mbox;
NPCM7xxSDHCIState mmc;
NPCMPSPIState pspi[2];
};
--
2.43.0.472.g3155946c3a-goog
- [PATCH v9 00/10] Implementation of NPI Mailbox and GMAC Networking Module, Nabih Estefan, 2023/12/19
- [PATCH v9 01/10] hw/misc: Add Nuvoton's PCI Mailbox Module, Nabih Estefan, 2023/12/19
- [PATCH v9 02/10] hw/arm: Add PCI mailbox module to Nuvoton SoC,
Nabih Estefan <=
- [PATCH v9 08/10] hw/net: GMAC Rx Implementation, Nabih Estefan, 2023/12/19
- [PATCH v9 09/10] hw/net: GMAC Tx Implementation, Nabih Estefan, 2023/12/19
- [PATCH v9 03/10] hw/misc: Add qtest for NPCM7xx PCI Mailbox, Nabih Estefan, 2023/12/19
- [PATCH v9 04/10] hw/net: Add NPCMXXX GMAC device, Nabih Estefan, 2023/12/19
- [PATCH v9 06/10] tests/qtest: Creating qtest for GMAC Module, Nabih Estefan, 2023/12/19
- [PATCH v9 05/10] hw/arm: Add GMAC devices to NPCM7XX SoC, Nabih Estefan, 2023/12/19
- [PATCH v9 07/10] include/hw/net: General GMAC Implementation, Nabih Estefan, 2023/12/19
- [PATCH v9 10/10] tests/qtest: Adding PCS Module test to GMAC Qtest, Nabih Estefan, 2023/12/19