Changes between Version 7 and Version 8 of linux/OTG
- Timestamp:
- 03/29/2021 11:26:32 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/OTG
v7 v8 397 397 }}} 398 398 399 This can be done in the bootloader, here's an example for GW54xx: 400 401 {{{ 402 setenv fixfdt 'fdt addr ${fdt_addr}; fdt resize; fdt set /soc/aips-bus@2100000/usb@2184000 dr_mode host' # host mode 403 setenv fixfdt 'fdt addr ${fdt_addr}; fdt resize; fdt set /soc/aips-bus@2100000/usb@2184000 dr_mode gadget' # gadget mode 404 saveenv #once you have made your selection 405 }}} 406 399 407 Additionally some host controllers such as the Chips and Media controller used on the IMX6 have hooks that allow them to be configured at runtime in Linux Userspace. For example on IMX6 boards: 400 408 {{{#!bash