usb: ehci-mx6: Set default CONFIG_MXC_USB_PORTSC if not defined
authorMarek Vasut <marex@denx.de>
Sat, 10 Apr 2021 14:03:04 +0000 (16:03 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 18 Apr 2021 02:29:36 +0000 (04:29 +0200)
commit1aae8a35a202d4400adbb7780e1b384aa7aada37
tree748ffe07b3d1572a77a0c39889fc934a55d85e8d
parent50d0146cb70abc76ac3c363cd0e30b8ea4e91d1d
usb: ehci-mx6: Set default CONFIG_MXC_USB_PORTSC if not defined

There is now multiple copies of CONFIG_MXC_USB_PORTSC in configs set to
PORT_PTS_UTMI | PORT_PTS_PTW, which is in fact the default register value
for MX6, MX7 and MX7ULP. Define the default value of CONFIG_MXC_USB_PORTSC
in the driver and use it in case CONFIG_MXC_USB_PORTSC is not defined in
config, to reduce the duplication.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Ye Li <ye.li@nxp.com>
Cc: uboot-imx <uboot-imx@nxp.com>
drivers/usb/host/ehci-mx6.c