X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fusb%2Fusb.c;fp=carlfw%2Fusb%2Fusb.c;h=48b34183caafe949bd9e0b47b5953cb936b39a4a;hb=0f370216f7d50a6c8ffebfb1ba49b196e869d0ec;hp=3a8f27e8ace66ebde1d9e479c8d0959e7703e6e9;hpb=a062c2ed9af0b5c9a9f64424ce929cbb6e46dbe2;p=carl9170fw.git diff --git a/carlfw/usb/usb.c b/carlfw/usb/usb.c index 3a8f27e..48b3418 100644 --- a/carlfw/usb/usb.c +++ b/carlfw/usb/usb.c @@ -231,10 +231,6 @@ static void usb_pta_init(void) orl(AR9170_USB_REG_DMA_CTL, AR9170_DMA_CTL_DOWN_STREAM); #endif /* CONFIG_CARL9170FW_USB_DOWN_STREAM */ - /* Enable up stream and down stream */ - orl(AR9170_USB_REG_DMA_CTL, AR9170_DMA_CTL_ENABLE_TO_DEVICE | - AR9170_DMA_CTL_ENABLE_FROM_DEVICE); - #ifdef CONFIG_CARL9170FW_USB_UP_STREAM /* Set the up stream mode maximum aggregate number */ set(AR9170_USB_REG_MAX_AGG_UPLOAD, 4); @@ -246,6 +242,9 @@ static void usb_pta_init(void) set(AR9170_USB_REG_UPLOAD_TIME_CTL, 0x80); #endif /* CONFIG_CARL9170FW_USB_UP_STREAM */ + /* Enable up stream and down stream */ + orl(AR9170_USB_REG_DMA_CTL, AR9170_DMA_CTL_ENABLE_TO_DEVICE | + AR9170_DMA_CTL_ENABLE_FROM_DEVICE); } #endif /* CONFIG_CARL9170FW_USB_INIT_FIRMWARE */