Commit d7c444e5 authored by Nikhil Badola's avatar Nikhil Badola Committed by Greg Kroah-Hartman

drivers:usb:fsl: Check IP version 2.4 for mph USB controller

Check IP version 2.4 for multi port host USB controller and
return FSL_USB_VER_2_4 macro
Signed-off-by: default avatarNikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb6d1f7d
...@@ -126,6 +126,7 @@ static int usb_get_ver_info(struct device_node *np) ...@@ -126,6 +126,7 @@ static int usb_get_ver_info(struct device_node *np)
/* /*
* returns 1 for usb controller version 1.6 * returns 1 for usb controller version 1.6
* returns 2 for usb controller version 2.2 * returns 2 for usb controller version 2.2
* returns 3 for usb controller version 2.4
* returns 0 otherwise * returns 0 otherwise
*/ */
if (of_device_is_compatible(np, "fsl-usb2-dr")) { if (of_device_is_compatible(np, "fsl-usb2-dr")) {
...@@ -150,6 +151,8 @@ static int usb_get_ver_info(struct device_node *np) ...@@ -150,6 +151,8 @@ static int usb_get_ver_info(struct device_node *np)
ver = FSL_USB_VER_1_6; ver = FSL_USB_VER_1_6;
else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.2")) else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.2"))
ver = FSL_USB_VER_2_2; ver = FSL_USB_VER_2_2;
else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.4"))
ver = FSL_USB_VER_2_4;
else /* for previous controller versions */ else /* for previous controller versions */
ver = FSL_USB_VER_OLD; ver = FSL_USB_VER_OLD;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment