File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
components/drivers/usb/cherryusb/port/dwc2 Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1313#if defined (COMPONENT_CM55 )
1414
1515#if !defined(CONFIG_USB_DCACHE_ENABLE )
16- #error "Please enable CONFIG_USB_DCACHE_ENABLE and put USB_NOCACHE_RAM_SECTION to section ".cy_socmem_data" when using DMA "
16+ #error "Please enable CONFIG_USB_DCACHE_ENABLE and put USB_NOCACHE_RAM_SECTION to section ".cy_socmem_data" for CM55 "
1717#endif
18+
1819#else
1920#define CONFIG_USB_DWC2_DMA_ENABLE
2021#endif
Original file line number Diff line number Diff line change @@ -717,10 +717,10 @@ int usb_hc_init(struct usbh_bus *bus)
717717
718718 USB_ASSERT_MSG ((USB_OTG_GLB -> GRXFSIZ & 0xffff ) >= g_dwc2_hcd [bus -> hcd .hcd_id ].user_params .host_rx_fifo_size ,
719719 "host_rx_fifo_size cannot be larger than power_on_value %u" , (unsigned int )(USB_OTG_GLB -> GRXFSIZ & 0xffff ));
720- USB_ASSERT_MSG ((USB_OTG_GLB -> DIEPTXF0_HNPTXFSIZ & 0xffff ) >= g_dwc2_hcd [bus -> hcd .hcd_id ].user_params .host_nperio_tx_fifo_size ,
721- "host_nperio_tx_fifo_size cannot be larger than power_on_value %u" , (unsigned int )(USB_OTG_GLB -> DIEPTXF0_HNPTXFSIZ & 0xffff ));
722- USB_ASSERT_MSG ((USB_OTG_GLB -> HPTXFSIZ & 0xffff ) >= g_dwc2_hcd [bus -> hcd .hcd_id ].user_params .host_perio_tx_fifo_size ,
723- "host_perio_tx_fifo_size cannot be larger than power_on_value %u" , (unsigned int )(USB_OTG_GLB -> HPTXFSIZ & 0xffff ));
720+ USB_ASSERT_MSG ((( USB_OTG_GLB -> DIEPTXF0_HNPTXFSIZ >> 16 ) & 0xffff ) >= g_dwc2_hcd [bus -> hcd .hcd_id ].user_params .host_nperio_tx_fifo_size ,
721+ "host_nperio_tx_fifo_size cannot be larger than power_on_value %u" , (unsigned int )(( USB_OTG_GLB -> DIEPTXF0_HNPTXFSIZ >> 16 ) & 0xffff ));
722+ USB_ASSERT_MSG ((( USB_OTG_GLB -> HPTXFSIZ >> 16 ) & 0xffff ) >= g_dwc2_hcd [bus -> hcd .hcd_id ].user_params .host_perio_tx_fifo_size ,
723+ "host_perio_tx_fifo_size cannot be larger than power_on_value %u" , (unsigned int )(( USB_OTG_GLB -> HPTXFSIZ >> 16 ) & 0xffff ));
724724
725725 /* B-peripheral session valid override enable */
726726 USB_OTG_GLB -> GOTGCTL &= ~USB_OTG_GOTGCTL_BVALOEN ;
You can’t perform that action at this time.
0 commit comments