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 <yichang.wang@nxp.com>
This commit is contained in:
Mark Wang 2024-08-15 16:06:54 +08:00 committed by Anas Nashif
parent fe82353b82
commit f82b4ff6b2

View file

@ -101,6 +101,12 @@ BUILD_ASSERT(NUM_INSTS <= 1, "Only one USB device supported");
#if ((defined(USB_DEVICE_CONFIG_EHCI)) && (USB_DEVICE_CONFIG_EHCI > 0U)) #if ((defined(USB_DEVICE_CONFIG_EHCI)) && (USB_DEVICE_CONFIG_EHCI > 0U))
/*! @brief How many the DTD are supported. */ /*! @brief How many the DTD are supported. */
#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U) #define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)
#ifndef CONFIG_UDC_BUF_FORCE_NOCACHE
#ifdef CONFIG_NOCACHE_MEMORY
#define USB_DEVICE_CONFIG_BUFFER_PROPERTY_CACHEABLE (1U)
#endif
#endif
#endif #endif
/* TODO: After Kconfig item that enable/disable sof is added, /* TODO: After Kconfig item that enable/disable sof is added,