CCN: Add API to query the PART0 ID from CCN
authorSoby Mathew <soby.mathew@arm.com>
Wed, 23 Mar 2016 17:14:57 +0000 (17:14 +0000)
committerSoby Mathew <soby.mathew@arm.com>
Wed, 25 May 2016 09:24:23 +0000 (10:24 +0100)
commit6331a31a66cdcf53421d3dccd3067f072c6da175
treeb8196c20bec0395337616bfdd21b66af1842fde5
parente141aa0357fd4977ba874f4f86874e2cadc73498
CCN: Add API to query the PART0 ID from CCN

This patch adds the API `ccn_get_part0_id` to query the PART0 ID from the
PERIPHERAL_ID 0 register in the CCN driver. This ID allows to distinguish
the variant of CCN present on the system and possibly enable dynamic
configuration of the IP based on the variant. Also added an assert in
`ccn_master_to_rn_id_map()` to ensure that the master map bitfield provided
by the platform is within the expected interface id.

Change-Id: I92d2db7bd93a9be8a7fbe72a522cbcba0aba2d0e
drivers/arm/ccn/ccn.c
drivers/arm/ccn/ccn_private.h
include/drivers/arm/ccn.h