]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ehci-mx5: Add a default for CFG_MXC_USB_PORTSC
authorFabio Estevam <festevam@denx.de>
Wed, 28 Aug 2024 13:25:27 +0000 (10:25 -0300)
committerFabio Estevam <festevam@gmail.com>
Sat, 31 Aug 2024 01:46:52 +0000 (22:46 -0300)
commitc17739f94f623fdf7213eaf9e5ccc581b0aed711
tree9fb8da4eb357dfc6f9b97203e028594cbfe781a0
parent14e6fcf46208e359af7a28ff8b791282e2fb10fe
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 <festevam@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/usb/host/ehci-mx5.c