Commit 2f2b9ec8 authored by Pankaj Gupta's avatar Pankaj Gupta
Browse files

ccn: for RN-I, used node id instead of node postion



For RN-I, node id is used instead of node postion in the bitmap
to calculate the region id.
Signed-off-by: default avatarPankaj Gupta <pankaj.gupta@nxp.com>
parent 6f7dba4b
......@@ -553,7 +553,14 @@ static unsigned int get_region_id_for_node(node_types_t node_type,
return REGION_ID_LIMIT;
}
region_id += node_pos_in_map;
/*
* According to section 3.1.1 in CCN specification, region offset for
* the RN-I components is calculated as (128 + NodeID of RN-I).
*/
if (node_type == NODE_TYPE_RNI)
region_id += node_id;
else
region_id += node_pos_in_map;
return region_id;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment