summaryrefslogtreecommitdiff
path: root/plat/marvell/common/marvell_cci.c
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2018-07-23 13:56:54 +0300
committerKonstantin Porotchkin <kostap@marvell.com>2018-09-03 14:48:32 +0300
commit77d5a2b3e2635002bfc7042abb0388395648bf71 (patch)
treedbc422ee19a2e7315a3d40840e9bc69e5a521daa /plat/marvell/common/marvell_cci.c
parent71b6429c5769b0c5b7165217dd441ea2a0318bfa (diff)
plat: marvell: align the sources with mainline TF-A
Following the acception of Marvell platform support in the mainline TF-A code, some changes triggered by the TF-A team review should be ported back. This patch introduces changes (mostly cosmetic) that sync between the mainline and LSP code bases. - Limit line length to 80 characters for passing through Linux checkpatch - Make all comment blocks comply the Linux kernel coduing style - Arrange all includes in alphabetical order - Rename plat_config.h to armada_common.h (a8k_common in the mainline, but we should take into account next platform support as well) - Rename plat_private.h to marvell_plat_priv.h - Rename plat_def.h to mvebu_def.h Change-Id: Idd542c8a7d4ff8d8fb67c3601410308be5aed8e5 Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/58282 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Igal Liberman <igall@marvell.com>
Diffstat (limited to 'plat/marvell/common/marvell_cci.c')
-rwxr-xr-xplat/marvell/common/marvell_cci.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/plat/marvell/common/marvell_cci.c b/plat/marvell/common/marvell_cci.c
index 95c6f265..2df48024 100755
--- a/plat/marvell/common/marvell_cci.c
+++ b/plat/marvell/common/marvell_cci.c
@@ -1,10 +1,10 @@
/*
- * Copyright (C) 2016 - 2018 Marvell International Ltd.
+ * Copyright (C) 2018 Marvell International Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
-
+
#include <cci.h>
#include <plat_marvell.h>
@@ -13,34 +13,38 @@ static const int cci_map[] = {
PLAT_MARVELL_CCI_CLUSTER1_SL_IFACE_IX
};
-/******************************************************************************
+/****************************************************************************
* The following functions are defined as weak to allow a platform to override
* the way ARM CCI driver is initialised and used.
- *****************************************************************************/
+ ****************************************************************************
+ */
#pragma weak plat_marvell_interconnect_init
#pragma weak plat_marvell_interconnect_enter_coherency
#pragma weak plat_marvell_interconnect_exit_coherency
-/******************************************************************************
+/****************************************************************************
* Helper function to initialize ARM CCI driver.
- *****************************************************************************/
+ ****************************************************************************
+ */
void plat_marvell_interconnect_init(void)
{
cci_init(PLAT_MARVELL_CCI_BASE, cci_map, ARRAY_SIZE(cci_map));
}
-/******************************************************************************
+/****************************************************************************
* Helper function to place current master into coherency
- *****************************************************************************/
+ ****************************************************************************
+ */
void plat_marvell_interconnect_enter_coherency(void)
{
cci_enable_snoop_dvm_reqs(MPIDR_AFFLVL1_VAL(read_mpidr_el1()));
}
-/******************************************************************************
+/****************************************************************************
* Helper function to remove current master from coherency
- *****************************************************************************/
+ ****************************************************************************
+ */
void plat_marvell_interconnect_exit_coherency(void)
{
cci_disable_snoop_dvm_reqs(MPIDR_AFFLVL1_VAL(read_mpidr_el1()));