This patch reuses ehci_mv driver by adding a support for the new
compatible string and adding ehci_mv.c to list of available options
for arm64 platforms.
Details
Details
- Reviewers
andrew zbb • ian - Commits
- rS323357: Add support for Armada 3700 EHCI
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
head/sys/dev/usb/controller/ehci_mv.c | ||
---|---|---|
180–181 | Actually this code should be executed only for legacy devices using "mrvl,usb-ehci" compatible string, so ofw_bus_search_compatible is imo not sufficient. Would you like to invert the condition to: if ((ofw_bus_is_compatible(self, "mrvl,usb-ehci")) { or can we leave it as-is now? |
head/sys/dev/usb/controller/ehci_mv.c | ||
---|---|---|
180–181 | The ocd_data field returned by ofw_bus_is_compatible() doesn't have to be just true/false. When you've got hardware that has a few small variations, you can use an enum with each compat string (see dev/sdhci/fsl_sdhci.c for an example). You could also do something like a set of bitmapped flags where different flag bits indicate different quirks. |