summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/bits.h
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2013-09-24 06:47:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-01 03:54:07 +0200
commit864cf949981754c53de0a2efdc6c542c51d61328 (patch)
tree2324e9276920606a4676c97ed0cf8da60ff8f747 /drivers/usb/chipidea/bits.h
parentusb: chipidea: imx: remove PHY operations (diff)
downloadlinux-864cf949981754c53de0a2efdc6c542c51d61328.tar.xz
linux-864cf949981754c53de0a2efdc6c542c51d61328.zip
usb: chipidea: add ci_hdrc_enter_lpm API
This API is used to let the PHY enter/leave low power mode. Before the controller going to work(at probe/resume), it needs to let the PHY leave low power mode. After the controller stopping working(at remove/suspend), it needs to let the PHY enter low power mode to save power consumption. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/bits.h')
-rw-r--r--drivers/usb/chipidea/bits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h
index 464584c6ccae..a85713165688 100644
--- a/drivers/usb/chipidea/bits.h
+++ b/drivers/usb/chipidea/bits.h
@@ -48,6 +48,7 @@
#define PORTSC_SUSP BIT(7)
#define PORTSC_HSP BIT(9)
#define PORTSC_PTC (0x0FUL << 16)
+#define PORTSC_PHCD(d) ((d) ? BIT(22) : BIT(23))
/* PTS and PTW for non lpm version only */
#define PORTSC_PTS(d) \
(u32)((((d) & 0x3) << 30) | (((d) & 0x4) ? BIT(25) : 0))