allwinner: Relax PSCI entry point check
authorAndre Przywara <andre.przywara@arm.com>
Thu, 21 Jun 2018 23:48:15 +0000 (00:48 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 28 Jun 2018 22:47:30 +0000 (23:47 +0100)
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 <andre.przywara@arm.com>
plat/allwinner/common/sunxi_pm.c

index fcab130cd04e029f2e99083939bc152599648e82..2a1f2231deb1f2460a423934d452746fabc4d068 100644 (file)
@@ -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;