mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-08 10:08:47 +00:00
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
This commit is contained in:
parent
e141aa0357
commit
6331a31a66
3 changed files with 22 additions and 0 deletions
|
@ -149,6 +149,7 @@ typedef enum rn_types {
|
|||
#define MN_DDC_STAT_OFFSET DOMAIN_CTRL_STAT_OFFSET
|
||||
#define MN_DDC_SET_OFFSET DOMAIN_CTRL_SET_OFFSET
|
||||
#define MN_DDC_CLR_OFFSET DOMAIN_CTRL_CLR_OFFSET
|
||||
#define MN_PERIPH_ID_0_1_OFFSET 0xFE0
|
||||
#define MN_ID_OFFSET REGION_ID_OFFSET
|
||||
|
||||
/* HNF System Address Map register bit masks and shifts */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue