From: "Sascha Hauer" <s.hauer@pengutronix.de>
To: "Luca Lauro via B4 Relay" <devnull+famlauro93l.gmail.com@kernel.org>
Cc: "open list:BAREBOX" <barebox@lists.infradead.org>,
"Luca Lauro" <famlauro93l@gmail.com>
Subject: Re: [PATCH 16/19] usb: ehci: add Marvell EHCI host controller driver
Date: Mon, 27 Jul 2026 14:09:13 +0000 [thread overview]
Message-ID: <E1woM15-00000007Iv4-1a92@pty.whiteo.stw.pengutronix.de> (raw)
In-Reply-To: <20260723-rn102-rn104-series-v1-16-7698d25df866@gmail.com>
On 2026-07-23 15:57, Luca Lauro via B4 Relay wrote:
> From: Luca Lauro <famlauro93l@gmail.com>
>
> ---
> drivers/usb/host/Kconfig | 7 ++
> drivers/usb/host/Makefile | 13 +--
> drivers/usb/host/ehci-marvell.c | 229 ++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 243 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
> index 58f276cdb4..21bf876d69 100644
> --- a/drivers/usb/host/Kconfig
> +++ b/drivers/usb/host/Kconfig
> @@ -22,6 +22,13 @@ config USB_EHCI_ZYNQ
> help
> Enable support for Zynq on-chip EHCI USB controller
>
> +config USB_EHCI_MARVELL
> + bool "Marvell USB EHCI driver"
> + depends on ARCH_MVEBU
> + depends on USB_EHCI
> + help
> + Enable support for Marvell USB EHCI controller
> +
> config USB_OHCI
> bool "OHCI driver"
> depends on !MMU && HAS_DMA
> diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
> index cbddfbe923..932581d691 100644
> --- a/drivers/usb/host/Makefile
> +++ b/drivers/usb/host/Makefile
> @@ -1,8 +1,9 @@
> # SPDX-License-Identifier: GPL-2.0-only
> -obj-$(CONFIG_USB_EHCI) += ehci-hcd.o
> -obj-$(CONFIG_USB_EHCI_OMAP) += ehci-omap.o
> +obj-$(CONFIG_USB_EHCI) += ehci-hcd.o
> +obj-$(CONFIG_USB_EHCI_OMAP) += ehci-omap.o
> obj-$(CONFIG_USB_EHCI_ATMEL) += ehci-atmel.o
> -obj-$(CONFIG_USB_EHCI_ZYNQ) += ehci-zynq.o
> -obj-$(CONFIG_USB_OHCI) += ohci-hcd.o
> -obj-$(CONFIG_USB_OHCI_AT91) += ohci-at91.o
> -obj-$(CONFIG_USB_XHCI) += xhci.o xhci-mem.o xhci-ring.o
> +obj-$(CONFIG_USB_EHCI_ZYNQ) += ehci-zynq.o
> +obj-$(CONFIG_USB_EHCI_MARVELL) += ehci-marvell.o
> +obj-$(CONFIG_USB_OHCI) += ohci-hcd.o
> +obj-$(CONFIG_USB_OHCI_AT91) += ohci-at91.o
> +obj-$(CONFIG_USB_XHCI) += xhci.o xhci-mem.o xhci-ring.o
> diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c
> new file mode 100644
> index 0000000000..8accfd697d
> --- /dev/null
> +++ b/drivers/usb/host/ehci-marvell.c
> @@ -0,0 +1,229 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +/*
> + * Marvell Orion / Kirkwood / Armada EHCI host for barebox
> + *
> + * Porting basato su ehci-marvell.c di U-Boot moderno,
> + * adattato al modello ehci_register() di barebox.
> + */
Per favore usa l'inglese nel codice ;)
> +static int marvell_ehci_probe(struct device *dev)
> +{
> + struct marvell_ehci *priv;
> + struct resource *iores;
> + struct ehci_data data;
> + void __iomem *base;
> + struct ehci_host *ehci;
> +
> + priv = xzalloc(sizeof(*priv));
> + priv->dev = dev;
> + dev->priv = priv;
> +
> + iores = dev_request_mem_resource(dev, 0);
> + if (IS_ERR(iores))
> + return PTR_ERR(iores);
> +
> + base = IOMEM(iores->start);
> + priv->base = base;
> +
> + memset(&data, 0, sizeof(data));
Easier done with
struct ehci_data data = {};
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2026-07-27 14:10 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 13:57 [PATCH 00/19] ARM: mvebu: add Netgear RN102/RN104 support and related drivers Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 01/19] ARM: mvebu: add board support for Netgear RN102 Luca Lauro via B4 Relay
2026-07-27 13:27 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 02/19] ARM: mvebu: add lowlevel " Luca Lauro via B4 Relay
2026-07-27 13:30 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 03/19] ARM: dts: add barebox device tree " Luca Lauro via B4 Relay
2026-07-27 13:32 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 04/19] ARM: dts: update RN102 Linux DTS Luca Lauro via B4 Relay
2026-07-27 13:40 ` Sascha Hauer
2026-07-27 13:41 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 05/19] ARM: mvebu: add Kconfig entry for Netgear RN102 Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 06/19] ARM: mvebu: add RN102 image support Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 07/19] ARM: mvebu: enable RN102 in mvebu_defconfig Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 08/19] ARM: mvebu: rn104: placeholder bay management Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 09/19] ARM: mvebu: add lowlevel support for Netgear RN104 Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 10/19] ARM: dts: update RN104 Linux DTS Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 11/19] ARM: mvebu: adapt RN104 image support Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 12/19] ARM: mvebu: rename PUTC_LL to MVEBU_PUTC_LL Luca Lauro via B4 Relay
2026-07-27 13:46 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 13/19] drivers: fan: add fan framework and API Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 14/19] commands: add fan control command Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 15/19] commands: integrate fan command into Kconfig and Makefile Luca Lauro via B4 Relay
2026-07-23 13:57 ` [PATCH 16/19] usb: ehci: add Marvell EHCI host controller driver Luca Lauro via B4 Relay
2026-07-27 14:09 ` Sascha Hauer [this message]
2026-07-23 13:57 ` [PATCH 17/19] usb: ehci: minor fixes for Marvell compatibility Luca Lauro via B4 Relay
2026-07-27 14:12 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 18/19] ata: ahci: fixes and updates for Marvell SATA controller Luca Lauro via B4 Relay
2026-07-27 14:15 ` Sascha Hauer
2026-07-23 13:57 ` [PATCH 19/19] drivers: integrate USB/AHCI changes Luca Lauro via B4 Relay
2026-07-27 14:16 ` Sascha Hauer
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=E1woM15-00000007Iv4-1a92@pty.whiteo.stw.pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=devnull+famlauro93l.gmail.com@kernel.org \
--cc=famlauro93l@gmail.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