From ed84fe88296e2ca7ed87af24bd82008d8843d3d7 Mon Sep 17 00:00:00 2001 From: Grzegorz Jaszczyk Date: Fri, 12 Apr 2019 12:56:07 +0200 Subject: [PATCH] plat: marvell: armada: configure amb for all CPs Before this patch the configuration took place only for CP0 and CP1, but since new platforms can contains up to 3 CPs update is required. Change-Id: Iebd50bbe7b9772063e2c4efb3a7ecbfd593e950d Signed-off-by: Grzegorz Jaszczyk --- plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c b/plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c index 09b8446fa..3b81814f9 100644 --- a/plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c +++ b/plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c @@ -75,10 +75,8 @@ static int bl2_plat_mmap_init(void) mmio_write_32(MVEBU_IO_WIN_BASE(MVEBU_AP0) + IOW_GCR_OFFSET, PIDI_TID); /* Open AMB bridge required for MG access */ - cp110_amb_init(MVEBU_CP_REGS_BASE(0)); - - if (CP_COUNT == 2) - cp110_amb_init(MVEBU_CP_REGS_BASE(1)); + for (cp = 0; cp < CP_COUNT; cp++) + cp110_amb_init(MVEBU_CP_REGS_BASE(cp)); return 0; }