summaryrefslogtreecommitdiff
path: root/plat/marvell
diff options
context:
space:
mode:
authorGrzegorz Jaszczyk <jaz@semihalf.com>2019-04-04 17:20:05 +0200
committerGrzegorz Jaszczyk <jaz@semihalf.com>2019-04-05 12:48:43 +0200
commitf7cdf872f8c26280497ba24f6389254d1e140f53 (patch)
tree8dc55348b155f271c0f360141af471e76dc30771 /plat/marvell
parentb143fa7491bf9029ccd46c05d7d2267b3c2e2775 (diff)
plat: marvell: do not rely on argument passed via smc
There is no need to rely on x1 argument. Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com> Change-Id: Ie7766e801e724801b42b66331ba252ede5744a2c
Diffstat (limited to 'plat/marvell')
-rw-r--r--plat/marvell/common/mrvl_sip_svc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plat/marvell/common/mrvl_sip_svc.c b/plat/marvell/common/mrvl_sip_svc.c
index 36cada19..0291024d 100644
--- a/plat/marvell/common/mrvl_sip_svc.c
+++ b/plat/marvell/common/mrvl_sip_svc.c
@@ -116,8 +116,7 @@ uintptr_t mrvl_sip_smc_handler(uint32_t smc_fid,
/* Miscellaneous FID's' */
case MV_SIP_DRAM_SIZE:
- /* x1: ap_base_addr */
- ret = mvebu_get_dram_size(x1);
+ ret = mvebu_get_dram_size(MVEBU_REGS_BASE);
SMC_RET1(handle, ret);
case MV_SIP_LLC_ENABLE:
for (i = 0; i < ap_get_count(); i++)