diff options
| author | bouyer <bouyer@NetBSD.org> | 2023-05-04 17:09:44 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2023-05-04 17:09:44 +0000 |
| commit | 976dee0a9f9389591a5ca3d6669da55c93085252 (patch) | |
| tree | 5138122170a3f8ff45434cc8d0ad02e82987b8d1 /sbin | |
| parent | 994eb48754cb5cfb6e8deedbf63ab1d8cec26173 (diff) | |
The i.mx6sx has 2 OTG and one host-only USB controller, while the 6q has
only one OTG.
Add a "uintptr_t data" argument to all sc_*_md_hook callbacks, which
gets the sc_md_hook_data value when called.
In imx6_usb.c use this to pass the number of OTG controllers to the callbacks.
imx6_usb_init() can then properly call init_otg() or init_h1() for unit 1.
In imx6_usb_attach(), test if there is a vbus-supply property in the fdt,
and enable the regulator if present.
Now the USB port of the UDOO Neo works.
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
