diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2012-01-13 09:50:10 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 08:59:11 +0100 |
commit | a41144e0e50aa6eec9d8f80a8911a70f83c124e8 (patch) | |
tree | 1e580c3d74ff732fc66656a9d9844eca0332ca58 /drivers/usb/otg/ab5500-usb.c | |
parent | 1a457e53c470eef2410813c500c51ef15a861b45 (diff) |
usb: u5500: support AB5500 v2.1
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Diffstat (limited to 'drivers/usb/otg/ab5500-usb.c')
-rw-r--r-- | drivers/usb/otg/ab5500-usb.c | 8 |
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; |