Skip to content

Commit f82b4ff

Browse files
MarkWangChinesenashif
authored andcommitted
drivers: udc: mcux: ehci: enable the cache maintenance
MCUX ehci controller driver support cache maintenance if USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE is enabled. Enable USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE if CONFIG_UDC_BUF_FORCE_NOCACHE is false and CONFIG_NOCACHE_MEMORY is true. Signed-off-by: Mark Wang <[email protected]>
1 parent fe82353 commit f82b4ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/hal_nxp/usb/usb_device_config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ BUILD_ASSERT(NUM_INSTS <= 1, "Only one USB device supported");
101101
#if ((defined(USB_DEVICE_CONFIG_EHCI)) && (USB_DEVICE_CONFIG_EHCI > 0U))
102102
/*! @brief How many the DTD are supported. */
103103
#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)
104+
105+
#ifndef CONFIG_UDC_BUF_FORCE_NOCACHE
106+
#ifdef CONFIG_NOCACHE_MEMORY
107+
#define USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE (1U)
108+
#endif
109+
#endif
104110
#endif
105111

106112
/* TODO: After Kconfig item that enable/disable sof is added,

0 commit comments

Comments
 (0)