From: Fabio Estevam Date: Wed, 28 Aug 2024 13:25:27 +0000 (-0300) Subject: usb: ehci-mx5: Add a default for CFG_MXC_USB_PORTSC X-Git-Url: http://git.dujemihanovic.xyz/html/static/gitweb.css?a=commitdiff_plain;h=c17739f94f623fdf7213eaf9e5ccc581b0aed711;p=u-boot.git usb: ehci-mx5: Add a default for CFG_MXC_USB_PORTSC Just like drivers/usb/host/ehci-mx6.c, add a default for drivers/usb/host/ehci-mx5.c. The motivation for doing this is to remove CFG_MXC_USB_PORTSC from board config files. All the mx5 boards, with the exeption of mx51evk, define CFG_MXC_USB_PORTSC as: #define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) So move this definition as a default into ehci-mx5.c. Signed-off-by: Fabio Estevam Reviewed-by: Peng Fan Reviewed-by: Marek Vasut --- diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c index 44912de778..d8f521befe 100644 --- a/drivers/usb/host/ehci-mx5.c +++ b/drivers/usb/host/ehci-mx5.c @@ -79,6 +79,10 @@ /* USB_CTRL_1 */ #define MXC_USB_CTRL_UH1_EXT_CLK_EN (1 << 25) +#ifndef CFG_MXC_USB_PORTSC +#define CFG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) +#endif + int mxc_set_usbcontrol(int port, unsigned int flags) { unsigned int v;