Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F105709013
D12255.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D12255.diff
View Options
Index: head/sys/conf/files.arm64
===================================================================
--- head/sys/conf/files.arm64
+++ head/sys/conf/files.arm64
@@ -176,6 +176,7 @@
dev/uart/uart_cpu_arm64.c optional uart
dev/uart/uart_dev_pl011.c optional uart pl011
dev/usb/controller/dwc_otg_hisi.c optional dwcotg fdt soc_hisi_hi6220
+dev/usb/controller/ehci_mv.c optional ehci_mv fdt
dev/usb/controller/generic_ehci.c optional ehci acpi
dev/usb/controller/generic_ohci.c optional ohci fdt
dev/usb/controller/generic_usb_if.m optional ohci fdt
Index: head/sys/dev/usb/controller/ehci_mv.c
===================================================================
--- head/sys/dev/usb/controller/ehci_mv.c
+++ head/sys/dev/usb/controller/ehci_mv.c
@@ -73,7 +73,9 @@
#include <dev/usb/controller/ehci.h>
#include <dev/usb/controller/ehcireg.h>
+#if !defined(__aarch64__)
#include <arm/mv/mvreg.h>
+#endif
#include <arm/mv/mvvar.h>
#define EHCI_VENDORID_MRVL 0x1286
@@ -100,9 +102,10 @@
#define MV_USB_DEVICE_UNDERFLOW (1 << 3)
static struct ofw_compat_data compat_data[] = {
- {"mrvl,usb-ehci", true},
- {"marvell,orion-ehci", true},
- {NULL, false}
+ {"mrvl,usb-ehci", true},
+ {"marvell,orion-ehci", true},
+ {"marvell,armada-3700-ehci", true},
+ {NULL, false}
};
static void
@@ -174,7 +177,8 @@
device_get_name(self));
rid = 0;
- if (!ofw_bus_is_compatible(self, "marvell,orion-ehci")) {
+ if (!(ofw_bus_is_compatible(self, "marvell,orion-ehci") ||
+ ofw_bus_is_compatible(self, "marvell,armada-3700-ehci"))) {
irq_err = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
RF_SHAREABLE | RF_ACTIVE);
if (irq_err == NULL) {
@@ -207,7 +211,8 @@
sprintf(sc->sc_vendor, "Marvell");
- if (!ofw_bus_is_compatible(self, "marvell,orion-ehci")) {
+ if (!(ofw_bus_is_compatible(self, "marvell,orion-ehci") ||
+ ofw_bus_is_compatible(self, "marvell,armada-3700-ehci"))) {
err = bus_setup_intr(self, irq_err, INTR_TYPE_BIO,
err_intr, NULL, sc, &ih_err);
if (err) {
@@ -365,5 +370,5 @@
static devclass_t ehci_devclass;
-DRIVER_MODULE(ehci, simplebus, ehci_driver, ehci_devclass, 0, 0);
-MODULE_DEPEND(ehci, usb, 1, 1, 1);
+DRIVER_MODULE(ehci_mv, simplebus, ehci_driver, ehci_devclass, 0, 0);
+MODULE_DEPEND(ehci_mv, usb, 1, 1, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:50 PM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15530386
Default Alt Text
D12255.diff (2 KB)
Attached To
Mode
D12255: Add support for Armada 3700 EHCI
Attached
Detach File
Event Timeline
Log In to Comment