From 758fc9860c19eceb56e5886a5225db623c521971 Mon Sep 17 00:00:00 2001 From: Alexander Shishkin Date: Fri, 11 May 2012 17:25:53 +0300 Subject: usb: chipidea: use common definition for USBMODE bits Some of the bits of USBMODE register are defined in , use them instead of having our own definitions. Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- drivers/usb/chipidea/bits.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/usb/chipidea/bits.h') diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h index 62c35af1a5af..44b3e254b6a5 100644 --- a/drivers/usb/chipidea/bits.h +++ b/drivers/usb/chipidea/bits.h @@ -13,6 +13,8 @@ #ifndef __DRIVERS_USB_CHIPIDEA_BITS_H #define __DRIVERS_USB_CHIPIDEA_BITS_H +#include + /* HCCPARAMS */ #define HCCPARAMS_LEN BIT(17) @@ -70,11 +72,9 @@ /* USBMODE */ #define USBMODE_CM (0x03UL << 0) -#define USBMODE_CM_IDLE (0x00UL << 0) -#define USBMODE_CM_DEVICE (0x02UL << 0) -#define USBMODE_CM_HOST (0x03UL << 0) +#define USBMODE_CM_DC (0x02UL << 0) #define USBMODE_SLOM BIT(3) -#define USBMODE_SDIS BIT(4) +#define USBMODE_CI_SDIS BIT(4) /* ENDPTCTRL */ #define ENDPTCTRL_RXS BIT(0) -- cgit v1.2.3