From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Coco Li <lixiaoyan@google.com>, peter.maydell@linaro.org, clg@kaod.org
Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, flwu@google.com,
andrew@codeconstruct.com.au, Hao Wu <wuhaotsh@google.com>
Subject: Re: [PATCH v1 3/5] hw/arm/npcm8xx.c: Add all IRQ ENUMs
Date: Thu, 25 Sep 2025 03:08:07 +0200 [thread overview]
Message-ID: <1a755fbf-e6d6-4f80-b35d-29fcb3f587d3@linaro.org> (raw)
In-Reply-To: <20250925005832.3708492-4-lixiaoyan@google.com>
Hi,
On 25/9/25 02:58, Coco Li wrote:
> In the process of implementing serial gpio and adding the corresponding
> ENUMs, also complete the list for npcm8xx.
>
> Signed-off-by: Coco Li <lixiaoyan@google.com>
> Reviewed-by: Hao Wu <wuhaotsh@google.com>
> ---
> hw/arm/npcm8xx.c | 43 ++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 42 insertions(+), 1 deletion(-)
>
> diff --git a/hw/arm/npcm8xx.c b/hw/arm/npcm8xx.c
> index a276fea698..10887d07fa 100644
> --- a/hw/arm/npcm8xx.c
> +++ b/hw/arm/npcm8xx.c
> @@ -92,8 +92,14 @@ enum NPCM8xxInterrupt {
> NPCM8XX_GMAC2_IRQ,
> NPCM8XX_GMAC3_IRQ,
> NPCM8XX_GMAC4_IRQ,
> - NPCM8XX_MMC_IRQ = 26,
> + NPCM8XX_ESPI_IRQ,
> + NPCM8XX_SIOX0_IRQ,
> + NPCM8XX_SIOX1_IRQ,
> + NPCM8XX_MC_IRQ = 25,
> + NPCM8XX_MMC_IRQ,
> NPCM8XX_PSPI_IRQ = 28,
> + NPCM8XX_VDMA_IRQ,
> + NPCM8XX_MCTP_IRQ,
> NPCM8XX_TIMER0_IRQ = 32, /* Timer Module 0 */
> NPCM8XX_TIMER1_IRQ,
> NPCM8XX_TIMER2_IRQ,
> @@ -116,6 +122,14 @@ enum NPCM8xxInterrupt {
> NPCM8XX_OHCI1_IRQ,
> NPCM8XX_EHCI2_IRQ,
> NPCM8XX_OHCI2_IRQ,
> + NPCM8XX_SPI1_IRQ = 82,
> + NPCM8XX_RNG_IRQ = 84,
> + NPCM8XX_SPI0_IRQ = 85,
> + NPCM8XX_SPI3_IRQ = 87,
> + NPCM8XX_GDMA0_IRQ = 88,
> + NPCM8XX_GDMA1_IRQ,
> + NPCM8XX_GDMA2_IRQ,
> + NPCM8XX_OTP_IRQ = 92,
> NPCM8XX_PWM0_IRQ = 93, /* PWM module 0 */
> NPCM8XX_PWM1_IRQ, /* PWM module 1 */
> NPCM8XX_MFT0_IRQ = 96, /* MFT module 0 */
> @@ -128,6 +142,11 @@ enum NPCM8xxInterrupt {
> NPCM8XX_MFT7_IRQ, /* MFT module 7 */
> NPCM8XX_PCI_MBOX1_IRQ = 105,
> NPCM8XX_PCI_MBOX2_IRQ,
> + NPCM8XX_GPIO231_IRQ = 108,
> + NPCM8XX_GPIO233_IRQ,
> + NPCM8XX_GPIO234_IRQ,
> + NPCM8XX_GPIO93_IRQ,
> + NPCM8XX_GPIO94_IRQ,
> NPCM8XX_GPIO0_IRQ = 116,
> NPCM8XX_GPIO1_IRQ,
> NPCM8XX_GPIO2_IRQ,
> @@ -163,6 +182,12 @@ enum NPCM8xxInterrupt {
> NPCM8XX_SMBUS24_IRQ,
> NPCM8XX_SMBUS25_IRQ,
> NPCM8XX_SMBUS26_IRQ,
> + NPCM8XX_FLM0_IRQ = 160,
> + NPCM8XX_FLM1_IRQ,
> + NPCM8XX_FLM2_IRQ,
> + NPCM8XX_FLM3_IRQ,
Minor style comment, maybe worth adding a new line when the
following enum is not contiguous.
Regards,
Phil.
> + NPCM8XX_JMT1_IRQ = 188,
> + NPCM8XX_JMT2_IRQ,
> NPCM8XX_UART0_IRQ = 192,
> NPCM8XX_UART1_IRQ,
> NPCM8XX_UART2_IRQ,
> @@ -170,6 +195,22 @@ enum NPCM8xxInterrupt {
> NPCM8XX_UART4_IRQ,
> NPCM8XX_UART5_IRQ,
> NPCM8XX_UART6_IRQ,
> + NPCM8XX_I3C0_IRQ = 224,
> + NPCM8XX_I3C1_IRQ,
> + NPCM8XX_I3C2_IRQ,
> + NPCM8XX_I3C3_IRQ,
> + NPCM8XX_I3C4_IRQ,
> + NPCM8XX_I3C5_IRQ,
> + NPCM8XX_A35INTERR_IRQ = 240,
> + NPCM8XX_A35EXTERR_IRQ,
> + NPCM8XX_PMU0_IRQ,
> + NPCM8XX_PMU1_IRQ,
> + NPCM8XX_PMU2_IRQ,
> + NPCM8XX_PMU3_IRQ,
> + NPCM8XX_CTI0_IRQ,
> + NPCM8XX_CTI1_IRQ,
> + NPCM8XX_CTI2_IRQ,
> + NPCM8XX_CTI3_IRQ,
> };
>
> /* Total number of GIC interrupts, including internal Cortex-A35 interrupts. */
next prev parent reply other threads:[~2025-09-25 1:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-25 0:58 [PATCH v1 0/5] Add Aspeed GPIO test and Support Nuvoton Serial GPIO Expansion (SGPIO) device Coco Li
2025-09-25 0:58 ` [PATCH v1 1/5] hw/gpio: Add property for ASPEED GPIO in 32 bits basis Coco Li
2025-10-01 23:24 ` Andrew Jeffery
2025-10-03 17:44 ` Coco Li
2025-10-13 0:28 ` Andrew Jeffery
2025-09-25 0:58 ` [PATCH v1 2/5] tests/qtest: Add qtest for for ASPEED GPIO gpio-set property Coco Li
2025-09-25 0:58 ` [PATCH v1 3/5] hw/arm/npcm8xx.c: Add all IRQ ENUMs Coco Li
2025-09-25 1:08 ` Philippe Mathieu-Daudé [this message]
2025-09-26 21:48 ` Coco Li
2025-09-29 9:46 ` Philippe Mathieu-Daudé
2025-09-25 0:58 ` [PATCH v1 4/5] hw/gpio/npcm8xx: Implement SIOX (SPGIO) device for NPCM without input pin logic Coco Li
2025-09-25 0:58 ` [PATCH v1 5/5] hw/gpio/npcm8xx: Implement npcm sgpio device " Coco Li
2025-09-25 1:10 ` Philippe Mathieu-Daudé
2025-09-26 21:49 ` Coco Li
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=1a755fbf-e6d6-4f80-b35d-29fcb3f587d3@linaro.org \
--to=philmd@linaro.org \
--cc=andrew@codeconstruct.com.au \
--cc=clg@kaod.org \
--cc=flwu@google.com \
--cc=lixiaoyan@google.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).