hikey: bl31: enable CCI port for cluster 0
authorLeo Yan <leo.yan@linaro.org>
Sat, 27 May 2017 05:15:40 +0000 (13:15 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Wed, 31 May 2017 05:20:20 +0000 (13:20 +0800)
The cluster 0 doesn't rely on PSCI to enable it; so enable CCI port
for cluster 0 in BL31 platform setup flow.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
plat/hisilicon/hikey/hikey_bl31_setup.c

index 9a1114a7fcb913ac20ec1f88a3fc3a4513c84347..82bd97ed38c081a1fc2bf438d692a7dcebcf0a6b 100644 (file)
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include <arch_helpers.h>
 #include <arm_gic.h>
 #include <assert.h>
 #include <bl_common.h>
@@ -88,6 +89,7 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2,
 
        /* Initialize CCI driver */
        cci_init(CCI400_BASE, cci_map, ARRAY_SIZE(cci_map));
+       cci_enable_snoop_dvm_reqs(MPIDR_AFFLVL1_VAL(read_mpidr_el1()));
 
        /*
         * Copy BL3-2 and BL3-3 entry point information.