diff options
author | Nikhil Badola <nikhil.badola@freescale.com> | 2015-06-15 06:16:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-22 19:37:32 -0400 |
commit | 38aa420096e565fe9c98f9d9475fd168114501a9 (patch) | |
tree | 80c97580deddf84c76e70980c6f7d8b1c4c31e2b /include/linux/fsl_devices.h | |
parent | 5fd3fc1c5384fe420ead51f41662ba563336fbea (diff) |
drivers:usb:fsl: Replace macros with enumerated type
Replace macros with enumerated type to represent usb ip
controller version
Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fsl_devices.h')
-rw-r--r-- | include/linux/fsl_devices.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 2a2f56b292c1..0d4855cd5330 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h | |||
@@ -20,11 +20,6 @@ | |||
20 | #define FSL_UTMI_PHY_DLY 10 /*As per P1010RM, delay for UTMI | 20 | #define FSL_UTMI_PHY_DLY 10 /*As per P1010RM, delay for UTMI |
21 | PHY CLK to become stable - 10ms*/ | 21 | PHY CLK to become stable - 10ms*/ |
22 | #define FSL_USB_PHY_CLK_TIMEOUT 10000 /* uSec */ | 22 | #define FSL_USB_PHY_CLK_TIMEOUT 10000 /* uSec */ |
23 | #define FSL_USB_VER_OLD 0 | ||
24 | #define FSL_USB_VER_1_6 1 | ||
25 | #define FSL_USB_VER_2_2 2 | ||
26 | #define FSL_USB_VER_2_4 3 | ||
27 | #define FSL_USB_VER_2_5 4 | ||
28 | 23 | ||
29 | #include <linux/types.h> | 24 | #include <linux/types.h> |
30 | 25 | ||
@@ -52,6 +47,15 @@ | |||
52 | * | 47 | * |
53 | */ | 48 | */ |
54 | 49 | ||
50 | enum fsl_usb2_controller_ver { | ||
51 | FSL_USB_VER_NONE = -1, | ||
52 | FSL_USB_VER_OLD = 0, | ||
53 | FSL_USB_VER_1_6 = 1, | ||
54 | FSL_USB_VER_2_2 = 2, | ||
55 | FSL_USB_VER_2_4 = 3, | ||
56 | FSL_USB_VER_2_5 = 4, | ||
57 | }; | ||
58 | |||
55 | enum fsl_usb2_operating_modes { | 59 | enum fsl_usb2_operating_modes { |
56 | FSL_USB2_MPH_HOST, | 60 | FSL_USB2_MPH_HOST, |
57 | FSL_USB2_DR_HOST, | 61 | FSL_USB2_DR_HOST, |
@@ -72,7 +76,7 @@ struct platform_device; | |||
72 | 76 | ||
73 | struct fsl_usb2_platform_data { | 77 | struct fsl_usb2_platform_data { |
74 | /* board specific information */ | 78 | /* board specific information */ |
75 | int controller_ver; | 79 | enum fsl_usb2_controller_ver controller_ver; |
76 | enum fsl_usb2_operating_modes operating_mode; | 80 | enum fsl_usb2_operating_modes operating_mode; |
77 | enum fsl_usb2_phy_modes phy_mode; | 81 | enum fsl_usb2_phy_modes phy_mode; |
78 | unsigned int port_enables; | 82 | unsigned int port_enables; |