drivers: cci: Extend support to CCI revisions > r1p2
authorPunit Agrawal <punit.agrawal@arm.com>
Wed, 19 Feb 2014 12:17:02 +0000 (12:17 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2014 18:36:16 +0000 (19:36 +0100)
commit6fb0c4a74239416b572f088a827d5ff783902380
treead1560018b9c1943945183e179a45e29e8b51d87
parent23453853e40539e64592b5ae771020e43ed371a2
drivers: cci: Extend support to CCI revisions > r1p2

The driver queries the CCI IP revision to distinguish between r0 and r1
scheme for event numbers and currently supports upto version r1p2. To
minimise code churn every time there's a new version of the IP, assume
that event numbering doesn't change for revisions > r1p0 (which is
the case).

The driver will still need an update for future revisions that change
the event numbers.

Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/arm-cci.c