对于AM335x来讲,TI维护的USB驱动已经非常完善了,本文称之为移植,实际上仅仅是配置内核选项使能USB HOST/OTG功能。废话少说,直接动手开启AM335x的USB驱动配置项。 Step1. 配置内核支持USB 默认的配置项没有配置USB相关的选项,但是DTS已经配置好了,我们不需要对DTS作任何修改,详细的内核配置项如下: Device Drivers --->
[*] USB support --->
[*] OTG support
<*> EHCI HCD (USB 2.0) support
[*] Improved Transaction Translator scheduling (NEW)
<*> EHCI support for OMAP3 and later chips (NEW)
<*> OHCI HCD (USB 1.1) support
<*> OHCI support for OMAP3 and later chips (NEW)
<*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)
MUSB Mode Selection (Dual Role mode) --->
<*> Platform Glue Layer (TI DSPS platforms) --->
MUSB DMA mode (Disable DMA (always use PIO)) --->
Step2. 编译内核
编译内核的指令如下: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j8
|