From c520be4b3a596e57d798d05d5f1f2d59fa5bba4d Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Fri, 22 Jun 2018 00:48:15 +0100 Subject: [PATCH] allwinner: Relax PSCI entry point check The DRAM controller supports up to 4GB of DRAM, and there are actually boards out there where we can use at least 3GB of this. Relax the PSCI entry point check, to be not restricted to 2GB of DRAM. Signed-off-by: Andre Przywara --- plat/allwinner/common/sunxi_pm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plat/allwinner/common/sunxi_pm.c b/plat/allwinner/common/sunxi_pm.c index fcab130c..2a1f2231 100644 --- a/plat/allwinner/common/sunxi_pm.c +++ b/plat/allwinner/common/sunxi_pm.c @@ -76,8 +76,7 @@ static void __dead2 sunxi_system_reset(void) static int sunxi_validate_ns_entrypoint(uintptr_t ns_entrypoint) { /* The non-secure entry point must be in DRAM */ - if (ns_entrypoint >= SUNXI_DRAM_BASE && - ns_entrypoint < SUNXI_DRAM_BASE + SUNXI_DRAM_SIZE) + if (ns_entrypoint >= SUNXI_DRAM_BASE) return PSCI_E_SUCCESS; return PSCI_E_INVALID_ADDRESS; -- 2.30.2