From: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
To: "Jamin Lin" <jamin_lin@aspeedtech.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Cédric Le Goater" <clg@kaod.org>,
"Steven Lee" <steven_lee@aspeedtech.com>,
"Troy Lee" <leetroy@gmail.com>,
"Kane Chen" <kane_chen@aspeedtech.com>,
"Andrew Jeffery" <andrew@codeconstruct.com.au>,
"Joel Stanley" <joel@jms.id.au>,
"open list:ARM TCG CPUs" <qemu-arm@nongnu.org>,
"open list:All patches CC here" <qemu-devel@nongnu.org>
Cc: Troy Lee <troy_lee@aspeedtech.com>
Subject: Re: [PATCH v3 1/4] hw/usb/aspeed-udc: Add ASPEED UDC device controller
Date: Mon, 31 Aug 2026 12:03:41 +0200 [thread overview]
Message-ID: <ff5c148e-d187-4d97-aeb4-6ab5448f79e6@oss.qualcomm.com> (raw)
In-Reply-To: <20260831092125.1022201-2-jamin_lin@aspeedtech.com>
On 31/8/26 11:21, Jamin Lin wrote:
> The AST2600 has a USB 2.0 Device Controller (UDC) at 0x1e6a2000 with one
> control endpoint and four programmable endpoints.
>
> Add the controller as a sysbus (system) device: the MMIO register map
> described with the registerfields macros, the interrupt line and the
> soft reset. This is only the register/system side.
>
> Note: this "device controller" is the system-bus device (TYPE_ASPEED_UDC).
> It is not the gadget USB device (TYPE_ASPEED_UDC_GADGET) that a host
> controller enumerates, which is added in the next patch.
>
> Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
> ---
> include/hw/usb/aspeed-udc.h | 49 ++++++++
> hw/usb/aspeed-udc.c | 236 ++++++++++++++++++++++++++++++++++++
> hw/arm/Kconfig | 1 +
> hw/usb/Kconfig | 4 +
> hw/usb/meson.build | 1 +
> hw/usb/trace-events | 7 ++
> 6 files changed, 298 insertions(+)
> create mode 100644 include/hw/usb/aspeed-udc.h
> create mode 100644 hw/usb/aspeed-udc.c
> diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
> index de95686720..e8c00f813a 100644
> --- a/hw/usb/Kconfig
> +++ b/hw/usb/Kconfig
> @@ -146,3 +146,7 @@ config XLNX_USB_SUBSYS
> config USB_CHIPIDEA
> bool
> select USB_EHCI_SYSBUS
> +
> +config ASPEED_UDC
> + bool
> + select USB
Nothing depends on USB so far, so "select USB" would be
better added in the following patch. Otherwise QOM/QDev:
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
next prev parent reply other threads:[~2026-08-31 10:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 9:21 [PATCH v3 0/4] hw/usb: Add ASPEED USB Device Controller (UDC) Jamin Lin
2026-08-31 9:21 ` [PATCH v3 1/4] hw/usb/aspeed-udc: Add ASPEED UDC device controller Jamin Lin
2026-08-31 10:03 ` Philippe Mathieu-Daudé [this message]
2026-09-01 2:02 ` Jamin Lin
2026-08-31 9:21 ` [PATCH v3 2/4] hw/usb/aspeed-udc: Add ASPEED UDC gadget USB device Jamin Lin
2026-08-31 10:04 ` Philippe Mathieu-Daudé
2026-08-31 9:21 ` [PATCH v3 3/4] hw/usb/aspeed-udc: Add programmable endpoint DMA transfers Jamin Lin
2026-08-31 9:21 ` [PATCH v3 4/4] hw/arm/aspeed_ast2600: Wire up the UDC Jamin Lin
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=ff5c148e-d187-4d97-aeb4-6ab5448f79e6@oss.qualcomm.com \
--to=philmd@oss.qualcomm.com \
--cc=andrew@codeconstruct.com.au \
--cc=clg@kaod.org \
--cc=jamin_lin@aspeedtech.com \
--cc=joel@jms.id.au \
--cc=kane_chen@aspeedtech.com \
--cc=leetroy@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=steven_lee@aspeedtech.com \
--cc=troy_lee@aspeedtech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.