diff options
author | Pankaj Gupta <pankaj.gupta@nxp.com> | 2018-11-15 11:42:50 +0530 |
---|---|---|
committer | Pankaj Gupta <pankaj.gupta@nxp.com> | 2018-11-23 16:38:43 +0530 |
commit | 6f7dba4b24ee8e6c134a5237b5af461c9898501e (patch) | |
tree | 1445ecacc850f69426bd892046a93d3a7dd4438b /include/drivers/arm/ccn.h | |
parent | 91ece4e2c8ea39620c5a3bc0273494606a9a1d85 (diff) |
ccn: Introduce API to set and read value of node register
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Diffstat (limited to 'include/drivers/arm/ccn.h')
-rw-r--r-- | include/drivers/arm/ccn.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/drivers/arm/ccn.h b/include/drivers/arm/ccn.h index eba974d2..9c3abac6 100644 --- a/include/drivers/arm/ccn.h +++ b/include/drivers/arm/ccn.h @@ -76,6 +76,16 @@ typedef struct ccn_desc { uintptr_t periphbase; } ccn_desc_t; +/* Enum used to loop through all types of nodes in CCN*/ +typedef enum node_types { + NODE_TYPE_RNF = 0, + NODE_TYPE_RNI, + NODE_TYPE_RND, + NODE_TYPE_HNF, + NODE_TYPE_HNI, + NODE_TYPE_SN, + NUM_NODE_TYPES +} node_types_t; void ccn_init(const ccn_desc_t *plat_ccn_desc); void ccn_enter_snoop_dvm_domain(unsigned long long master_iface_map); @@ -92,5 +102,12 @@ void ccn_program_sys_addrmap(unsigned int sn0_id, unsigned int ccn_get_l3_run_mode(void); int ccn_get_part0_id(uintptr_t periphbase); +void ccn_write_node_reg(node_types_t node_type, unsigned int node_id, + unsigned int reg_offset, + unsigned long long val); +unsigned long long ccn_read_node_reg(node_types_t node_type, + unsigned int node_id, + unsigned int reg_offset); + #endif /* __ASSEMBLY__ */ #endif /* CCN_H */ |