From: Nabih Estefan <nabihestefan@google.com>
To: peter.maydell@linaro.org
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, kfting@nuvoton.com,
wuhaotsh@google.com, jasowang@redhat.com,
avi.fishman@nuvoton.com, nabihestefan@google.com,
kwliu@nuvoton.com, tomer.maimon@nuvoton.com,
Hila.Miranda-Kuzi@nuvoton.com
Subject: [PATCH v11 02/10] hw/arm: Add PCI mailbox module to Nuvoton SoC
Date: Tue, 9 Jan 2024 00:02:26 +0000 [thread overview]
Message-ID: <20240109000234.2799153-3-nabihestefan@google.com> (raw)
In-Reply-To: <20240109000234.2799153-1-nabihestefan@google.com>
From: Hao Wu <wuhaotsh@google.com>
This patch wires the PCI mailbox module to Nuvoton SoC.
Change-Id: I14c42c628258804030f0583889882842bde0d972
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
next prev parent reply other threads:[~2024-01-09 0:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-09 0:02 [PATCH v11 00/10] Implementation of NPI Mailbox and GMAC Networking Module Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 01/10] hw/misc: Add Nuvoton's PCI Mailbox Module Nabih Estefan
2024-01-09 0:02 ` Nabih Estefan [this message]
2024-01-09 0:02 ` [PATCH v11 03/10] hw/misc: Add qtest for NPCM7xx PCI Mailbox Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 04/10] hw/net: Add NPCMXXX GMAC device Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 05/10] hw/arm: Add GMAC devices to NPCM7XX SoC Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 06/10] tests/qtest: Creating qtest for GMAC Module Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 07/10] include/hw/net: GMAC IRQ Implementation Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 08/10] hw/net: GMAC Rx Implementation Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 09/10] hw/net: GMAC Tx Implementation Nabih Estefan
2024-01-09 0:02 ` [PATCH v11 10/10] tests/qtest: Adding PCS Module test to GMAC Qtest Nabih Estefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240109000234.2799153-3-nabihestefan@google.com \
--to=nabihestefan@google.com \
--cc=Hila.Miranda-Kuzi@nuvoton.com \
--cc=avi.fishman@nuvoton.com \
--cc=jasowang@redhat.com \
--cc=kfting@nuvoton.com \
--cc=kwliu@nuvoton.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=tomer.maimon@nuvoton.com \
--cc=wuhaotsh@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).