diff options
Diffstat (limited to 'plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c')
-rw-r--r-- | plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c | 11 |
1 files changed, 8 insertions, 3 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 b919cb337..dee2d5b0b 100644 --- a/plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c +++ b/plat/marvell/armada/a8k/common/mss/mss_bl2_setup.c @@ -16,7 +16,7 @@ #include <armada_common.h> #include <marvell_plat_priv.h> /* timer functionality */ - +#include "mss_defs.h" #include "mss_scp_bootloader.h" /* MSS windows configuration */ @@ -121,12 +121,17 @@ int bl2_plat_handle_scp_bl2(image_info_t *scp_bl2_image_info) uintptr_t bl2_plat_get_cp_mss_regs(int ap_idx, int cp_idx) { - return MVEBU_CP_REGS_BASE(cp_idx) + 0x280000; + return MVEBU_CP_REGS_BASE(cp_idx) + MSS_CP_REGS_OFFSET; +} + +uintptr_t bl2_plat_get_cp_mss_sram(int ap_idx, int cp_idx) +{ + return MVEBU_CP_REGS_BASE(cp_idx) + MSS_CP_SRAM_OFFSET; } uintptr_t bl2_plat_get_ap_mss_regs(int ap_idx) { - return MVEBU_REGS_BASE + 0x580000; + return MVEBU_REGS_BASE + MSS_AP_REGS_OFFSET; } uint32_t bl2_plat_get_cp_count(int ap_idx) |