drivers:usb:fsl: Add support for USB controller version-2.5

Add support for USB controller version-2.5 used in
T4240 rev2.0, T1024, T1040, T2080, LS1021A

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Nikhil Badola 2015-05-26 17:15:29 +05:30 committed by Greg Kroah-Hartman
parent d7c444e546
commit 138c3f03b0
2 changed files with 6 additions and 0 deletions

View File

@ -127,6 +127,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 3 for usb controller version 2.4
* returns 4 for usb controller version 2.5
* returns 0 otherwise * returns 0 otherwise
*/ */
if (of_device_is_compatible(np, "fsl-usb2-dr")) { if (of_device_is_compatible(np, "fsl-usb2-dr")) {
@ -136,6 +137,8 @@ static int usb_get_ver_info(struct device_node *np)
ver = FSL_USB_VER_2_2; ver = FSL_USB_VER_2_2;
else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.4")) else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.4"))
ver = FSL_USB_VER_2_4; ver = FSL_USB_VER_2_4;
else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.5"))
ver = FSL_USB_VER_2_5;
else /* for previous controller versions */ else /* for previous controller versions */
ver = FSL_USB_VER_OLD; ver = FSL_USB_VER_OLD;
@ -153,6 +156,8 @@ static int usb_get_ver_info(struct device_node *np)
ver = FSL_USB_VER_2_2; ver = FSL_USB_VER_2_2;
else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.4")) else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.4"))
ver = FSL_USB_VER_2_4; ver = FSL_USB_VER_2_4;
else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.5"))
ver = FSL_USB_VER_2_5;
else /* for previous controller versions */ else /* for previous controller versions */
ver = FSL_USB_VER_OLD; ver = FSL_USB_VER_OLD;
} }

View File

@ -24,6 +24,7 @@
#define FSL_USB_VER_1_6 1 #define FSL_USB_VER_1_6 1
#define FSL_USB_VER_2_2 2 #define FSL_USB_VER_2_2 2
#define FSL_USB_VER_2_4 3 #define FSL_USB_VER_2_4 3
#define FSL_USB_VER_2_5 4
#include <linux/types.h> #include <linux/types.h>