Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
fd809dc8
Unverified
Commit
fd809dc8
authored
Dec 12, 2018
by
Soby Mathew
Committed by
GitHub
Dec 12, 2018
Browse files
Merge pull request #1715 from pangupta/master
ccn: for RN-I, used node id instead of node postion
parents
4f7812e7
2f2b9ec8
Changes
1
Show whitespace changes
Inline
Side-by-side
drivers/arm/ccn/ccn.c
View file @
fd809dc8
...
@@ -553,6 +553,13 @@ static unsigned int get_region_id_for_node(node_types_t node_type,
...
@@ -553,6 +553,13 @@ static unsigned int get_region_id_for_node(node_types_t node_type,
return
REGION_ID_LIMIT
;
return
REGION_ID_LIMIT
;
}
}
/*
* 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
;
region_id
+=
node_pos_in_map
;
return
region_id
;
return
region_id
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment