qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
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, jasonwang@redhat.com,
	avi.fishman@nuvoton.com,  nabihestefan@google.com
Subject: [PATCH v4 02/11] hw/arm: Add PCI mailbox module to Nuvoton SoC
Date: Wed, 18 Oct 2023 18:12:50 +0000	[thread overview]
Message-ID: <20231018181259.748819-3-nabihestefan@google.com> (raw)
In-Reply-To: <20231018181259.748819-1-nabihestefan@google.com>

From: Hao Wu <wuhaotsh@google.com>

This patch wires the PCI mailbox module to Nuvoton SoC.

Google-Rebase-Count: 5
Google-Bug-Id: 262938292
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Change-Id: Ifd858a7ed760557faa15a7a1cef66b2056f06e2e
---
 docs/system/arm/nuvoton.rst | 2 ++
 hw/arm/npcm7xx.c            | 3 ++-
 include/hw/arm/npcm7xx.h    | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

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 c69e936669..c9e87162cb 100644
--- a/hw/arm/npcm7xx.c
+++ b/hw/arm/npcm7xx.c
@@ -86,7 +86,6 @@ enum NPCM7xxInterrupt {
     NPCM7XX_UART1_IRQ,
     NPCM7XX_UART2_IRQ,
     NPCM7XX_UART3_IRQ,
-    NPCM7XX_PECI_IRQ            = 6,
     NPCM7XX_PCI_MBOX_IRQ        = 8,
     NPCM7XX_KCS_HIB_IRQ         = 9,
     NPCM7XX_GMAC1_IRQ           = 14,
@@ -463,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.42.0.655.g421f12c284-goog



  parent reply	other threads:[~2023-10-18 18:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-18 18:12 [PATCH v4 00/11] Implementation of NPI Mailbox and GMAC Networking Module Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 01/11] hw/misc: Add Nuvoton's PCI Mailbox Module Nabih Estefan
2023-10-18 18:12 ` Nabih Estefan [this message]
2023-10-18 18:12 ` [PATCH v4 03/11] hw/misc: Add qtest for NPCM7xx PCI Mailbox Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 04/11] hw/net: Add NPCMXXX GMAC device Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 05/11] hw/arm: Add GMAC devices to NPCM7XX SoC Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 06/11] tests/qtest: Creating qtest for GMAC Module Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 07/11] include/hw/net: Implemented Classes and Masks for GMAC Descriptors Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 08/11] hw/net: General GMAC Implementation Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 09/11] hw/net: GMAC Rx Implementation Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 10/11] hw/net: GMAC Tx Implementation Nabih Estefan
2023-10-18 18:12 ` [PATCH v4 11/11] tests/qtest: Adding PCS Module test to GMAC Qtest Nabih Estefan
2023-10-27 12:07 ` [PATCH v4 00/11] Implementation of NPI Mailbox and GMAC Networking Module Peter Maydell

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=20231018181259.748819-3-nabihestefan@google.com \
    --to=nabihestefan@google.com \
    --cc=avi.fishman@nuvoton.com \
    --cc=jasonwang@redhat.com \
    --cc=kfting@nuvoton.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --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).