summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/bits.h
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-02-11 07:44:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 18:19:10 +0300
commitcb271f3ce969a0fc4ecf9fc4b5a28852509714ed (patch)
tree39f34575d899b8cfd0d347ba26564ad62a9bb39b /drivers/usb/chipidea/bits.h
parent655d32e9b2b2b912ff86de656eb620627b0df117 (diff)
downloadlinux-cb271f3ce969a0fc4ecf9fc4b5a28852509714ed.tar.xz
usb: chipidea: add chipidea revision information
Define ci_get_revision API to know the controller revision information according to chipidea 1.1a, 2.0a and 2.5a spec. Besides, add one entry at struct ci_hdrc to indicate revision information, it can be used for adding different code for revisions, eg kinds of errata. Reviewed-by: Stefan Agner <stefan@agner.ch> 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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/bits.h b/drivers/usb/chipidea/bits.h
index ca57e3dcd3d5..e69424d6e423 100644
--- a/drivers/usb/chipidea/bits.h
+++ b/drivers/usb/chipidea/bits.h
@@ -15,6 +15,16 @@
#include <linux/usb/ehci_def.h>
+/*
+ * ID
+ * For 1.x revision, bit24 - bit31 are reserved
+ * For 2.x revision, bit25 - bit28 are 0x2
+ */
+#define TAG (0x1F << 16)
+#define REVISION (0xF << 21)
+#define VERSION (0xF << 25)
+#define CIVERSION (0x7 << 29)
+
/* HCCPARAMS */
#define HCCPARAMS_LEN BIT(17)