fsl/usb: Add support for USB controller version 2.4
authorRamneek Mehresh <ramneek.mehresh@freescale.com>
Wed, 19 Sep 2012 08:48:45 +0000 (14:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:43:55 +0000 (09:43 -0700)
Add support for USB controller version 2.4

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fsl-mph-dr-of.c
include/linux/fsl_devices.h

index 22ff6b3a676f40f705d5530b0fc526a4ccae70a2..1e771292383f26ecb182462c4e9672c40306f6e0 100644 (file)
@@ -133,6 +133,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-dr-v2.2"))
                        ver = FSL_USB_VER_2_2;
+               else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.4"))
+                       ver = FSL_USB_VER_2_4;
                else /* for previous controller versions */
                        ver = FSL_USB_VER_OLD;
 
index ccfc4bb3dc4899272ced9dd40e33f5e410274704..38b5660813ff25f219f1922071a73f21b5738289 100644 (file)
@@ -23,6 +23,7 @@
 #define FSL_USB_VER_OLD                0
 #define FSL_USB_VER_1_6                1
 #define FSL_USB_VER_2_2                2
+#define FSL_USB_VER_2_4                3
 
 #include <linux/types.h>