summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2012-01-13 09:50:10 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:03:15 +0200
commit7da22d45b0365c8249fd801770aa50aa72e12054 (patch)
tree6d207fa34129c8f5e2fac94f4ef87694220edc81
parent23cd36b39f99de25aecd25af14a48ba3348dcffd (diff)
usb: u5500: support AB5500 v2.1
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
-rw-r--r--drivers/usb/otg/ab5500-usb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/otg/ab5500-usb.c b/drivers/usb/otg/ab5500-usb.c
index b1b3b21b22d..d0f59e5b55a 100644
--- a/drivers/usb/otg/ab5500-usb.c
+++ b/drivers/usb/otg/ab5500-usb.c
@@ -206,7 +206,7 @@ static int ab5500_usb_link_status_update(struct ab5500_usb *ab)
(void)abx500_get_register_interruptible(ab->dev,
AB5500_BANK_USB, AB5500_USB_LINE_STAT_REG, &val);
- if (ab->rev == AB5500_2_0)
+ if (ab->rev >= AB5500_2_0)
lsts = (val & AB5500_USB_LINK_STATUS_MASK_V2) >> 3;
else
lsts = (val & AB5500_USB_LINK_STATUS_MASK_V1) >> 3;
@@ -222,7 +222,7 @@ static int ab5500_usb_link_status_update(struct ab5500_usb *ab)
break;
case USB_LINK_HM_IDGND:
- if (ab->rev == AB5500_2_0)
+ if (ab->rev >= AB5500_2_0)
break;
/* enable usb chip Select */
@@ -242,7 +242,7 @@ static int ab5500_usb_link_status_update(struct ab5500_usb *ab)
break;
case USB_LINK_HM_IDGND_V2:
- if (!(ab->rev == AB5500_2_0))
+ if (!(ab->rev >= AB5500_2_0))
break;
/* enable usb chip Select */
@@ -511,7 +511,7 @@ static int ab5500_usb_boot_detect(struct ab5500_usb *ab)
(void)abx500_get_register_interruptible(ab->dev,
AB5500_BANK_USB, AB5500_USB_LINE_STAT_REG, &usb_status);
- if (ab->rev == AB5500_2_0)
+ if (ab->rev >= AB5500_2_0)
lsts = (usb_status & AB5500_USB_LINK_STATUS_MASK_V2) >> 3;
else
lsts = (usb_status & AB5500_USB_LINK_STATUS_MASK_V1) >> 3;