usb: chipidea: add chipidea revision information
authorPeter Chen <peter.chen@freescale.com>
Wed, 11 Feb 2015 04:44:55 +0000 (12:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 15:19:10 +0000 (16:19 +0100)
commitcb271f3ce969a0fc4ecf9fc4b5a28852509714ed
tree39f34575d899b8cfd0d347ba26564ad62a9bb39b
parent655d32e9b2b2b912ff86de656eb620627b0df117
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>
drivers/usb/chipidea/bits.h
drivers/usb/chipidea/ci.h
drivers/usb/chipidea/core.c