Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
781842ea
Unverified
Commit
781842ea
authored
6 years ago
by
Dimitris Papastamos
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1501 from robertovargas-arm/cci
cci: Wait before reading status register
parents
83f51dac
ae551a13
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/arm/cci/cci.c
+13
-0
drivers/arm/cci/cci.c
with
13 additions
and
0 deletions
+13
-0
drivers/arm/cci/cci.c
View file @
781842ea
...
...
@@ -5,6 +5,7 @@
*/
#include <arch.h>
#include <arch_helpers.h>
#include <assert.h>
#include <cci.h>
#include <debug.h>
...
...
@@ -142,6 +143,12 @@ void cci_enable_snoop_dvm_reqs(unsigned int master_id)
SLAVE_IFACE_OFFSET
(
slave_if_id
)
+
SNOOP_CTRL_REG
,
DVM_EN_BIT
|
SNOOP_EN_BIT
);
/*
* Wait for the completion of the write to the Snoop Control Register
* before testing the change_pending bit
*/
dmbish
();
/* Wait for the dust to settle down */
while
(
mmio_read_32
(
cci_base
+
STATUS_REG
)
&
CHANGE_PENDING_BIT
)
;
...
...
@@ -163,6 +170,12 @@ void cci_disable_snoop_dvm_reqs(unsigned int master_id)
SLAVE_IFACE_OFFSET
(
slave_if_id
)
+
SNOOP_CTRL_REG
,
~
(
DVM_EN_BIT
|
SNOOP_EN_BIT
));
/*
* Wait for the completion of the write to the Snoop Control Register
* before testing the change_pending bit
*/
dmbish
();
/* Wait for the dust to settle down */
while
(
mmio_read_32
(
cci_base
+
STATUS_REG
)
&
CHANGE_PENDING_BIT
)
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help