Page MenuHomeFreeBSD

[BHND/USB] Port of EHCI/OHCI support from ZRouter
ClosedPublic

Authored by mizhka on Sep 4 2016, 4:36 PM.

Details

Summary

Hi,

This patch adds EHCI/OHCI support for BroadCom SoCs. Patch is port from ZRouter project (@ray).

Test Plan

Tested on Asus RT-N16 (external USB) and RT-N53 (internal USB)

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mizhka updated this revision to Diff 20040.Sep 4 2016, 4:36 PM
mizhka retitled this revision from to [BHND/USB] Port of EHCI/OHCI support from ZRouter.
mizhka updated this object.
mizhka edited the test plan for this revision. (Show Details)
mizhka added reviewers: landonf, ray, adrian.
mizhka set the repository for this revision to rS FreeBSD src repository.
mizhka added a subscriber: ray.
adrian accepted this revision.Sep 4 2016, 6:16 PM
adrian edited edge metadata.

Just make sure the cache line size is 32 bytes (to match USB_HOST_ALIGN), and then yes, commit away. :)

This revision is now accepted and ready to land.Sep 4 2016, 6:16 PM
ray accepted this revision.Sep 4 2016, 9:21 PM
ray edited edge metadata.
ray added inline comments.
sys/dev/bhnd/cores/usb/bhnd_usb.c
243–266 ↗(On Diff #20040)

Please remove that :-D
or @ifdef for BCM5354, or add chipid check :)

sys/mips/broadcom/files.broadcom
24 ↗(On Diff #20040)

optional usb

25 ↗(On Diff #20040)

optional ehci

26 ↗(On Diff #20040)

optional ohci

This revision was automatically updated to reflect the committed changes.