plat: marvell: do not rely on argument passed via smc
authorGrzegorz Jaszczyk <jaz@semihalf.com>
Thu, 4 Apr 2019 15:20:05 +0000 (17:20 +0200)
committerGrzegorz Jaszczyk <jaz@semihalf.com>
Fri, 5 Apr 2019 10:48:43 +0000 (12:48 +0200)
There is no need to rely on x1 argument.

Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Change-Id: Ie7766e801e724801b42b66331ba252ede5744a2c

plat/marvell/common/mrvl_sip_svc.c

index 36cada193f2bd9c671acc66773c4dc40fbd7c00b..0291024d7819ba7ec60c2b748529c1f503568157 100644 (file)
@@ -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++)