drivers:usb:fsl: Check IP version 2.4 for mph USB controller
authorNikhil Badola <nikhil.badola@freescale.com>
Tue, 26 May 2015 11:44:42 +0000 (17:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 06:51:24 +0000 (15:51 +0900)
Check IP version 2.4 for multi port host USB controller and
return FSL_USB_VER_2_4 macro

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fsl-mph-dr-of.c

index 7e325e90d7d9c6e176b0b2424b223e0ed1a0254e..e588ccd468fc04a5e88833450d40d64c0a8a7177 100644 (file)
@@ -126,6 +126,7 @@ static int usb_get_ver_info(struct device_node *np)
        /*
         * returns 1 for usb controller version 1.6
         * returns 2 for usb controller version 2.2
+        * returns 3 for usb controller version 2.4
         * returns 0 otherwise
         */
        if (of_device_is_compatible(np, "fsl-usb2-dr")) {
@@ -150,6 +151,8 @@ static int usb_get_ver_info(struct device_node *np)
                        ver = FSL_USB_VER_1_6;
                else if (of_device_is_compatible(np, "fsl-usb2-mph-v2.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 */
                        ver = FSL_USB_VER_OLD;
        }