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
541d7881
Commit
541d7881
authored
Mar 17, 2015
by
danh-arm
Browse files
Merge pull request #269 from vikramkanigiri/vk/common-cci
Common driver for ARM cache coherent Interconnects
parents
27bc0106
4991ecdc
Changes
23
Show whitespace changes
Inline
Side-by-side
plat/juno/juno_private.h
View file @
541d7881
...
@@ -154,6 +154,7 @@ unsigned long plat_get_ns_image_entrypoint(void);
...
@@ -154,6 +154,7 @@ unsigned long plat_get_ns_image_entrypoint(void);
unsigned
long
platform_get_stack
(
unsigned
long
mpidr
);
unsigned
long
platform_get_stack
(
unsigned
long
mpidr
);
uint64_t
plat_get_syscnt_freq
(
void
);
uint64_t
plat_get_syscnt_freq
(
void
);
void
plat_gic_init
(
void
);
void
plat_gic_init
(
void
);
void
plat_cci_init
(
void
);
/* Declarations for plat_topology.c */
/* Declarations for plat_topology.c */
int
plat_setup_topology
(
void
);
int
plat_setup_topology
(
void
);
...
...
plat/juno/plat_pm.c
View file @
541d7881
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
#include <assert.h>
#include <assert.h>
#include <arch_helpers.h>
#include <arch_helpers.h>
#include <arm_gic.h>
#include <arm_gic.h>
#include <cci.h>
#include <debug.h>
#include <debug.h>
#include <cci400.h>
#include <errno.h>
#include <errno.h>
#include <platform.h>
#include <platform.h>
#include <platform_def.h>
#include <platform_def.h>
...
@@ -159,8 +159,7 @@ void juno_affinst_on_finish(uint32_t afflvl, uint32_t state)
...
@@ -159,8 +159,7 @@ void juno_affinst_on_finish(uint32_t afflvl, uint32_t state)
* if this cluster was off.
* if this cluster was off.
*/
*/
if
(
afflvl
!=
MPIDR_AFFLVL0
)
if
(
afflvl
!=
MPIDR_AFFLVL0
)
cci_enable_cluster_coherency
(
mpidr
);
cci_enable_snoop_dvm_reqs
(
MPIDR_AFFLVL1_VAL
(
mpidr
));
/* Enable the gic cpu interface */
/* Enable the gic cpu interface */
arm_gic_cpuif_setup
();
arm_gic_cpuif_setup
();
...
@@ -187,7 +186,7 @@ static void juno_power_down_common(uint32_t afflvl)
...
@@ -187,7 +186,7 @@ static void juno_power_down_common(uint32_t afflvl)
/* Cluster is to be turned off, so disable coherency */
/* Cluster is to be turned off, so disable coherency */
if
(
afflvl
>
MPIDR_AFFLVL0
)
{
if
(
afflvl
>
MPIDR_AFFLVL0
)
{
cci_disable_
cluster_coherency
(
read_mpidr
_el1
());
cci_disable_
snoop_dvm_reqs
(
MPIDR_AFFLVL1_VAL
(
read_mpidr
(
)
));
cluster_state
=
scpi_power_off
;
cluster_state
=
scpi_power_off
;
}
}
...
...
plat/juno/platform.mk
View file @
541d7881
...
@@ -56,7 +56,7 @@ PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \
...
@@ -56,7 +56,7 @@ PLAT_BL_COMMON_SOURCES := drivers/arm/pl011/pl011_console.S \
plat/common/plat_gic.c
\
plat/common/plat_gic.c
\
plat/juno/plat_io_storage.c
plat/juno/plat_io_storage.c
BL1_SOURCES
+=
drivers/arm/cci
400
/cci
400
.c
\
BL1_SOURCES
+=
drivers/arm/cci/cci.c
\
lib/cpus/aarch64/cortex_a53.S
\
lib/cpus/aarch64/cortex_a53.S
\
lib/cpus/aarch64/cortex_a57.S
\
lib/cpus/aarch64/cortex_a57.S
\
plat/common/aarch64/platform_up_stack.S
\
plat/common/aarch64/platform_up_stack.S
\
...
@@ -75,7 +75,7 @@ BL2_SOURCES += drivers/arm/tzc400/tzc400.c \
...
@@ -75,7 +75,7 @@ BL2_SOURCES += drivers/arm/tzc400/tzc400.c \
plat/juno/scp_bootloader.c
\
plat/juno/scp_bootloader.c
\
plat/juno/scpi.c
plat/juno/scpi.c
BL31_SOURCES
+=
drivers/arm/cci
400
/cci
400
.c
\
BL31_SOURCES
+=
drivers/arm/cci/cci.c
\
drivers/arm/gic/arm_gic.c
\
drivers/arm/gic/arm_gic.c
\
drivers/arm/gic/gic_v2.c
\
drivers/arm/gic/gic_v2.c
\
drivers/arm/gic/gic_v3.c
\
drivers/arm/gic/gic_v3.c
\
...
...
Prev
1
2
Next
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